Linux系統上ProFTPd安裝與卸載的詳細過程
yum install proftpd
vi /etc/proftpd.conf ← 修改ProFTPD的配置文件
ServerType standalone ← 找到這一行,在行首添加“#” ↓#ServerType standalone ← 變為此狀態,不使用常駐模式#ServerType inetd ← 找到這一行,去掉行首的“#” ↓ServerType inetd ← 變為此狀態,通過超級服務器來啟動ProFTPDDefaultRoot ~ !adm ← 找到這一行,將“ !adm”改為“/public_html !wheel” ↓DefaultRoot ~/public_html !wheel ← 變為此狀態,使除wheel組用戶的根目錄為public_html找到TLS設置的語句群,如下:
# TLS# Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html----------------------------------------------------------------
#TLSEngine on
#TLSRequired on#TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem#TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem#TLSCipherSuite ALL:!ADH:!DES#TLSOptions NoCertRequest#TLSVerifyClient off##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300#TLSLog /var/log/proftpd/tls.log----------------------------------------------------------------
↓將以上水平線間部分的語句,每行行首的“#”都去掉,變為下面水平線間的狀態:----------------------------------------------------------------TLSEngine on
TLSRequired on ← 只允許TLS方式的連接(如果將on改為off,普通方式也被允許)TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pemTLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pemTLSCipherSuite ALL:!ADH:!DESTLSOptions NoCertRequestTLSVerifyClient off#TLSRenegotiate ctrl 3600 data 512000 required off timeout 300TLSLog /var/log/proftpd/tls.log----------------------------------------------------------------
然后在配置文件的末尾填如下幾行:
ExtendedLog /var/log/proftpd/access.log WRITE,READ default ← 記錄連接日志到相應日志文件
ExtendedLog /var/log/proftpd/auth.log AUTH auth ← 記錄認證日志到相應日志文件MasqueradeAddress digeast.no-ip.info ← 定義服務器域名PassivePorts 50000 50030 ← 為PASV模式連接時指定端口號(1024以后存在的任意端口號)卸載
yum remove proftpd 即可
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
新聞熱點
疑難解答