Debian安装nginx
1.更新包
sudo apt update
2.安装nginx
sudo apt install nginx
3.安装后路径
// 查看安装路径 whereis nginx // nginx.conf路径 /etc/nginx
// html路径 /usr/share/nginx/html
4.常用命令
// 启动 sudo systemctl start nginx // 停止 sudo systemctl stop nginx // 状态 sudo systemctl status nginx // 开机自启动 sudo systemctl enable nginx