报错信息 找不到conf 下的nginx.conf nginx: [emerg] open() "/usr/local/nginx/conf/nginx.conf" failed (2: No such file or directory)
nginx默认配置 安装时 nginx.conf所在位置为:/usr/local/nginx/conf/nginx.conf 本人需要将其移动到 /xxx/nginx 下 1、将原文件移动到自己需要更改的目录 mv /usr/local/nginx/conf/nginx.conf /xxx/nginx/ 2、创建软连接到原目录 ln -s /xxx/nginx/nginx.conf /usr/local/nginx/conf/ 3、启动/重启 nginx /usr/local/nginx/sbin/nginx 或 /usr/local/nginx/sbin/nginx -s reload