`

nginx pid No such file or directory解决办法

 
阅读更多

服务器重启后,有时会需要重新启动nginx,采用

nginx -s reload 

 提示

nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory)

 是因为服务器重启时丢了pid文件。

这种情况下可以使用nginx -c,具体如下(nginx.conf位置自行替换)

nginx -c /etc/nginx/nginx.conf

 

分享到:
评论

相关推荐

    ./nginx: No such file or directory

    我用的是ubuntu18.04安装nginx 一般来说我们安装的nginx文件结构大致是这样的: 1. 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 2. 程序文件在/usr/sbin/nginx 3...

    解决PHP 7编译安装错误:cannot stat ‘phar.phar’: No such file or directory

    本文将详细解析如何解决在编译安装PHP 7时遇到的“cannot stat ‘phar.phar’: No such file or directory”错误,并提供解决方法。 错误概述: 在尝试将PHP 7安装到Linux系统时,可能会遇到一个错误,提示“cp: ...

    重启或杀掉Nginx进程后丢失nginx.pid的解决办法

    Restarting nginx daemon: nginxcat: /usr/local/nginx/logs/nginx.pid: No such file or directorykill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]nginx not ...

    带rtmp模块的nginx安装脚本

    8. **启动和检查Nginx服务**:使用`systemctl start nginx`启动Nginx服务,用`systemctl status nginx`检查其状态。 9. **设置开机启动**:为了确保Nginx在系统重启后自动启动,可以使用`systemctl enable nginx`...

    nginx提示No input file specified怎么办.docx

    Nginx 提示 "No input file specified" 的解决方法 Nginx 是一个流行的开源 web 服务器软件,然而,在使用 Nginx 时,有时可能会遇到 "No input file specified" 的错误提示,这篇文章将详细讲解该错误的解决方法。...

    nginx+php出现No input file specified解决办法

    今天在自己本地的开发环境突然出现了No input file specified错误,反复检查返现自己的配置文件和...后来反复尝试,重启电脑后问题得到解决但是再次运行下载的tp5开源项目后其他网站又出现了这样的错误No input file sp

    Nginx启动常见错误及解决方法

    登陆服务器之后进到nginx使用./nginx -s reload重新读取配置文件,发现报nginx: [error] open() “/usr/local/nginx/logs/nginx.pid” failed (2: No such file or directory)错误,进到logs文件发现的确没有nginx....

    Nginx常见错误及解决方法.doc

    sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这种错误是由于环境中缺少 libpcre.so.1 文件所致。解决方法是创建一个软链接: ...

    报错 No input file specified的解决办法

    你可以参考提供的资源,如 "No input file specified的解决方法-百度经验.url" 和 "报错 ”No input file specified.“ 排查 - zh_mead的博客 - CSDN博客.url",这些链接可能提供了更具体的步骤和案例。 在实际操作...

    【LNMP】提示Nginx PHP “No input file specified”错误的解决办法

    ### LNMP环境中“Nginx PHP ‘No input file specified’”错误解析与解决方案 #### 错误概述 在LNMP(Linux + Nginx + MySQL + PHP)环境下部署Web应用时,用户可能会遇到一个常见的问题:“No input file ...

    ngnix依赖包 pcre-8.43.tar.gz

    **Nginx 依赖包 PCRE (Perl Compatible Regular Expressions)** 标题中提到的 "ngnix依赖包 pcre-8.43.tar.gz" 是指 Nginx Web 服务器在构建时需要的一个关键组件——PCRE(Perl Compatible Regular Expressions)...

    nginx的try_file命令实现404跳转_nginx_tryfile404_

    这里的`file...`是一系列文件或目录路径,Nginx会按照它们的顺序依次查找。如果找到第一个存在并且可读的文件,Nginx就会返回这个文件。如果所有列出的文件都不存在或者不可读,Nginx就会执行`fallback`参数指定的...

    Nginx1.8.0安装简述

    error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 五、启动 Nginx 安装完成后,需要启动 Nginx 服务器: /usr/local/webserver/nginx/sbin/...

    nginx上传文件大小报错500的解决办法

    nginx上传文件大小报错500的解决办法 采用nginx作反向代理,出现了一个诡异的问题,小文件可以提交,大文件会报500内部错误。这个是什么原因导致的呢?  查wiki可知,上传文件大小相关的有三个配置 client_body_...

    Nginx常见错误

    #### 一、启动错误:`sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory` **问题描述**: 在尝试启动Nginx时,可能会遇到如下的错误...

    提示No input file specified的解决方法.docx

    下面将从IIS、Apache和Nginx三个方面详细介绍解决"No input file specified"错误的方法。 IIS解决方法 在IIS服务器中,出现"No input file specified"错误,可能是由于PHP.ini文件中的doc_root行配置不正确。解决...

Global site tag (gtag.js) - Google Analytics