```shell #更新源 sudo apt update #安装 sudo apt install nginx #查看状态 systemctl status nginx #退出 sudo systemctl stop nginx #启动 sudo systemctl start nginx #重启 sudo systemctl restart nginx #重载配置 sudo systemctl reload nginx ```