Linux ProFTPd安装与卸载详细介绍
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 即可
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
上一篇: Linux中的curl命令详解