Nginx nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp"

简介: Nginx nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp"
+关注继续查看

  • 在启动 Nginx 的时候报错:


nginx: [emerg] mkdir() "/usr/local/var/run/nginx/client_body_temp" failed (2: No such file or directory)


  • 错误原因:未找到 nginx 文件夹中的 client_body_temp 文件。


  • 打开路径 /usr/local/var/run, 如果 run 里面没有 nginx 文件夹则新建一个 nginx 文件夹,如果有或者新建了文件夹,那需要命令生成配置文件。






  • 运行命令: $ nginx 或者 $ sudo nginx 启动命令都行,sudo 是允许修改等等权限开放。




  • 如果重启服务器报错

相关文章
|
3月前
|
应用服务中间件 PHP nginx
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
PHP ERROR: Unable to create the PID file (/usr/var/run/php-fpm.pid).: No such file or directory (2)
69 1
|
3月前
|
应用服务中间件 nginx
Mac Nginx nginx: [error] open() “/usr/local/var/run/nginx.pid“
Mac Nginx nginx: [error] open() “/usr/local/var/run/nginx.pid“
36 1
|
3月前
|
应用服务中间件 nginx
Mac Nginx nginx: [emerg] mkdir() “/usr/local/var/run/nginx/client_body_temp“ failed ...
Mac Nginx nginx: [emerg] mkdir() “/usr/local/var/run/nginx/client_body_temp“ failed ...
91 2
|
3月前
|
应用服务中间件 nginx
Nginx nginx: [error] open() "/usr/local/var/run/nginx.pid"
Nginx nginx: [error] open() "/usr/local/var/run/nginx.pid"
63 0
|
4月前
|
应用服务中间件 nginx
nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142
nginx: [emerg] duplicate location “/“ in /usr/local/etc/nginx/nginx.conf:142
96 0
|
应用服务中间件 Linux nginx
centos安装nginx 报错:cp: `conf/koi-win' and `/usr/local/nginx/conf/koi-win' are the same file
centos安装nginx 报错:cp: `conf/koi-win' and `/usr/local/nginx/conf/koi-win' are the same file
404 0
|
应用服务中间件 nginx
Nginx:root与alias的区别
Nginx:root与alias的区别
|
应用服务中间件 nginx
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
211 0
nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
|
应用服务中间件 nginx
重启nginx报错:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
重启nginx报错:nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed
244 0
|
应用服务中间件 网络安全 nginx
【HTTPS】nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/usr/local/nginx/conf/cert1/3540924_blog.fangkang
【HTTPS】nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/usr/local/nginx/conf/cert1/3540924_blog.fangkang
611 0
【HTTPS】nginx: [emerg] SSL_CTX_use_PrivateKey_file(“/usr/local/nginx/conf/cert1/3540924_blog.fangkang