nginx: [emerg] CreateDirectory() "D:\tools\nginx-1.14.0/temp/client_body_temp" failed (3: The system cannot find the path specified)


在Windows中啟動nginx提示如下信息

nginx: [emerg] CreateDirectory() "D:\tools\nginx-1.14.0/temp/client_body_temp" failed (3: The system cannot find the path specified)

找不到指定路徑(可能是以前改配置改的,記不清了),只能重新解壓一次了。

 

 啟動和停止都需要使用命令,不然不會停止

 

Nginx運用場景如下:

1、http服務器。Nginx是一個http服務可以獨立提供http服務。可以做網頁靜態服務器。 
2、虛擬主機。可以實現在一台服務器虛擬出多個網站。例如個人網站使用的虛擬主機。 
3、反向代理,負載均衡。當網站的訪問量達到一定程度后,單台服務器不能滿足用戶的請求時,需要用多台服務器集群可以使用nginx做反向代理。並且多台服務器可以平均分擔負載,不會因為某台服務器負載高宕機而某台服務器閑置的情況。

Nginx下載:http://nginx.org/en/download.html

常用命令

nginx -t   驗證(nginx.conf)配置文件是否有語法錯誤
nginx -V   查看Nginx的版本號
start nginx   啟動Nginx (windows下start nginx)

nginx.exe  啟動Nginx
nginx -c /usr/local/nginx/conf/nginx.conf   啟動nginx
nginx -s stop   快速停止或關閉Nginx
nginx -s quit   正常停止或關閉Nginx
nginx -s reload   配置文件修改重裝載命令
nginx -h   查看幫助信息
nginx -s reopen   打開日志文件

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM