标签:nginx
首先安装pcre库[root@localhost src]# uname -m
x86_64
yum 安装
[root@localhost src]# yum install pcre pcre-devel -y
yum install -y openssl openssl-devel
支撑包pcre和openssl安装完毕后,下载nginx
wget http://nginx.org/download/nginx-1.6.3.tar.gz
增加用户nginx并禁止登陆
[root@localhost src]# useradd nginx -s /sbin/nologin -M
yum -y install gcc
[root@localhost nginx-1.6.3]# ./configure --user=nginx --group=nginx --prefix=/application/nginx-1.6.3 --with-http_stub_status_module --with-http_ssl_module
启动前的语法检查
[root@localhost nginx]# /application/nginx/sbin/nginx -t
开发的程序发布目录
[root@localhost html]# cd /application/nginx/html/
标签:nginx
原文地址:http://blog.51cto.com/13505564/2074384