Nginx 1.19.2安裝
linux新環(huán)境需要安裝pcre-devel、openssl openssl-devel,安裝命令如下:
#yum -y install pcre-devel
#yum -y install openssl openssl-devel
#wget http://nginx.org/download/nginx-1.19.2.tar.gz
# tar -xzvf nginx-1.19.2.tar.gz
# ln -s nginx-1.19.2 nginx
# cd nginx
# ./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx --with-http_ssl_module --user=nginx --group=nginx
Configuration summary
+ using system PCRE library
+ using system OpenSSL library
+ using system zlib library
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx modules path: "/usr/local/nginx/modules"
nginx configuration prefix: "/etc"
nginx configuration file: "/etc/nginx"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
#make -j 4
# make install
#echo "PATH=/usr/local/nginx/sbin:$PATH" > /etc/profile.d/nginx.sh
#. /etc/profile.d/nginx.sh
想了解更多?現(xiàn)在就開(kāi)始免費(fèi)體驗(yàn)