常用nginx相关的命令
vim /etc/nginx/nginx.cnf
sudo nginx -t # 测试配置文件是否ok
sudo nginx -s reload # 重启配置文件,使之生效
// 查看状态
$ sudo systemctl status nginx.service
// 开启 nginx 服务
$ sudo systemctl start nginx.service
// 重启服务
$ sudo systemctl restart nginx.service
// 查看所有服务
$ sudo systemctl list-units --type=service
关于静态文件的配置https://www.cnblogs.com/moon3/p/11095645.html
location /huan/ {
alias /home/www/huan/; # 此处结尾的/ 必须加上
}