运行下这个服务pureftpd,然后设置成开机启动,重启服务器之后,就正常了
service pureftpd restart
chkconfig pureftpd on
如果ftp还是无法连接,提示“被拒绝”,
复制以下命令到SSH回车基本可解决
/vhs/pure-ftpd/sbin/pure-authd --daemonize -s /var/run/ftpd.sock -r /vhs/kangle/bin/pureftp_auth /vhs/pure-ftpd/sbin/pure-ftpd --daemonize -lextauth:/var/run/ftpd.sock
如果仍不可以,尝试杀死ftp服务 killall -9 pure-authd killall -9 pure-ftpd 或者创建编辑一个service vi /etc/init.d/pureftpd 以下是service服务文件文件内容 #!/bin/bash # # kangle Startup script for the Apache HTTP Server # # chkconfig: - 85 15 # description: Apache is a World Wide Web server. It is used to serve \ # HTML files and CGI. # processname: kangle # Source function library. . /etc/rc.d/init.d/functions # This will prevent initlog from swallowing up a pass-phrase prompt if # mod_ssl needs a pass-phrase from the user. INITLOG_ARGS="" prog=pureftpd RETVAL=0 start() { echo -n $"Starting $prog: " if [ ! -f /vhs/kangle/bin/pureftp_auth ] ; then echo "/vhs/kangle/pureftp_auth not found" exit; fi /vhs/pure-ftpd/sbin/pure-authd --daemonize -s /var/run/ftpd.sock -r /vhs/kangle/bin/pureftp_auth sleep 1 /vhs/pure-ftpd/sbin/pure-ftpd --daemonize -lextauth:/var/run/ftpd.sock RETVAL=$? echo [ $RETVAL = 0 ] return $RETVAL } stop() { echo -n $"Stopping $prog: " killall pure-authd killall pure-ftpd } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) stop sleep 1 start ;; *) echo $"Usage: $prog {start|stop|restart}" exit 1 esac exit $RETVAL 重启ftp服务 service pureftpd restart 查看监听状态 netstat -apn | grep pure-ftpd
---
转载请注明本文标题和链接:《kangle服务器ftp不能登录》
发表评论