原创 Redhat 5 + Nginx 0.5.35 + jdk 1.5.15 + resin-pro 3.0.25收藏

1. install j2sdk 1.5  jdk-1_5_0_15-linux-i586.rpm.bin
2. config JAVA_HOME / CLASSPATH
3. install resin-pro-3.0.25.tar.gz
    #cd /home
    #wget http://............
    #tar -zxvf resin........tar.gz
    #cd .......
    #./configure ; make; make install
4. install pcre 7.6   Nginx rewrite模块用

5. install zlib 1.2.3  Nginx zip 模块用

[6. install openssl  Nginx ssl 功能用   这一步可选 ]

7. install nginx 0.5.35
     #./configure \
        --sbin-path=/usr/local/nginx/nginx \
        --conf-path=/usr/local/nginx/nginx.conf \
        --pid-path=/usr/local/nginx/nginx.pid \
        --with-http_ssl_module \
        --with-pcre=../pcre-7.6 \
        --with-zlib=../zlib-1.2.3
     #make
     #make install
8. config nginx
=================

#user  nobody;
worker_processes  10;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
error_log   logs/error-info.log crit;

#pid        logs/nginx.pid;

worker_rlimit_nofile 51200;

events {
    use epoll;
    worker_connections  1024;
}


http {
    include       conf/mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] $request '
    #                  '"$status" $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    upstream www.foobar.com{
 server 192.168.0.106:8080;
 server 192.168.0.109:8080;
    }

    server {
        listen       80;
        server_name  www.foobar.com;

        #charset koi8-r;
 charset gbk;

        #access_log  logs/host.access.log  main;

        location / {
     proxy_pass http://www.foobar.com;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }

    }

}

=================


 

发表于 @ 2008年05月02日 17:40:19|评论(loading...)

新一篇: resin 3.0.23 (3.1.12)session如何保存到Oracle 10g 数据库 | 旧一篇: 开始博客了

用户操作
[即时聊天] [发私信] [加为好友]
oplife
订阅我的博客
XML聚合  FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
文章分类
收藏
    存档
    软件项目交易
    Csdn Blog version 3.1a
    Copyright © oplife