1
2
3
4
5
6
7
8
9
10
11
12
13
|
#本次编译将编译好的文件放到/opt/nginx/目录下,使用以下命令尝试编译
./configure \
--prefix=/opt/nginx \
--conf-path=/opt/nginx/conf/nginx.conf \
--sbin-path=/opt/nginx/sbin/nginx \
--pid-path=/opt/nginx/logs/nginx.pid \
--error-log-path=/opt/nginx/logs/error.log \
--http-log-path=/opt/nginx/logs/access.log \
--with-http_ssl_module \
--with-http_v2_module \
--with-http_stub_status_module \
--with-pcre \
--with-threads
|