centos7 如何重启 vsftpd ?
问题
安装了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 ~]#
Sharl
11 years, 4 months ago