Weblogc8.16集群部署+nginx负载均衡_第1页
Weblogc8.16集群部署+nginx负载均衡_第2页
Weblogc8.16集群部署+nginx负载均衡_第3页
Weblogc8.16集群部署+nginx负载均衡_第4页
Weblogc8.16集群部署+nginx负载均衡_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、1、 上传weblogic安装文件和nginx的源代码包(略)2、 安装weblogic8.16并破解#groupadd bea#useradd -d /bea -g bea weblogic#passwd weblogic#chmod +x server816_linux32.bin#su weblogic$./server816_linux32.bin(1) 回车(2) 选择1,1 - Yes, I agree with the terms of the license(3) 选择1,1|Create a new BEA Home(4) 输入/bea,BEA Home = /bea (根据

2、实际情况选择)(5) 选择1,1|Yes, Use this BEA home directory /bea(6) 选择1,-1|Complete|Install the complete BEA WebLogic Platform.(7) 回车,Product Installation Directory = /bea/weblogic81(8) 选择1,1|Yes, use this product directory /bea/weblogic81$cp /opt/weblogic7_8_full_license/license.bea /bea/$cp /opt/weblogic7_8

3、_full_license/weblogic_sp.jar /bea/weblogic81/server/lib/ $chmod +x /bea/weblogic81/server/lib/weblogic_sp.jar3、 部署weblogic8.16的集群$cd /bea/weblogic81/common/bin/$./config.sh(1) 选择1,-1|Create a new WebLogic configuration(2) 选择4,4|Basic WebLogic Server Domain (3) 选择2,2|No(4) 配置管理平台信息| Name | Va

4、lue |_|_|1| *Name: | AdminServer |2| Listen address: | All Local Addresses |3| Listen port: | 6666 |4| SSL listen port: | N/A |5| SSL enabled: | false |(5) 选择1,1|Yes| Name* | Listen address | Listen port | SSL listen port | SSL enabled | |_|_|_|_|_|1| lishi01 | All Local Addresses | 8001 | N/A | fal

5、se |2| lishi02 | All Local Addresses | 8002 | N/A | false |(6) 一路回车,直道出现以下界面| Name | Value |_|_|_| 1| *User name: | weblogic | 2| *User password: | | 3| *Confirm user password: | | 4| Description: | The default administration user |(7) 并且更改为以下| Name | Value | _|_|_| 1| *User name: | weblogic | 2| *U

6、ser password: | * | 3| *Confirm user password: | * | 4| Description: | The default administration user |(8) 模式的选择,这里我是测试,选择的是开发模式,根据需要自行选择 -1|Development Mode2|Production Mode(9) Jdk的选择,这里也是根据工程的开发使用得jdk来选择,这里我选择的sun的jdk1|JRockit SDK 1.4.2_10-8160 /bea/jrockit81sp6_142_102|Sun SDK 1.4.2_11 /bea/jdk1

7、42_113|Other Java SDK(10)域名的安装位置,默认就好Target Location = /bea/user_projects/domains(11)输入你的域名(12)回车开始安装4、 配置集群$cd /bea/user_projects/domains/lishi/$vi StartAdmin.shnohup ./startWebLogic.sh console.log &$vi Start_All_Server.shnohup ./startManagedWebLogic.sh lishi01 http:/ip:port lishi01.log & nohup ./s

8、tartManagedWebLogic.sh lishi02 http:/ip:port lishi02.log & $chmod +x StartAdmin.sh$./StartAdmin.sh等待管理服务器启动后$chmod +x Start_All_Server.sh$./Start_All_Server.sh通过http:/ip:port/console(1) 单击Cluster(2)(3) 输入cluster name,点击create(4) 配置组播ip以及端口(5) 添加服务器到Cluster中(6) 依次点击Machines,(7) 创建Machine(8) 配置ip以及端口(

9、9) 添加服务器到Machine5、 nginx的负载均衡#tar xzvf nginx-0.7.66.tar.gz#cd nginx-0.7.66#./configure -prefix=/opt/nginx -with-http_stub_status_module #make#make install#vi /opt/nginx/conf/nginx.confuser nobody nobody;worker_processes 8;error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/erro

10、r.log info;pid logs/nginx.pid;events use epoll;worker_connections 51200;http include 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/a

11、ccess.log main;sendfile on;tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;gzip on;gzip_min_length 1k;gzip_buffers 4 16k;gzip_http_version 1.0;gzip_comp_level 2;gzip_types text/plain application/x-javascript text/css application/xml; gzip_vary on;upstream lishiserver 4:8001;server

12、 4:8002;server listen 80;server_name 4;#charset koi8-r;#access_log logs/host.access.log main;#location / # root html;# index index.html index.htm;#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location = /50x.html root html;location / proxy_redirect off;proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;p

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论