NGINX启动不起来报错: [emerg] mkdir() "/var/tmp/nginx/client" failed (2: No such file or directory)

 nginx -t 显示:[emerg] mkdir() "/var/tmp/nginx/client" failed (2: No such file or directory)
使用如下命令:mkdir -pv /var/tmp/nginx/client

再输入 nginx -t显示:the configuration file /etc/nginx/nginx.conf syntax is ok

在启动NGINX就可以了: service nginx start
--------------------- 
作者:小宫举 
来源:CSDN 
原文:https://blog.csdn.net/qq_30332143/article/details/88388714 
版权声明:本文为博主原创文章,转载请附上博文链接!

你可能感兴趣的:(linux)