关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法

转载于:http://blog.csdn.net/it_dream_er/article/details/50783111

刚刚在搭建ftp服务器时,在配置好一切的参数之后,在我重启时,出现了无法启动的错误,将配置文件改了好多次都更改不好,终于在经过一阵查资料后,终于将问题定位了出来,下面先摆出错误信息:

  1. [[email protected] /home/zhoupan]# systemctl start vsftpd.service  
  2. Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details.  
  3. [[email protected] /home/zhoupan]# /etc/init.d/vsftpd start  
  4. Starting vsftpd (via systemctl):  Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details.  
  5.                                                            [FAILED]  
  6. [[email protected]www /home/zhoupan]# systemctl status vsftpd.service   
  7. ● vsftpd.service - Vsftpd ftp daemon  
  8.    Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)  
  9.    Active: failed (Result: exit-code) since 三 2016-03-02 08:09:50 EST; 18s ago  
  10.   Process: 17087 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2)  
  11.  Main PID: 16908 (code=killed, signal=TERM)  
  12.     
  13. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Starting Vsftpd ftp daemon...  
  14. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service: control process exited, code=exited status=2  
  15. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Failed to start Vsftpd ftp daemon.  
  16. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Unit vsftpd.service entered failed state.  
  17. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service failed.  
  18. [[email protected] /home/zhoupan]# journalctl -xe  
  19. 3月 02 08:10:01 www.dreamchasinger.cn kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs  
  20. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Created slice user-0.slice.  
  21. -- Subject: Unit user-0.slice has finished start-up  
  22. -- Defined-By: systemd  
  23. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  24. --   
  25. -- Unit user-0.slice has finished starting up.  
  26. --   
  27. -- The start-up result is done.  
  28. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Starting user-0.slice.  
  29. -- Subject: Unit user-0.slice has begun start-up  
  30. -- Defined-By: systemd  
  31. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  32. --   
  33. -- Unit user-0.slice has begun starting up.  
  34. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Started Session 18 of user root.  
  35. -- Subject: Unit session-18.scope has finished start-up  
  36. -- Defined-By: systemd  
  37. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  38. --   
  39. -- Unit session-18.scope has finished starting up.  
  40. --   
  41. -- The start-up result is done.  
  42. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Starting Session 18 of user root.  
  43. -- Subject: Unit session-18.scope has begun start-up  
  44. -- Defined-By: systemd  
  45. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  46. --   
  47. -- Unit session-18.scope has begun starting up.  
  48. 3月 02 08:10:01 www.dreamchasinger.cn CROND[17093]: (root) CMD (/usr/lib64/sa/sa1 1 1)  
  49. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Removed slice user-0.slice.  
  50. -- Subject: Unit user-0.slice has finished shutting down  
  51. -- Defined-By: systemd  
  52. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  53. --   
  54. -- Unit user-0.slice has finished shutting down.  
  55. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Stopping user-0.slice.  
  56. -- Subject: Unit user-0.slice has begun shutting down  
  57. -- Defined-By: systemd  
  58. -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel  
  59. --   
  60. -- Unit user-0.slice has begun shutting down.  
  61. 3月 02 08:10:03 www.dreamchasinger.cn systemd[1]: Configuration file /usr/lib/systemd/system/ebtables.service is marked executable. Please remove executable permission bits. Proceeding anywa  
  62. 3月 02 08:10:03 www.dreamchasinger.cn systemd[1]: Configuration file /usr/lib/systemd/system/wpa_supplicant.service is marked executable. Please remove executable permission bits. Proceeding  
  63. 3月 02 08:10:07 www.dreamchasinger.cn systemd[1]: Configuration file /usr/lib/systemd/system/ebtables.service is marked executable. Please remove executable permission bits. Proceeding anywa  
  64. 3月 02 08:10:07 www.dreamchasinger.cn systemd[1]:  

我的配置文件内容为:

  1. [[email protected] /home/zhoupan]# cat /etc/vsftpd/vsftpd.conf | grep ‘^[^#]‘  
  2. anonymous_enable=YES  
  3. local_enable=YES  
  4. write_enable=YES  
  5. local_umask=022  
  6. xferlog_enable=YES  
  7. connect_from_port_20=YES  
  8. xferlog_file=/var/log/xferlog  
  9. xferlog_std_format=YES  
  10. ftpd_banner=Welcome to blah FTP service.  
  11. listen=YES  
  12. listen_port=21  
  13. listen_ipv6=YES  
  14. pam_service_name=vsftpd  
  15. userlist_enable=YES  
  16. tcp_wrappers=YES  
  17. pasv_enable=YES  
  18. use_localtime=YES  

出现错误的原因是:由于centos7中vsftp的配置文件默认将 listen_ipv6=YES 这一行没有注释掉,而我们目前的网络环境还不支持ipv6,从而导致出现错误无法启动,所以解决方法是将 listen_ipv6=YES更改为:listen_ipv6=NO,或将这一行注释掉

按上面的方法注释掉 listen_ipv6=YES后,成功启动vsftp

时间: 2024-09-30 19:28:31

关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法的相关文章

Linux 重启网卡失败 Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

linux下重启网卡使用命令 : service network restart 时报错: [[email protected] hadoop]# service network restart Starting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.servi

Docker 启动失败Starting docker (via systemctl): Job for docker.service failed

Starting docker (via systemctl):  Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.[FAILED] 解决办法: yum install device-mapper-devel fixed this for me. Using the default configuration of the latest do

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details

thinkphp 在Apache上配置启用伪静态,重启Apache1 restart 竟然失败了,报错 Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details 嗯,看状态 执行命令 systemctl status http

docker 报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

centos 启动docker服务报错: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. 1,create daemon.json in /etc/docker/ 2, put this in it: { &q

CentOS启动docker1.13失败(Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.)

一.启动失败 1.启动docker [[email protected] ~]# systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe " for details. 上面表示输入 systemctl

Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details.

[[email protected] ~]#  systemctl start php-fpm Job for php-fpm.service failed because the control process exited with error code. See "systemctl status php-fpm.service" and "journalctl -xe" for details. [[email protected] ~]#  systemc

Linux系统Docker启动问题Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service"

在Liunx中使用Docker, 注: Liunx使用的是在虚拟机下的centOS7版本在刚开始安装Docker时没有任何错误, 但是在后续的docker启动过程中, 出现以下问题: 1 [[email protected] docker]# service docker start 2 Redirecting to /bin/systemctl start docker.service 3 Job for docker.service failed because the control pr

Linux服务器vsftp服务 在本机的时间 与用ftp连接后的时间不一致解决办法

在本机上的时间 [[email protected] Ctrl]$ ll total 112 -rw-r--r-- 1 wxbftp wxbftp 163 Jan  6 05:54 MILIAO_20170106_103e2c8fb4d649d1b607a07426112384.json -rw-r--r-- 1 wxbftp wxbftp   2 Jan  6 05:54 MILIAO_20170106_103e2c8fb4d649d1b607a07426112384.json.ok -rw-

Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details

我这边centos安装mongodb启动报错,有mongo版本,是因为删除了配置文件“/etc/mongod.conf” 解决办法:把  /etc/mongod.conf_bak复制到  /etc/mongod.conf cp /etc/mongod.conf_bak /etc/mongod.conf 原文地址:https://www.cnblogs.com/2186009311CFF/p/12268913.html