- 论坛徽章:
- 0
|
报错信息:-bash: --conf-path=/etc/nginx/nginx.conf: No such file or directory
OS:CentOS7 Mini
步骤:
yum groupinstall "Development Tools" "Server Platform Development"
yum install pcre-devel openssl-devel zlib-devel -y
cd /usr/local/src
wget NGINX的链接
tar xf nginx-1.11.2.tar.gz -C /usr/local/
cd /usr/src/
ln -s nginx-1.11.2 nginx
cd nginx/
groupadd -r nginx
useradd -r -g nginx -s /sbin/nologin -M nginx
mkdir -pv /var/tmp/nginx/{client,proxy,fastcgi}
./configure --prefix=/usr/local/nginx \
> --conf-path=/etc/nginx/nginx.conf \
> --user=nginx --group=nginx \
> --error-log-path=/var/log/nginx/error.log \
> --http-log-path=/var/log/nginx/access.log \
> --pid-path=/var/run/nginx/nginx.pid \
> --lock-path=/var/lock/nginx.lock \
> --with-http_v2_module \
> --with-http_ssl_module \
> --with-http_stub_status_module \
> --with-http_gzip_static_module \
> --with-http_flv_module \
> --with-http_mp4_module \
> --http-client-body-temp-path=/var/tmp/nginx/client \
> --http-proxy-temp-path=/var/tmp/nginx/proxy \
> --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi
然后就出现了第一行的报错,此时/etc/下没有nginx目录
请教各位这是什么问题,请指导,谢谢 |
|