Linux ProFTPd安裝與卸載詳細介紹
Linux系統上ProFTPd安裝與卸載的詳細過程
yum install proftpd
vi /etc/proftpd.conf ← 修改ProFTPD的配置文件
ServerType standalone ← 找到這一行,在行首添加“#”
↓
#ServerType standalone ← 變?yōu)榇藸顟B(tài),不使用常駐模式
#ServerType inetd ← 找到這一行,去掉行首的“#”
↓
ServerType inetd ← 變?yōu)榇藸顟B(tài),通過超級服務器來啟動ProFTPD
DefaultRoot ~ !adm ← 找到這一行,將“ !adm”改為“/public_html !wheel”
↓
DefaultRoot ~/public_html !wheel ← 變?yōu)榇藸顟B(tài),使除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
----------------------------------------------------------------
↓將以上水平線間部分的語句,每行行首的“#”都去掉,變?yōu)橄旅嫠骄€間的狀態(tài):
----------------------------------------------------------------
TLSEngine on
TLSRequired on ← 只允許TLS方式的連接(如果將on改為off,普通方式也被允許)
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
----------------------------------------------------------------
然后在配置文件的末尾填如下幾行:
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 即可
感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!
相關文章
教你快速開啟Apache SkyWalking的自監(jiān)控
這篇文章主要介紹了如何開啟Apache SkyWalking的自監(jiān)控的相關資料,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-04-04安裝Apache提示丟失VCRUNTIME140.DLL怎么辦
本文通過自己的實際情況,給大家分享了在安裝Apache時提示丟失VCRUNTIME140.DLL的解決辦法,非常的實用,有需要的小伙伴可以參考下。2016-03-03