← 返回首页
看系统状态:uptime、free -h、df -h。
uptime
free -h
df -h
看端口占用:ss -tlnp。看服务日志:journalctl -u nginx -n 50。
ss -tlnp
journalctl -u nginx -n 50
改完 nginx 配置先检查再重载:nginx -t && systemctl reload nginx。
nginx -t && systemctl reload nginx