lighttpd dead but pid file exists解决方法

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

lighttpd服务器在进行重启的时候失败提示
opening errorlog ‘/var/log/lighttpd/error.log’ failed: Permission denied
以及
lighttpd dead but pid file exists

不要继续重启,按以下步骤重新操作


rm /var/run/lighttpd.pid
chmod 777 /var/log/lighttpd/error.log
chmod 777 /var/log/lighttpd/access.log
sudo /etc/init.d/lighttpd start

已经做成sh脚本
开机自动执行,完成以上步骤
注意添加自动运行前应赋予执行权限
chmod +x autobootandrepairsys.sh
然后
vi /etc/rc.local
/etc/lighttpd/autobootandrepairsys.sh

Leave a Comment