1) 官網http://www.proftpd.org/下載下傳最新proftpd(proftpd-1.3.6.tar.gz)安裝包
2) 官網http://www.castaglia.org/proftpd/下載下傳最新mod case子產品(proftpd-mod-case-0.7.tar.gz),并本地解壓提取mod_case.c檔案
3) 上傳proftpd(proftpd-1.3.6.tar.gz)安裝包至網管伺服器
4) 解壓proftpd安裝包至目前目錄
#tar -zxvf proftpd-1.3.6.tar.gz
5) 上傳mod_case.c檔案子產品至proftpd-1.3.6/contrib目錄
6) 編譯并安裝proftpd服務
#cd proftpd-1.3.6
#./configure --prefix=/usr/local/proftpd --sysconfdir=/etc/proftpd --with-modules=mod_case
#make
#make install
7) 編輯 /etc/proftpd/proftpd.conf,按照如下藍色标注修改内容:
注意:以下MaxClients是新添加内容。
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 150
MaxClients 100
# Set the user and group under which the server will run.
User root
Group root
8) 編輯 /etc/proftpd/proftpd.conf,添加如下藍色标注添加内容:
ServerName "ProFTPD Default Installation"
ServerType standalone
DefaultServer on
# Enable case-insensitivity for all FTP commands handled by mod_case
CaseEngine on
CaseIgnore RETR
RootLogin on
# Port 21 is the standard FTP port.
Port 21
9) 将附件proftpd(随機啟動腳本)上傳至/etc/rc.d/init.d目錄
10) 關閉作業系統其它FTP服務(service vsftpd stop/chkconfig vsftpd off)
11) 設定proftpd随機啟動
#chmod +x /etc/rc.d/init.d/proftpd
#chkconfig --add proftpd
#chkconfig proftpd on
12) 重新開機機器
#init 6