centos7 如何重启 vsftpd ?

发布于 2022-08-30 16:28:35 字数 2656 浏览 8 评论 0

问题

安装了vsftpd,发现使用systemctl stop vsftpd,还是可以匿名登录FTP。
然后修改了vsftpd.conf 禁用了匿名,但是无法重新启动vsftpd,然后还是可以登录FTP。

[root@niche vsftpd]# whereis vsftpd
vsftpd: /usr/sbin/vsftpd /etc/vsftpd /usr/share/man/man8/vsftpd.8.gz
[root@niche vsftpd]# systemctl status vsftpd
vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled)
   Active: failed (Result: exit-code) since Wed 2014-12-17 15:16:58 UTC; 18min a                                                              go

Dec 17 15:16:58 niche systemd[1]: vsftpd.service: control process exited, c...=2
Dec 17 15:16:58 niche systemd[1]: Failed to start Vsftpd ftp daemon.
Dec 17 15:16:58 niche systemd[1]: Unit vsftpd.service entered failed state.
Dec 17 15:17:25 niche systemd[1]: Stopped Vsftpd ftp daemon.
Dec 17 15:23:12 niche systemd[1]: Stopped Vsftpd ftp daemon.
Dec 17 15:26:11 niche systemd[1]: Stopped Vsftpd ftp daemon.
Dec 17 15:33:55 niche systemd[1]: Stopped Vsftpd ftp daemon.
Dec 17 15:34:11 niche systemd[1]: Stopped Vsftpd ftp daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@niche vsftpd]# systemctl stop vsftpd
[root@niche vsftpd]# systemctl start vsftpd
Job for vsftpd.service failed. See 'systemctl status vsftpd.service' and 'journalctl -xn' for details.
[root@niche vsftpd]#

报错

-- Unit vsftpd.service has begun starting up.
Dec 17 15:35:26 niche systemd[1]: vsftpd.service: control process exited, code=e
Dec 17 15:35:26 niche systemd[1]: Failed to start Vsftpd ftp daemon.
-- Subject: Unit vsftpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vsftpd.service has failed.
--
-- The result is failed.
Dec 17 15:35:26 niche systemd[1]: Unit vsftpd.service entered failed state.
lines 26-38/38 (END)

快要崩溃了,配置vsftpd 配置了三天了。还是无法成功。
连重启都无法重启,为什么那么多人推崇这个

而且

我重新安装 vsftpd,然后查看 systemctl status vsftpd,提示是。但是这个时候却还是可以登录vsftpd!

[root@niche ~]# systemctl status vsftpd
vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled)
   Active: failed (Result: exit-code) since Wed 2014-12-17 15:35:26 UTC; 4min 1s
 ago

Dec 17 15:35:26 niche systemd[1]: vsftpd.service: control process exited, c...=1
Dec 17 15:35:26 niche systemd[1]: Failed to start Vsftpd ftp daemon.
Dec 17 15:35:26 niche systemd[1]: Unit vsftpd.service entered failed state.
Dec 17 15:38:45 niche systemd[1]: Stopped Vsftpd ftp daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@niche ~]#

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

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

发布评论

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

评论(3

向地狱狂奔 2022-09-06 16:28:35

Yum安装的就用service vsftpd restart就好了,其它的不清楚。

江南烟雨〆相思醉 2022-09-06 16:28:35

查看是否启动
systemctl list-unit-files |grep vsftpd.service

启动vsftpd服务
systemctl enable vsftpd.service

怼怹恏 2022-09-06 16:28:35

哥哥,请问这个问题解决了吗?求指点

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