Think before you speak, read before you think.

Category: Nginx

  • nginx upgrade 失败

    CentOS 下使用 yum 安装。为了平滑升级 yum update nginx 安装完成之后 /etc/init.d/nginx upgrade 提示失败,nginx_error.log 中出现 [alert] 10690#0: execve() failed while executing new binary process “nginx” (2: No such file or directory) 原因是之前启动没有使用 /usr/sbin/nginx -c /etc/nginx/nginx.conf 启动,而是通过环境变量里的 nginx 启动的。这样的话只能想办法把这台踢出集群,然后 /etc/init.d/nginx restart 参考:https://groups.google.com/forum/#!topic/openresty/HiV3c-JwTZ4