Nginx的安裝以及啓動

sudo apt-get install nginx

安裝程序把nginx以服務形式安裝在系統中

程序文件:/usr/sbin/nginx目錄中

全文配置文件:/etc/nginx/nginx.conf

訪問日誌文件:/var/log/nginx/access.log

錯誤日誌文件:/var/log/nginx/error.log

站點配置文件:/etc/nginx/sites-enaled/default

啓動Nginx服務器

sudo service nginx start

停止Nginx服務器

sudo service nginx stop

查看Nginx服務的狀態

sudo service nginx status

重啓Nginx服務器

sudo service nginx restart

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章