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

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

  1. [root@www /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. [root@www /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. [root@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. 月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Starting Vsftpd ftp daemon...  
  14. 月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service: control process exited, code=exited status=2  
  15. 月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Failed to start Vsftpd ftp daemon.  
  16. 月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Unit vsftpd.service entered failed state.  
  17. 月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service failed.  
  18. [root@www /home/zhoupan]# journalctl -xe  
  19. 月 02 08:10:01 www.dreamchasinger.cn kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs  
  20. 月 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. 月 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. 月 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. 月 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. 月 02 08:10:01 www.dreamchasinger.cn CROND[17093]: (root) CMD (/usr/lib64/sa/sa1 1 1)  
  49. 月 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. 月 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. 月 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. 月 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. 月 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. 月 02 08:10:07 www.dreamchasinger.cn systemd[1]:  

我的配置文件内容为:

  1. [root@www /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

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

  1. Restarting network (via systemctl): Job for network.service failed because the control process exited with error code. See "systemctl status network.service" and "journalctl -xe" for details.

    编辑完 ip地址,要重启网络 sudo service network restart 结果返回错误,错误如下 Restarting network (via systemctl): Job for ...

  2. 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 时报错: [root@slave01 hadoop]# service network restart Startin ...

  3. Jenkins 安装启动提示“iJob for jenkins.service failed because the control process exited with error code. See "systemctl status jenkins.service" and "journalctl -xe" for details.”

    通过RPM安装Jenkins简单方便,不太需要复杂的过程,但是在安装完成以后启动Jenkins的时候提示“Starting jenkins (via systemctl): Job for jenki ...

  4. Job for vsftpd.service failed because the control process exited with error code

    # systemctl start vsftpd.serviceJob for vsftpd.service failed because the control process exited wit ...

  5. 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 ...

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

    Starting docker (via systemctl):  Job for docker.service failed. See 'systemctl status docker.servic ...

  7. 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 [root@localhost ~]# systemctl start docker Job for docker.service failed because t ...

  8. 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 cod ...

  9. 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.

    [root@web01 ~]#  systemctl start php-fpm Job for php-fpm.service failed because the control process ...

随机推荐

  1. Pikachu漏洞练习平台实验——文件包含(File Inclusion)(六)

    1.概述 1.1简介 在 Web 后台开发中,程序员往往为了提高效率以及让代码看起来更加简洁,会使用 “包含” 函数功能.比如把一系列功能函数都写进 function.php 中,之后当某个文件需要调 ...

  2. Deepin 下开启SSH远程登陆

    关于deepin下安装ssh以后root用户登陆报错的解决   最近刚刚接触到deepin,觉得,wow,除了mac,还有这么好看的非win系统,而且第测出那个Linux,宽容度很高,非常适合我这种比 ...

  3. solr的moreLikeThis实现“相似数据”功能

    在我们使用网页搜索时,会注意到每一个结果都包含一个 “相似页面” 链接,单击该链接,就会发布另一个搜索请求,查找出与起初结果类似的文档.Solr 使用 MoreLikeThisComponent(ML ...

  4. P2737 [USACO4.1]麦香牛块Beef McNuggets

    题目描述 农夫布朗的奶牛们正在进行斗争,因为它们听说麦当劳正在考虑引进一种新产品:麦香牛块.奶牛们正在想尽一切办法让这种可怕的设想泡汤.奶牛们进行斗争的策略之一是“劣质的包装”.“看,”奶牛们说,“如 ...

  5. BUUCTF--刮开有奖

    文件链接:https://buuoj.cn/files/abe6e2152471e1e1cbd9e5c0cae95d29/8f80610b-8701-4c7f-ad60-63861a558a5b.ex ...

  6. 修改ps工具栏字体大小

     修改ps工具栏字体大小 先改电脑分辨率或者改首选项--界面---文字,退出后,重新打开,但你会发现问题还是没解决,我们接着往下  找到文件夹安装目录下的photoshops.exe启动文件(查找方法 ...

  7. JSON:结构化数据格式

    JSON是javascript的子类,也是作为更好的互联网传输结构化数据格式逐渐取代XML,因此要理解JSON,重要的是理解它是一种数据格式,不是一种编程语言. 语法 //javascript var ...

  8. linux ---apache的安装和配置

    linux环境下的安装:yum安装和tar包安装 yum安装: 首先安装php环境 yum install php55w yum install php55w-mysql yum install ph ...

  9. 【Leetcode周赛】从contest-91开始。(一般是10个contest写一篇文章)

    Contest 91 (2018年10月24日,周三) 链接:https://leetcode.com/contest/weekly-contest-91/ 模拟比赛情况记录:第一题柠檬摊的那题6分钟 ...

  10. Sass-变量计算

    在 Sass 中除了可以使用数值进行运算之外,还可以使用变量进行计算,其实在前面章节的示例中也或多或少的向大家展示了.在 Sass 中使用变量进行计算,这使得 Sass 的数学运算功能变得更加实用.一 ...