[root@localhost ~]# service vsftpd start
Redirecting to /bin/systemctl start vsftpd.service
Job for vsftpd.service failed. See 'systemctl status vsftpd.service' and 'journalctl -xn' for details.
按照提示输入systemctl status vsftpd.service 和 journalctl -xn 显示如下:
[root@localhost ~]# systemctl status vsftpd.service -l
vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled)
Active: failed (Result: exit-code) since Thu 2014-09-18 01:50:43 CST; 3min 50s ago
Process: 2136 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf ( code=exited, status=2)
Sep 18 01:50:43 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
Sep 18 01:50:43 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Sep 18 01:50:43 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
[root@localhost ~]# journalctl -xn
-- Logs begin at Thu 2014-08-28 05:21:44 CST, end at Thu 2014-09-18 02:06:12 CST. --
Sep 18 02:01:05 localhost.localdomain run-parts(/etc/cron.hourly)[2417]: starting mcelog.cron
Sep 18 02:01:05 localhost.localdomain anacron[2413]: Normal exit (0 jobs run)
Sep 18 02:01:05 localhost.localdomain run-parts(/etc/cron.hourly)[2421]: finished mcelog.cron
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: ALSA woke
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: Most like
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: We were w
Sep 18 02:06:12 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vsftpd.service has begun starting up.
Sep 18 02:06:12 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exit
Sep 18 02:06:12 localhost.localdomain 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.
Sep 18 02:06:12 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
lines 1-23/23 (END)
[root@localhost ~]# clear
[3;J
[root@localhost ~]# journalctl -xn
-- Logs begin at Thu 2014-08-28 05:21:44 CST, end at Thu 2014-09-18 02:06:12 CST. --
Sep 18 02:01:05 localhost.localdomain run-parts(/etc/cron.hourly)[2417]: starting mcelog.cron
Sep 18 02:01:05 localhost.localdomain anacron[2413]: Normal exit (0 jobs run)
Sep 18 02:01:05 localhost.localdomain run-parts(/etc/cron.hourly)[2421]: finished mcelog.cron
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: ALSA woke
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: Most like
Sep 18 02:03:59 localhost.localdomain pulseaudio[1252]: [alsa-sink-ES1371/1] alsa-sink.c: We were w
Sep 18 02:06:12 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vsftpd.service has begun starting up.
Sep 18 02:06:12 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exit
Sep 18 02:06:12 localhost.localdomain 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.
Sep 18 02:06:12 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
哪位大神知道我哪里没配好
9 个解决方案
#1
make sure there is nothing listening on tcp/21
#netstat -ntpl|grep 21
#netstat -ntpl|grep 21
#2
谢谢!我在vsftpd.conf中找到两个监听ipv4 和ipv6的
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
把listen改成NO成功启动了
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
把listen改成NO成功启动了
#3
启动不了服务一般都是配置文件有问题,好好看看配置文件内容
#4
Unit vsftpd.service entered failed state.
同样遇到了。楼主现在解决了吗?
同样遇到了。楼主现在解决了吗?
#5
请点击左上角“结帖”按钮。
#6
我也遇到这个问题了,关闭监听了 没用啊
#7
-- Logs begin at 一 2015-06-29 17:33:42 CST, end at 二 2015-06-30 10:46:41 CST. --
6月 30 10:39:18 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain systemd[1]: Starting Session 11 of user root.
-- Subject: Unit session-11.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has begun starting up.
6月 30 10:40:01 localhost.localdomain systemd[1]: Started Session 11 of user root.
-- Subject: Unit session-11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain CROND[5583]: (root) CMD (/usr/lib64/sa/sa1 1 1)
6月 30 10:45:22 localhost.localdomain systemd[1]: Reloading.
6月 30 10:45:22 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/rtkit-daemon.service:32] Unknown lvalue 'ControlGroup' in section 'Service'
6月 30 10:46:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
lines 1-30
6月 30 10:39:18 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain systemd[1]: Starting Session 11 of user root.
-- Subject: Unit session-11.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has begun starting up.
6月 30 10:40:01 localhost.localdomain systemd[1]: Started Session 11 of user root.
-- Subject: Unit session-11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain CROND[5583]: (root) CMD (/usr/lib64/sa/sa1 1 1)
6月 30 10:45:22 localhost.localdomain systemd[1]: Reloading.
6月 30 10:45:22 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/rtkit-daemon.service:32] Unknown lvalue 'ControlGroup' in section 'Service'
6月 30 10:46:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
lines 1-30
#8
我最近也出了这个问题,是配置文件中按照某些帖子的步骤加了一些参数导致启动失败,删除了这些参数就启动了。所以看下vsftpd的配置文件,可以找一份可以启动的配置文件对照下
#9
我把ip6的监听关闭就可以了。。
#1
make sure there is nothing listening on tcp/21
#netstat -ntpl|grep 21
#netstat -ntpl|grep 21
#2
谢谢!我在vsftpd.conf中找到两个监听ipv4 和ipv6的
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
把listen改成NO成功启动了
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
把listen改成NO成功启动了
#3
启动不了服务一般都是配置文件有问题,好好看看配置文件内容
#4
Unit vsftpd.service entered failed state.
同样遇到了。楼主现在解决了吗?
同样遇到了。楼主现在解决了吗?
#5
请点击左上角“结帖”按钮。
#6
我也遇到这个问题了,关闭监听了 没用啊
#7
-- Logs begin at 一 2015-06-29 17:33:42 CST, end at 二 2015-06-30 10:46:41 CST. --
6月 30 10:39:18 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain systemd[1]: Starting Session 11 of user root.
-- Subject: Unit session-11.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has begun starting up.
6月 30 10:40:01 localhost.localdomain systemd[1]: Started Session 11 of user root.
-- Subject: Unit session-11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain CROND[5583]: (root) CMD (/usr/lib64/sa/sa1 1 1)
6月 30 10:45:22 localhost.localdomain systemd[1]: Reloading.
6月 30 10:45:22 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/rtkit-daemon.service:32] Unknown lvalue 'ControlGroup' in section 'Service'
6月 30 10:46:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
lines 1-30
6月 30 10:39:18 localhost.localdomain systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain systemd[1]: Starting Session 11 of user root.
-- Subject: Unit session-11.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has begun starting up.
6月 30 10:40:01 localhost.localdomain systemd[1]: Started Session 11 of user root.
-- Subject: Unit session-11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-11.scope has finished starting up.
--
-- The start-up result is done.
6月 30 10:40:01 localhost.localdomain CROND[5583]: (root) CMD (/usr/lib64/sa/sa1 1 1)
6月 30 10:45:22 localhost.localdomain systemd[1]: Reloading.
6月 30 10:45:22 localhost.localdomain systemd[1]: [/usr/lib/systemd/system/rtkit-daemon.service:32] Unknown lvalue 'ControlGroup' in section 'Service'
6月 30 10:46:41 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
lines 1-30
#8
我最近也出了这个问题,是配置文件中按照某些帖子的步骤加了一些参数导致启动失败,删除了这些参数就启动了。所以看下vsftpd的配置文件,可以找一份可以启动的配置文件对照下
#9
我把ip6的监听关闭就可以了。。