国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

Linux ProFTPd安裝與卸載詳細介紹

2019-11-02 16:14:45
字體:
來源:轉載
供稿:網友

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  即可

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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 贵德县| 信宜市| 万盛区| 余干县| 金溪县| 大余县| 富阳市| 山阴县| 加查县| 广德县| 邵阳县| 基隆市| 磴口县| 肥乡县| 鹤岗市| 鄂州市| 巫山县| 松阳县| 涟水县| 桐梓县| 邵武市| 贺兰县| 宁陵县| 精河县| 林甸县| 深圳市| 康马县| 葵青区| 靖安县| 鹤岗市| 游戏| 磐石市| 南岸区| 延川县| 红桥区| 开封市| 攀枝花市| 龙江县| 临邑县| 庄浪县| 彰化市|