[root@test nginx-0.6.26]# rpm -qa|grep pcre
pcre-6.6-1.1
[root@testsuantop]# rpm -ivh pcre-devel-6.6-1.1.i386.rpm
warning:pcre-devel-6.6-1.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:pcre-devel ########################################### [100%]
[root@testsuantop]# rpm -qa|grep pcre
pcre-6.6-1.1
pcre-devel-6.6-1.1
等再次执行./configure
[root@testnginx-0.6.26]# ./configure --with-http_stub_status_module
[root@testnginx-0.6.26]# make
[root@testnginx-0.6.26]# make install
修改配置文件/usr/local/nginx/conf/nginx.conf
给出一些主要更改的地方
user nobody nobody;
worker_processes 2;
error_log logs/error.log notice;
pid logs/nginx.pid;
events{
worker_connections 1024;
}
http{
include mime.types;
default_type application/octet-stream;
include /usr/local/nginx/conf/proxy.conf;
#上面这行是增加的
server {
listen 81;
server_name localhost;
charset gb2312;
#serve static files
location ~ ^/(p_w_picpaths|pages|javascript|js|css|flash|media|static)/ {
root /usr/local/www;
expires 30d;
location / {
pcre-6.6-1.1
[root@test
warning:
Preparing...
[root@test
pcre-6.6-1.1
pcre-devel-6.6-1.1
等再次执行./configure
[root@test
[root@test
[root@test
修改配置文件
给出一些主要更改的地方
user
worker_processes
error_log
pid
events
}
http
#上面这行是增加的
#