nginx 錯誤記錄

錯誤1:nginx: [emerg] mkdir() "/var/tmp/nginx/client/" failed (2: No such file or directory)

[root@localhost nginx-1.6.2]# nginx
nginx: [emerg] mkdir() "/var/tmp/nginx/client/" failed (2: No such file or directory)
目錄不存在  或權限的問題 下面我們創建一下
[root@localhost nginx-1.6.2]# cd /var/tmp/
[root@localhost tmp]# mkdir -p /var/tmp/nginx/{client,proxy,fastcgi,uwsgi,scgi}
[root@localhost tmp]# nginx
[root@localhost tmp]# ps -ef |grep nginx
root      10711      1  0 17:39 ?        00:00:00 nginx: master process nginx
nginx     10712  10711  0 17:39 ?        00:00:00 nginx: worker process
root      10714   1115  0 17:39 pts/0    00:00:00 grep nginx
[root@localhost tmp]# 


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