返回顶部
首页 > 资讯 > 服务器 >restart vsftpd失败原因排查Job for vsftpd.service failed because the control process exited with error code
  • 909
分享到

restart vsftpd失败原因排查Job for vsftpd.service failed because the control process exited with error code

linux服务器运维 2023-09-07 09:09:05 909人浏览 八月长安
摘要

虚机配置vsftpd后重启失败 systemctl restart vsftpd.service 提示错误信息: Job for vsftpd.service failed because the control process exite

虚机配置vsftpd后重启失败

systemctl restart 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.

查看vsftpd的状态:
[root@localhost ~]# 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 Thu 2023-05-18 22:22:32 CST; 13s aGo
  Process: 19429 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=2)

May 18 22:22:32 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
May 18 22:22:32 localhost.localdomain vsftpd[19429]: 500 OOPS: bad bool value in config file for: userlist_enable
May 18 22:22:32 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=2
May 18 22:22:32 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
May 18 22:22:32 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
May 18 22:22:32 localhost.localdomain systemd[1]: vsftpd.service failed.
[root@localhost ~]#
[root@localhost ~]#

里面找到了这个错误信息:
500 OOPS: bad bool value in config file for: userlist_enable

这是因为vsftpd.conf文件里某一行后边加了一个空格

挨个检查发现确实有一行编辑时结尾多了一个空格,修改保存后重启正常。

[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# ^C
[root@localhost ~]# systemctl restart vsftpd.service
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2023-05-18 22:25:43 CST; 5min ago
  Process: 19489 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=0/SUCCESS)
 Main PID: 19490 (vsftpd)
   CGroup: /system.slice/vsftpd.service
           └─19490 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf

May 18 22:25:43 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
May 18 22:25:43 localhost.localdomain systemd[1]: Started Vsftpd ftp daemon.
[root@localhost ~]#
 

来源地址:https://blog.csdn.net/weixin_45371131/article/details/130746334

--结束END--

本文标题: restart vsftpd失败原因排查Job for vsftpd.service failed because the control process exited with error code

本文链接: https://lsjlt.com/news/397972.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作