photonvps安装lnmp一键包,问题多多啊……
之前使用D9 128M内存的vps 一切正常,偶尔502,重启lnmp即可倒是这个512m内存的photonvps每次装好都正常,过不到24小时 就会无法运行。ssh进去restart一下,出现如下提示:
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.
Shutting down php_fpm . done
Starting php_fpm . done
重启vps后 问题依旧……
偶尔提示有所变化
Reload LNMP...
Reload Nginx configure...
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
Nginx program is reloding!
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL.... ERROR! Manager of pid-file quit without updating file.
Shutting down php_fpm ................................... failed
Starting php_fpmdone
但基本上就是这样两种
不知问题所在,求解:(
回复 1# 的帖子
只发上面这些内容没法解决问题的,最好是发编译时候的错误记录。如果方便的话,pm我ip和root密码我看一下。 因为一开始安装好是一切正常的网页啊 数据库啊 一切ok所以也没什么错误记录……只是在使用一天后……出状况……而且是沒放网站 仅仅是默认的pphp网页……这就是奇怪的地方又,已pm ……麻烦您拉
回复 3# 的帖子
是你磁盘空间占用完了才出现的上面的情况。/home/wwwroot/logs/ 下面的日志文件占用了30多个G 我晕死,只是个测试用二级域名,居然这么悲惨???请问遇到这种问……该怎么办啊- -
回复 5# 的帖子
最好是定期删除日志或者关闭日志。 开通新的虚拟主机时 可以选择是否关闭日志但是在新装lnmp环境时,对于默认域名并没有是否关闭日志选项……
请问这步怎么做 google了下 都是一句话带过……大莫名 从网上找的文章:
Nginx关闭日志
可以修改nginx.conf 找到access_log:
access_log /dev/null;
error_log /dev/null;
这样全部把他们丢到系统的黑洞里了、不用每时每刻都往系统磁盘疯狂的读写日志了 还延长硬盘的寿命
修改完,重启LNMP即可。
页:
[1]