一.守護程序的方式開啟proftpd
安裝gcc:yum install -y gcc*
安裝proftp
tar zxf proftpd-1.3.3.tar.gz
cd proftpd-1.3.3
./configure --prefix=/usr/local/proftpd --enable-shadow --enable-autoshadow --with-modules=mod_ratio:mod_readme:mod_wrap make && make install
修改man手冊
vim /etc/man.config
manpath /usr/local/proftpd/man
修改ftp配置檔案
vim /etc/xinetd.d/proftpd
server = /usr/local/proftpd/sbin/proftpd
server_args = -c /usr/local/proftpd/etc/proftpd.conf
vim /usr/local/proftpd/etc/proftpd.conf
servertype standalone
servertype inetd
defaultserver on
port 21
useipv6 off
umask 022
maxinstances 30
user nobody
group nobody
service xinetd restart
netstat -antlp | grep :21
mkdir -p ftp/pub
用戶端測試
ftp 192.168.18.249
quit
server proftpd安裝
./configure --prefix=/usr/local/proftpd --enable-shadow --enable-autoshadow --with-.make && make install
cp contrib/dist/rpm/proftpd.init.d /etc/init.d/proftpd
chmod 755 /etc/init.d/proftpd
user nobody
group nobody
vim /etc/init.d/proftpd
path="$path:/usr/local/proftpd/sbin"
service proftpd restart
ftp 192.168.18.157