解决办法: /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 使用 nginx -c 的参数指定 nginx.conf 文件的位置 然后在重写加载 nginx 的配置文件即可 ./nginx -s reload