linux下nginx經常使用命令

1、基本指令

首先進入目錄 html

#cd /usr/local/nginx/sbin/nginx

啓動nginxvim

#./nginxspa

中止nginx3d

./nginx -s stophtm

從新啓動blog

./nginx -s reload教程

 

2、更改配置文件

# cd /usr/local/nginx/conf配置

# vim nginx.conf防火牆

 

更高配置後,須要重啓nginx

 

3、常見問題

若是配置nginx後,沒法訪問,考慮防火牆沒有開放端口

 

關於安裝 nginx 的教程,參考 https://www.cnblogs.com/kaid/p/7640723.html

相關文章
相關標籤/搜索