错误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]#