奇怪的事情,proftpd关闭重启后登陆不了

发布于 2022-10-03 12:06:53 字数 971 浏览 31 评论 0

由于vsftpd遇到了点问题,所以决定先安装一个proftpd暂时用
我安装配置好proftpd后,运行以下命令启动
/usr/local/proftpd/sbin/proftpd

然后使用 /usr/local/proftp/etc/proftpd.conf里面配置好的用户名进行登陆,可以登陆了,也可以上传下载(兴奋了一会)

呵呵,因为测试时使用的是测试用户,准备改 proftpd.conf,加入专用的用户和设置好FTP目录

然后关闭FTP
/usr/local/proftpd/sbin/ftpshut +0

重新启动
/usr/local/proftpd/sbin/proftpd

查看以下进程
[root@webserver sbin]# ps -ef |grep ftp
webadmin  9387     1  0 15:52 ?        00:00:00 proftpd: (accepting connections)
root      9433  1506  0 15:55 pts/6    00:00:00 grep ftp

重新登陆,我晕:
C:\Documents and Settings\7CLYRF8>;ftp 211.xxx.xxx.xx
Connected to 211.xxx.xxx.xx
500 FTP server shut down (going down at Thu Jul 28 15:46:54 2005) -- please try
again later
Connection closed by remote host.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

噩梦成真你也成魔 2022-10-10 12:06:53

呵呵,你误解ftpshut了

he ftpshut program that comes as part of ProFTPD can also be used to shut down a proftpd server, in a sense. This program does not actually cause the server to stop completely, but rather places the server in an "administrative shutdown" state. This means that the server will still be handling session requests, but will deny incoming requests, telling clients to come back later. ftpshut allows the administrator to configure the server to start refusing connections at some future date, and also to disconnect existing sessions at some future date.

http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Stopping.html

秉烛思 2022-10-10 12:06:53

谢谢,看过了.但没有找到解决方法.

挽清梦 2022-10-10 12:06:53

把PROFTD的某个目录里的文件给删除就OK了吧,记不清了

野の 2022-10-10 12:06:53

我给你的链接里提到了啊,没看到吗

The ftpshut program works by creating a file, usually /etc/shutmsg, for which the server checks periodically. This file will contain the time at which the server is to place itself in "administrative shutdown" mode, and times (if any) of refusing incoming connections, disconnecting existing connections. Unfortunately, many third-party administration tools use ftpshut to shut down proftpd servers, rather than using the method above. The problem with this approach is that, once restarted, the server will check for /etc/shutmsg, and will not accept incoming connections, leading to this FAQ; the third-party administration tool often forgets to delete that file once done.

找找有没有这个文件/etc/shutmsg

爱殇璃 2022-10-10 12:06:53

晕!!原来一定要删除才行.把里面的东西删除也不行.

谢谢各位

淡淡の花香 2022-10-10 12:06:53

ftpshut -R 就可以了吧。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文