怎样在linux下安装nginx,pcre,zlib,openssl

如题所述

第1个回答  2016-12-14
安装依赖环境:
# yum -y install gcc gcc-c++ autoconf automake
# yum -y install zlib zlib-devel openssl openssl-devel pcre-devel
新建用户组和用户:
# sudo groupadd -r www
# sudo useradd -s /sbin/nologin -g www -r www
创建安装目录
# mkdir /usr/local/tools
# cd /usr/local/tools
# wget http://nginx.org/download/nginx-1.10.1.tar.gz
# tar -zxvf nginx-1.10.1.tar.gz
# cd nginx-1.10.1
# ./configure --prefix=/usr/local/nginx --conf-path=/etc/nginx/nginx.conf --user=www --group=www --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_gzip_static_module --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module
# make && make install
第2个回答  2016-12-24
如何在linux系统下安装nginx、pcre、zlib、openssl工具安装nginx之前需要安装PCRE库的安装最新下载地址 ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/tar –zxvf pcre-8.21.tar.gz,解压目录为:pcre...
相似回答