首页 > 代码库 > Nginx 1.10编译安装

Nginx 1.10编译安装

Nginx安装很简单,如下:

# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
# mkdir /software
# cd /software/
# wget http://nginx.org/download/nginx-1.10.3.tar.gz
# tar zxvf  nginx-1.10.3.tar.gz 
# cd nginx-1.10.3


# mkdir /usr/local/nginx
# yum install pcre pcre-devel penssl openssl-devel zlib zlib-devel -y

# useradd -s /sbin/nologin -M nginx
# ./configure --user=nginx --group=nginx --prefix=/usr/local/nginx  --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module  --with-pcre
# make && make install

# /usr/local/nginx/sbin/nginx

Nginx 1.10编译安装