nginx1.14.0源碼編譯安裝

yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-develnginx

mkdir /tools && cd /toolsapp

wget https://nginx.org/download/nginx-1.14.0.tar.gzide

useradd www -s /sbin/nologin -Mui

tar xf nginx-1.14.0.tar.gzcode

cd nginx-1.14.0ssl

mkdir -p /application/nginxget

./configure --user=www --group=www --prefix=/application/nginx --sbin-path=/application/nginx/sbin/nginx --with-http_ssl_module --with-http_stub_status_module openssl

make -j grep processor /proc/cpuinfo |wc -lit

make installio

/application/nginx/sbin/nginx 啓動nginx

/application/nginx/sbin/nginx -s stop 中止nginx

/application/nginx/sbin/nginx -s reload 重載nginx

相關文章
相關標籤/搜索