ftp

一.守护进程的方式开启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安装
cd proftpd-1.3.3
./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
vim /usr/local/proftpd/etc/proftpd.conf
User nobody
Group nobody
vim /etc/init.d/proftpd
PATH="$PATH:/usr/local/proftpd/sbin"
service proftpd restart
netstat -antlp | grep :21

客户端测试
ftp 192.168.18.157
quit

你可能感兴趣的:(ftp)