Linux ProFTPd安裝與卸載詳細介紹_Linux

來源:互聯網
上載者:User

Linux系統上ProFTPd安裝與卸載的詳細過程

yum install proftpd

vi /etc/proftpd.conf  ← 修改ProFTPD的設定檔
ServerType        standalone   ← 找到這一行,在行首添加“#”
 ↓
#ServerType        standalone   ← 變為此狀態,不使用常駐模式
#ServerType       inetd   ← 找到這一行,去掉行首的“#”
 ↓
ServerType       inetd   ← 變為此狀態,通過超級伺服器來啟動ProFTPD
DefaultRoot        ~ !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.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  即可

感謝閱讀,希望能協助到大家,謝謝大家對本站的支援!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.