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
-- 

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

占用端口号的是 proftp 。

但是找不到配置文件,

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

气死我啦。

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值