关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
来源:互联网 发布:内存条涨价 知乎 编辑:程序博客网 时间:2024/06/05 03:44
关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
刚刚在搭建ftp服务器时,在配置好一切的参数之后,在我重启时,出现了无法启动的错误,将配置文件改了好多次都更改不好,终于在经过一阵查资料后,终于将问题定位了出来,下面先摆出错误信息:
[root@www /home/zhoupan]# systemctl start vsftpd.service Job for vsftpd.service failed because the control process exited with error code. See "systemctl status vsftpd.service" and "journalctl -xe" for details. [root@www /home/zhoupan]# /etc/init.d/vsftpd start 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. [FAILED] [root@www /home/zhoupan]# systemctl status vsftpd.service ● vsftpd.service - Vsftpd ftp daemon Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 三 2016-03-02 08:09:50 EST; 18s ago Process: 17087 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2) Main PID: 16908 (code=killed, signal=TERM) 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Starting Vsftpd ftp daemon... 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service: control process exited, code=exited status=2 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Failed to start Vsftpd ftp daemon. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: Unit vsftpd.service entered failed state. 3月 02 08:09:50 www.dreamchasinger.cn systemd[1]: vsftpd.service failed. [root@www /home/zhoupan]# journalctl -xe 3月 02 08:10:01 www.dreamchasinger.cn kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Created slice user-0.slice. -- Subject: Unit user-0.slice has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has finished starting up. -- -- The start-up result is done. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Starting user-0.slice. -- Subject: Unit user-0.slice has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has begun starting up. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Started Session 18 of user root. -- Subject: Unit session-18.scope has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-18.scope has finished starting up. -- -- The start-up result is done. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Starting Session 18 of user root. -- Subject: Unit session-18.scope has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-18.scope has begun starting up. 3月 02 08:10:01 www.dreamchasinger.cn CROND[17093]: (root) CMD (/usr/lib64/sa/sa1 1 1) 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Removed slice user-0.slice. -- Subject: Unit user-0.slice has finished shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has finished shutting down. 3月 02 08:10:01 www.dreamchasinger.cn systemd[1]: Stopping user-0.slice. -- Subject: Unit user-0.slice has begun shutting down -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit user-0.slice has begun shutting down. 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 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 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 3月 02 08:10:07 www.dreamchasinger.cn systemd[1]:
我的配置文件内容为:
出现错误的原因是:由于centos7中vsftp的配置文件默认将 listen_ipv6=YES 这一行没有注释掉,而我们目前的网络环境还不支持ipv6,从而导致出现错误无法启动,所以解决方法是将 listen_ipv6=YES更改为:listen_ipv6=NO,或将这一行注释掉
按上面的方法注释掉 listen_ipv6=YES后,成功启动vsftp
0 0
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- CentOS7报: Restarting network (via systemctl): Job for network.service failed because the control pr
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- Job for tomcat.service failed because the control process exited with error code 解决办法:
- 关于nginx的Job for nginx.service failed because the control process exited with error code.错误
- Dockers Job for docker.service failed because the control process exited with error code
- Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- Centos 7不能上网,Job for iptables.service failed because the control process exited with error code.
- 重启网卡报Job for network.service failed because the control process exited with error code.。。 错误
- 解决Docker启动服务器链接失败-Job for docker.service failed because the control process exited error code
- Ubuntu中配置apache的虚拟机时报apache2.serviceJob for apache2.service failed because the control process exite
- Ubuntu中Apache2启动失败报错Job for apache2.service failed because the cont...
- android仿微信、华为通讯录
- setsockopt中参数之SO_REUSEADDR的意义
- 大数相减
- Linux+树莓派3开发总结——通过udev自动挂载U盘的方法
- VS2013创建和调用Web服务
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- mysql数据库字段生成
- github 上传代码并且提交和维护
- CF#367(Div2)C. Hard problem (DP)
- Objective-C Runtime 运行时之五:协议与分类
- git 命令及错误记录
- mybatis+spring+springMVC整个项目流程的配置(简化版)
- 微型水泵霍尔,12v电机霍尔,12-24V电机霍尔
- 【LCD】Frame rate control