标签:zlib size .com img sbin local with 软件 复制
安装依赖软件:
pcre
yum -y install pcre pcre-devel
zlib
yum -y install zlib zlib-devel
openssl
yum -y install openssl openssl-devel
将 linux 源码安装包复制到 /usr/local/src 中,解压安装
tar -zxvf nginx-1.15.7.tar.gz
cd nginx-1.15.7
./configure --prefix=/usr/local/nginx \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module
启动 nginx
/usr/local/nginx/nginx
在浏览器打开 localhost
标签:zlib size .com img sbin local with 软件 复制
原文地址:https://www.cnblogs.com/jerryqu/p/10125675.html