vsftpd.service 的作业失败,因为控制进程退出并显示错误代码

vsftpd.service 的作业失败,因为控制进程退出并显示错误代码

我无法重新启动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

我遇到了同样的问题,我只需按照以下步骤操作即可

  1. 复制vsftpd.conf
  2. 改成listen=NOlisten=YES
  3. 改成listen_ipv6=YESlisten_ipv6=NO
  4. 保存文件
  5. 重启vsftp

相关内容