./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
启动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
#先执行下面命令:
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
[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:
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:
Please login or Register to submit your answer