How to Install Weblogic Binary Distribution on Redhat Linux
1. Download Weblogic installation file (Zip distribution with Oracle Weblogic Server only and intended for WebLogic Server development only) from Oracle website: http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html
2. Edit .bash_profile
Add this variable configuration to the current user (for this demo, the current user is weblogic) bash_profile
#Weblogic setting
export JAVA_HOME=/usr/java/jdk1.6.0_34
export MW_HOME=/home/weblogic/wls1211_dev
export CLASSPATH="${CLASSPATH}:/$MW_HOME/wlserver/server/lib/weblogic.jar"
Note: make sure JAVA_HOME path is correct on your current user environment.
3. Unzip into the current user home dir: /home/myuser/ (e.g. in this demo /home/weblogic)
Enter these following commands
unzip wls1211_dev
cd wls1211_dev
./configure.sh
wlserver/server/bin/setWLSEnv.sh
cp -r wlserver/endorsed $JAVA_HOME/jre/lib
Note: /home/weblogic/wls1211_dev is called installation dirWe're just done with initial setup. Now we're going to to create domain and server.
4. Create domain dir: (recommended separate from installation dir)
At the current user's home dir, enter these following commands:
mkdir domains
mkdir domains/domain_01
cd domains/domains_01
vi setupWls.sh
copy and past the following content into the setupWls.sh
#!/bin/bash
/usr/java/jdk1.6.0_34/bin/java -d64 -Xmx1024m -XX:MaxPermSize=512m -Dweblogic.Domain=DomainOne -Dweblogic.Name=ServerOne -Dweblogic.ListenPort=7001 -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic1 -Dweblogic.system.StoreBootIdentity=true weblogic.Server
save the setupWls.sh file
Note: Domain name, server name, listen port, username, password can be changed as you wish
5. Start up Weblogic server
run these commands (assumed that we're at /home/weblogic/domains/domain_01/)
chmod 755 setupWls.sh
./setupWls.sh
Note: you would get this error: "Error: Could not find or load main class weblogic.Server" if CLASSPATH for weblogic.jar is not set in step 2.
6. Now go to your internet browser: http://localhost:7001/console
Enjoy your newly created Weblogic server!
Next Post: How to make it run as a service
Note: if you got this error:
--------------
There are: 5 active sockets, but the maximum number of socket reader threads allowed by the configuration is: 4. The configuration may need altered.
-----------------
the fix:
----------
-XX:NewSizeThreadIncrease=100 -Dweblogic.ThreadPoolPercentSocketReaders=50 -Dweblogic.ThreadPoolSize=100 -Dweblogic.SelfTuningThreadPoolSizeMin=100 (add to java args)
----------------
No comments:
Post a Comment