← 返回首页

Linux 服务器常用命令小记

看系统状态:uptime、free -h、df -h。

看端口占用:ss -tlnp。看服务日志:journalctl -u nginx -n 50。

改完 nginx 配置先检查再重载:nginx -t && systemctl reload nginx。