已解决
发布

阿里云服务器 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.

2 答案

发布
管理员 2017-02-08
#先执行下面命令:
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

 

#
发布

O(∩_∩)O谢谢 根据您的命令 已经完全好使了  灰常感谢~~~

#1

请登录或者 注册 来提交答案