Apache2 + resin2.x cluster configuration

xiaoxiao2021-03-06  39

Apache2 resin2.x cluster configuration

test environment:

Required software apache2.x, resin2.x

2 tables required

Machine A: IP 192.168.1.119

1. Install apache2.x

2. Modify apache httpd.conf configuration file, include conf / include / recote-resin.conf

3. Generate remote-resin.conf in the conf / include directory of Apache, not to create one

4. Remote-resin.conf file content

LoadModule Caucho_Module " /MOD_CAUCHO.DLL"

Cauchohost 211.111.8.86 6804

SetHandler Caucho-Request

SetHandler Caucho-Status

Restart Apache In the address bar http://192.168.1.119/caucho-status should see something, huh, huh

Machine B: IP 211.111.8.86

1. Install resin2.x

2. Modify resin.con only listen to LocalHost's HTTP port

Open SRUN's listening port, add a line of "APP ID =" / WS2 / "App- Dir = "/ wwwroot / webapps / ws2" /> OK This thing is existing, the path is wrong, written in .

3. Starting resin again access http://192.168.1.119/caucho-status sees another scenario, access http://192.168.1.119/ws2 will see the App WS2 deployed on the machine B.

If you have multiple machines, you can repeat step B machine installation, and SRUN has other usages to see the RESIN manual.

It feels very good in practical applications, no longer need to update N access procedures and data, you can update a machine, of course, you have to make a restriction on the firewall, otherwise no one can connect to RESIN. Connect to Tomcat is comfortable than JK2.

Nightkids

2005-01-15

转载请注明原文地址:https://www.9cbs.com/read-66829.html

New Post(0)