Job for vsftpd.service failed because the control process exited with error code.

遇到个坑,需要弄一个ftp方便上传文件到服务器上,结果呢,安装了 vsftp 启动不了。

安装命令:yum install vsftp.

启动错误如下:

[root@iZbp1j0pytpghy9iy78q67Z webroot]# 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.
[root@iZbp1j0pytpghy9iy78q67Z webroot]# systemctl status vsftpd.service
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-07-26 17:47:01 CST; 22s ago
  Process: 23249 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=1/FAILURE)

在网上找的答案都是修改 vsftp 配置文件,但是修改之后还是不行。

根据提示查看错误方法如下:

[root@iZbp1j0pytpghy9iy78q67Z webroot]# systemctl status vsftpd
● vsftpd.service - Vsftpd ftp daemon
   Loaded: loaded (/usr/lib/systemd/system/vsftpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2019-07-26 18:00:41 CST; 2min 47s ago
  Process: 24047 ExecStart=/usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf (code=exited, status=1/FAILURE)

Jul 26 18:00:38 iZbp1j0pytpghy9iy78q67Z systemd[1]: Starting Vsftpd ftp daemon...
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: vsftpd.service: control process exited, code=exited status=1
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: Failed to start Vsftpd ftp daemon.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: Unit vsftpd.service entered failed state.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: vsftpd.service failed.
[root@iZbp1j0pytpghy9iy78q67Z webroot]# 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@iZbp1j0pytpghy9iy78q67Z webroot]# vim /etc/vsftpd/vsftpd.conf
[root@iZbp1j0pytpghy9iy78q67Z webroot]# 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@iZbp1j0pytpghy9iy78q67Z webroot]# journalctl -xe
-- Unit session-5187.scope has begun starting up.
Jul 26 18:00:01 iZbp1j0pytpghy9iy78q67Z CROND[24007]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Jul 26 18:00:38 iZbp1j0pytpghy9iy78q67Z polkitd[471]: Registered Authentication Agent for unix-process:24041:258441995 (system bus name :1.10449 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 26 18:00:38 iZbp1j0pytpghy9iy78q67Z systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit vsftpd.service has begun starting up.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: vsftpd.service: control process exited, code=exited status=1
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: Failed to start Vsftpd ftp daemon.
-- Subject: Unit vsftpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit vsftpd.service has failed.
-- 
-- The result is failed.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: Unit vsftpd.service entered failed state.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z systemd[1]: vsftpd.service failed.
Jul 26 18:00:41 iZbp1j0pytpghy9iy78q67Z polkitd[471]: Unregistered Authentication Agent for unix-process:24041:258441995 (system bus name :1.10449, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jul 26 18:01:01 iZbp1j0pytpghy9iy78q67Z systemd[1]: Started Session 5188 of user root.
-- Subject: Unit session-5188.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-5188.scope has finished starting up.
-- 
-- The start-up result is done.
Jul 26 18:01:01 iZbp1j0pytpghy9iy78q67Z systemd[1]: Starting Session 5188 of user root.
-- Subject: Unit session-5188.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit session-5188.scope has begun starting up.
Jul 26 18:01:01 iZbp1j0pytpghy9iy78q67Z CROND[24070]: (root) CMD (run-parts /etc/cron.hourly)
Jul 26 18:01:01 iZbp1j0pytpghy9iy78q67Z run-parts(/etc/cron.hourly)[24073]: starting 0anacron
Jul 26 18:01:01 iZbp1j0pytpghy9iy78q67Z run-parts(/etc/cron.hourly)[24079]: finished 0anacron
Jul 26 18:03:37 iZbp1j0pytpghy9iy78q67Z polkitd[471]: Registered Authentication Agent for unix-process:24209:258459845 (system bus name :1.10452 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jul 26 18:03:37 iZbp1j0pytpghy9iy78q67Z systemd[1]: Starting Vsftpd ftp daemon...
-- Subject: Unit vsftpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 

最后发现是端口号被占用了。

Job for vsftpd.service failed because the control process exited with error code._第1张图片

占用端口号的是 proftp 。

但是找不到配置文件,

Job for vsftpd.service failed because the control process exited with error code._第2张图片

最终记起来 这个 proftp  是安装 xampp 的时候安装的 配置文件在 xampp 的统一配置里。

气死我啦。

你可能感兴趣的:(服务器)