Installation System: redhat linux as 4 2.6.9
Install apache
I installed apache2.
Download, decompress, compile, and install the SDK online
./Configure -- prefix =/usr/local/apache -- enable-so -- with-mpm = worker
Make install
-- With-mpm = worker: worker is a brand new MPM model in 2.x that supports multi-thread and multi-process mixing. Because threads are used for processing, a relatively large number of requests can be processed, and the overhead of system resources is smaller than that of process-based servers. However, worker also uses multiple processes, and each process generates multiple threads to achieve stability based on the process server. This MPM method is the development trend of Apache 2.x.
Modify/usr/local/apache/conf/httpd. conf, where documentroot \
The default user and group of apache is
User nobody
Group #-1
For more information about worker mpm, see the following
<IfModule worker. c>
StartServers 3
MaxClients 1984
MinSpareThreads 25
MaxSpareThreads 75
ServerLimit 80
ThreadLimit 200
ThreadsPerChild 64
MaxRequestsPerChild 0
</IfModule>
Install cronolog
Function: log recording function
Download, compile, and install it.
I installed it in the/usr/local/cronolog directory.
Modify/usr/local/apache/conf/httpd. conf, find the CustomLog line, and change it
CustomLog "|/usr/local/cronolog/sbin/cronolog/usr/local/apache/logs/access_log. % Y % m % d" combined
You also need to modify/usr/local/apache/conf/httpd. conf, add the following line at the end, so that all other configuration files will be placed in/usr/local/apache/conf. d directory.
Include conf. d/*. conf
After completing the preceding settings, test whether the configuration file is correct.
/Usr/local/apache/bin/apachectl-t
/Usr/local/apache/bin/apachectl {start | restart | graceful | stop}
Install weblogic
Because I am installing it remotely, use the parameter-mode = console.
./Server815_linux32.bin-mode = console
After installation, you need to create a new domain. To create a new domain, run the/usr/local/wls813/common/bin/config. sh command.
Next, you need to add a license to the installed weblogic. Otherwise, you can only receive connections from three ip addresses.
Find an unrestricted connection file online. Download, decompress,
Put weblogic_sp.jar under/usr/local/wls813/server/lib/, and put license. bea under/usr/local/wls813/bea.
The command to start weblogic is
/Usr/local/wls/startWebLogic. sh
The command to stop is
/Usr/local/wls/stopWebLogic. sh
Apche and weblogic bridging:
Copy the mod_wl_too so file under the WL_HOME/server/lib/linux/i686 directory to the APACHE_HOME/modules/directory.
Add the weblogic. conf file under the APACHE_HOME/conf. d directory. Put all the weblogic settings here.
LoadModule weblogic_module modules/mod_wl_20.so
<IfModule mod_weblogic.c>
WebLogicHost localhost
WebLogicPort 7001
MatchExpression *. jsp
MatchExpression *. do
</IfModule>
After modification, run APACHE_HOME/bin/apachectl-t to test whether the configuration of the Apache configuration file is successful.
Start weblogic first, and then start apache. check apache error. log to see if there are any errors.
Note that for published documents, the path configured in apache must be the same as that configured in weblogic.