pure-ftp服务启动不了,找不到/usr/local/pureftpd/sbin/pure-config.pl

问答中心分类: Linuxpure-ftp服务启动不了,找不到/usr/local/pureftpd/sbin/pure-config.pl
wogod asked 8 年 ago
./pureftpd_vhost.sh 这个能加上ftp用户,但是ftp服务启动不了,21端口没打开。
启动ftp服务报如下错误 :
Stopping pure-ftpd: cat: /var/run/pure-ftpd.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pure-ftpd: /etc/init.d/pureftpd: line 33: /usr/local/pureftpd/sbin/pure-config.pl: No such file or directory
 

3 Answers
oneinstack answered 8 年 ago
#先执行下面命令:
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

wogod answered 8 年 ago
[root@iZbp1faxqs7n8fwj83goglZ ~]# service pureftpd restart
Stopping pure-ftpd: cat: /var/run/pure-ftpd.pid: No such file or directory
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
Starting pure-ftpd:

wogod answered 8 年 ago
谢谢,解决了