查看nginx錯誤日志
ps -ef | grep nginx
查看nginx 目錄
最后一行
root 25458 1 0 Mar07 ? 00:00:01 nginx: master process /www/server/nginx/sbin/nginx -c /www/server/nginx/conf/nginx.conf
vim(或cat) /www/server/nginx/conf/nginx.conf
找到include /www/server/panel/vhost/nginx/*.host 這個真正虛擬機,查看配置的每個域名host文件
cd /www/server/panel/vhost/nginx
找到你的網站域名目錄
cat testsmall.yaotiao.net.conf
找到配置的
access_log /www/wwwlogs/testsmall.yaotiao.net.log;
error_log /www/wwwlogs/testsmall.yaotiao.net.error.log;
這兩個日志文件,一個為正常的日志,一個為報錯日志
然后
tailf /www/wwwlogs/testsmall.yaotiao.net.error.log
使用tailf命令看日志