转载于: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. 如何创建linux虚拟机

    一.安装配置linux虚拟机 第1步:运行"Vmware WorkStation",看到主页面. 第2步:创建新的虚拟机,新建虚拟机向导——典型(推荐). 第3步:选择稍后安装操作 ...

  2. sshpass非交互SSH密码验证

    1.yum安装yum install sshpass -y1.1编译安装yum install wget -ywget http://sourceforge.net/projects/sshpass/ ...

  3. 2019牛客暑期多校训练营(第一场) - H - XOR - 线性基

    https://ac.nowcoder.com/acm/contest/881/H 题意: 给定n个整数,求其中异或和为 \(0\) 的子集的大小的和. 题解思路: 首先转化为每个可以通过异或表示 \ ...

  4. python学习第三十一天函数的嵌套及函数的作用域

    python函数的嵌套是指在函数里面嵌套另外一个函数,可以嵌套更多,函数一旦套用了另外一个函数,他的作用域就已经形成,可以通过global关键词改变变量的作用域,下面详细说明函数的嵌套及函数的作用域 ...

  5. 1. ZooKeeper简介

    1. ZooKeeper是什么 ZooKeeper致力于提供一个高性能.高可用,且具备严格的顺序访问控制能力的分布式协调服务,是雅虎公司创建,是Google的Chubby一个开源的实现,也是Hadoo ...

  6. 20180308-Python内置方法

    先大致粗略的说一下反射的概念,不是很准确,后续详细讲解: 1. 以字符串的形式,导入模块 2. 以字符串的形式,获取模块内部的函数,并执行 通常我们想在一个模块中导入另外一个模块,则需要通过 impo ...

  7. 【知识强化】第四章 指令系统 4.3 CISC和RISC的基本概念

    那么我们进入本章的最后一节,CISC和RISC. 我们先来回顾一下,我们这一章的一个概览.我们之前已经把指令格式和指令的寻址方式都讲完了,这两部分呢是本章的一个重点.而本章的这一部分,CISC和RIS ...

  8. hadoop+spark集群搭建

    1.选取三台服务器(CentOS系统64位) 114.55.246.88 主节点 114.55.246.77 从节点 114.55.246.93 从节点 之后的操作如果是用普通用户操作的话也必须知道r ...

  9. CF 36E Two Paths

    传送门 真实的自闭= =+ 考试的时候老师明明说了可以路径为空T^T 然后光荣的挂掉了 20分的链[明明是最送分的] 上来就看出来欧拉回路了嘛 然后思考了一下大概奇点配个对 删一条简单路径剩下的跑欧拉 ...

  10. Boyer-Moore

    Boyer-Moore 只做这些失败的匹配,就可以排除掉相应的对齐位置.在BM算法中,模式串P与文本串T的对准位置依然自左向右移动,而在对准位置确是自右向左的逐一比对各个字符串,具体的,在每一轮自右向 ...