pureftpd 无法启动

问答中心分类: OneinStackpureftpd 无法启动
55236339 提问 1年 前

阿里云服务器 CentOS 7.2 64位 安装最新版的 http://mirrors.linuxeye.com/oneinstack-full.tar.gz pureftpd 无法启动 
./pureftpd_vhost.sh  ftp账户可以正常添加  链接后 提示 连接被拒绝
以下的服务器 的反馈代码
[root@iZ23vtx3ailZ oneinstack]# service pureftpd restart
Restarting pureftpd (via systemctl): Job for pureftpd.service failed because the control process exited with error code. See “systemctl status pureftpd.service” and “journalctl -xe” for details.
[FAILED]
[root@iZ23vtx3ailZ oneinstack]# service pureftpd status
● pureftpd.service – LSB: Startup script for the pure-ftpd FTP Server
Loaded: loaded (/etc/rc.d/init.d/pureftpd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-02-07 17:14:16 CST; 21s ago
Docs: man:systemd-sysv-generator(8)
Process: 13550 ExecStart=/etc/rc.d/init.d/pureftpd start (code=exited, status=127)
Feb 07 17:14:16 iZ23vtx3ailZ systemd[1]: Starting LSB: Startup script for the pure-ftpd FTP Server…
Feb 07 17:14:16 iZ23vtx3ailZ pureftpd[13550]: Starting pure-ftpd: /etc/rc.d/init.d/pureftpd: line 33: /usr/local/pureftpd/sbin/pure-config.pl: No such file or directory
Feb 07 17:14:16 iZ23vtx3ailZ systemd[1]: pureftpd.service: control process exited, code=exited status=127
Feb 07 17:14:16 iZ23vtx3ailZ systemd[1]: Failed to start LSB: Startup script for the pure-ftpd FTP Server.
Feb 07 17:14:16 iZ23vtx3ailZ systemd[1]: Unit pureftpd.service entered failed state.
Feb 07 17:14:16 iZ23vtx3ailZ systemd[1]: pureftpd.service failed.

8 问题
最佳答案
oneinstack 回答 1年 前
#先执行下面命令:
sed -i 's@pure-config.pl@$prog@' /etc/init.d/pureftpd
sed -i 's@ --daemonize@@' /etc/init.d/pureftpd
sed -i '/^AllowOverwrite/d' /usr/local/pureftpd/etc/pure-ftpd.conf
sed -i '/^AllowStoreRestart/d' /usr/local/pureftpd/etc/pure-ftpd.conf

重启pureftpd
service pureftpd restart

 

laoshh 回答 2月 前

这个答案在现在版本不能解决问题:
现在的环境是Aliyun上的centos_7_04_64_20G,和18年3月18日的http://mirrors.linuxeye.com/oneinstack-full.tar.gz,全新安装的。
在重新启动系统盘以后 pureftpd 无法启动
[root@my-centos7.4 sbin]# systemctl status pureftpd.service
● pureftpd.service – LSB: Startup script for the pure-ftpd FTP Server
Loaded: loaded (/etc/rc.d/init.d/pureftpd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2018-03-17 15:31:00 CST; 22s ago
Docs: man:systemd-sysv-generator(8)
Process: 5519 ExecStart=/etc/rc.d/init.d/pureftpd start (code=exited, status=252)
Mar 17 15:31:00 my-centos7.4 systemd[1]: Starting LSB: Startup script for the pure-ftpd FTP Server…
Mar 17 15:31:00 my-centos7.4 pureftpd[5519]: Starting pure-ftpd: /usr/local/pureftpd/etc/pure-ftpd.c…73].
Mar 17 15:31:00 my-centos7.4 systemd[1]: pureftpd.service: control process exited, code=exited status=252
Mar 17 15:31:00 my-centos7.4 systemd[1]: Failed to start LSB: Startup script for the pure-ftpd FTP Server.
Mar 17 15:31:00 my-centos7.4 systemd[1]: Unit pureftpd.service entered failed state.
Mar 17 15:31:00 my-centos7.4 systemd[1]: pureftpd.service failed.

oneinstack 回答 2月 前

pkill pure-ftpd
service pureftpd start

laoshh 回答 2月 前

还是无法启动
[root@my-centos7.4 default]# pkill pure-ftpd
[root@my-centos7.4 default]# service pureftpd start
Starting pureftpd (via systemctl): Job for pureftpd.service failed because the control process exited with error code. See “systemctl status pureftpd.service” and “journalctl -xe” for details.
[FAILED]
[root@my-centos7.4 default]# systemctl status pureftpd.service
● pureftpd.service – LSB: Startup script for the pure-ftpd FTP Server
Loaded: loaded (/etc/rc.d/init.d/pureftpd; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2018-03-18 17:12:34 CST; 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 6502 ExecStart=/etc/rc.d/init.d/pureftpd start (code=exited, status=252)
Mar 18 17:12:33 my-centos7.4 systemd[1]: Starting LSB: Startup script for the pure-ftpd FTP Server…
Mar 18 17:12:34 my-centos7.4 pureftpd[6502]: Starting pure-ftpd: /usr/local/pureftpd/etc/pure-ftpd.c…73].
Mar 18 17:12:34 my-centos7.4 systemd[1]: pureftpd.service: control process exited, code=exited status=252
Mar 18 17:12:34 my-centos7.4 systemd[1]: Failed to start LSB: Startup script for the pure-ftpd FTP Server.
Mar 18 17:12:34 my-centos7.4 systemd[1]: Unit pureftpd.service entered failed state.
Mar 18 17:12:34 my-centos7.4 systemd[1]: pureftpd.service failed.
 

laoshh 回答 2月 前

[root@my-centos7.4 default]# journalctl -xe

— The start-up result is done.
Mar 18 17:20:01 my-centos7.4 systemd[1]: Starting Session 265 of user root.
— Subject: Unit session-265.scope has begun start-up
— Defined-By: systemd
— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit session-265.scope has begun starting up.
Mar 18 17:20:01 my-centos7.4 systemd[1]: Started Session 264 of user root.
— Subject: Unit session-264.scope has finished start-up
— Defined-By: systemd
— Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

— Unit session-264.scope has finished starting up.

oneinstack 回答 2月 前

方便的话,左下角私信IP root密码 看看

laoshh 回答 2月 前

有空再联系