smileTan

导航

nginx.config配置与重启

1.首页路径配置

location / {
root /root/publish/MALLINDEX;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}

2.重启(有sbin的目录)

 

 

 cd /user/sbin

./nginx -s reload

posted on 2020-10-29 11:01  smileTan  阅读(500)  评论(0编辑  收藏  举报