![vsftpd.service 的作业失败,因为控制进程退出并显示错误代码](https://linux22.com/image/113687/vsftpd.service%20%E7%9A%84%E4%BD%9C%E4%B8%9A%E5%A4%B1%E8%B4%A5%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%8E%A7%E5%88%B6%E8%BF%9B%E7%A8%8B%E9%80%80%E5%87%BA%E5%B9%B6%E6%98%BE%E7%A4%BA%E9%94%99%E8%AF%AF%E4%BB%A3%E7%A0%81.png)
我无法重新启动vsftpd
.
[root@localhost vsftpd]# service vsftpd restart
Redirecting to /bin/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.
我用它systemctl status vsftpd -l
来检查:
[root@localhost ~]# systemctl status vsftpd -l
● vsftpd.service - Vsftpd ftp daemon
Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-06-18 17:14:15 CST; 2h 49min ago
Process: 33103 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=1/FAILURE)
Jun 18 17:14:12 localhost.localdomain systemd[1]: Starting Vsftpd ftp daemon...
Jun 18 17:14:15 localhost.localdomain systemd[1]: vsftpd.service: control process exited, code=exited status=1
Jun 18 17:14:15 localhost.localdomain systemd[1]: Failed to start Vsftpd ftp daemon.
Jun 18 17:14:15 localhost.localdomain systemd[1]: Unit vsftpd.service entered failed state.
Jun 18 17:14:15 localhost.localdomain systemd[1]: vsftpd.service failed.
请注意,在我的 中/etc/vsftpd/vsftpd.conf
,我更改了:
listen=YES
listen_ipv6=NO
我使用journalctl -xe
,我得到以下信息:
[root@localhost vsftpd]# journalctl -xe
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: Error evaluating authoriza
Jun 18 20:09:46 localhost.localdomain polkitd[33643]: /etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
6月18日20:09:46 localhost.localdomain polkitd[33643]:评估授权时出错6月18日20:09:46 localhost.localdomain polkitd[33643]:/etc/polkit-1/rules.d/49-p
(pkla-check-authorization:
'
Jun 18 20:09:46 localhost.localdomain polkitd[33643]:评估授权时出错
答案1
根据vsftpd配置文件
# 当启用“listen”指令时,vsftpd 以独立模式运行并且 # 监听 IPv4 套接字。该指令不能同时使用 # 使用listen_ipv6指令。
所以注释掉listen_ipv6=NO
然后再试一次。
答案2
我遇到了同样的问题,我只需按照以下步骤操作即可
- 复制
vsftpd.conf
- 改成
listen=NO
listen=YES
- 改成
listen_ipv6=YES
listen_ipv6=NO
- 保存文件
- 重启vsftp