tar -zxvf proftpd-1.3.3e.tar.gz 进行解压
cd proftpd-1.3.3e 进入文件夹
./configure --prefix=/usr/local/proftpd
make
make install
groupadd sunftpgroup
useradd -g sunftpgroup -d /var/ftp -s /sbin/nologin sunftp
passwd 123456
cp contrib/dist/rpm/proftpd.init.d /etc/rc.d/init.d/proftpd
vi /etc/rc.d/init.d/proftpd
PATH="$PATH:/usr/local/proftpd/sbin:/usr/local/proftpd/bin"
//设置为可执行文件
chmod +x /etc/rc.d/init.d/proftpd
vi /usr/local/proftpd/etc/proftpd.conf
ServerName "ProFTPD"
ServerType standalone
ServerIdent off
DefaultServer on
Port 21
Umask 022
MaxInstances 30
User sunftp
Group sunftpgroup
DefaultRoot /var/ftp
AllowOverwrite on
<Directory /var/ftp>
HideNoAccess off
<Limit WRITE>
Order deny,allow
AllowUser sunftp
</Limit>
</Directory>
测试一下吧;
对了,别忘记先关闭 iptalbes啊。默认它是禁用FTP端口的,如果这只开21还不行,我只好先关闭iptalbes了。