【Nginx】配置及使用

常用命令:

nginx -t //可以查到配置是否正确,以及配置文件路径。

如果配置不生效 sudo killall -9 nginx

注意在配置文件中注明访问来源(例如没有写明ip,就不能通过ip直接访问)

https://www.cnblogs.com/waynechou/p/7760251.html

具体配置参考官网。

posted on 2018-04-21 09:24  colipso  阅读(154)  评论(0编辑  收藏  举报

导航