The Oracle WebLogic 11g application server product line is the industry's most comprehensive Java platform for developing, deploying, and integrating enterprise applications. It provides the foundation for application grid, which is an architecture that enables enterprises to outperform their competitors while minimizing operational costs.
Some notes This script may look unsecure (and it is) Since password are store inside (admin server login: admin and password is admin), by doing so I can restart Oracle Weblogic in a cron job since stopping wont query the console for the login and password: feel free to remove these lines in blue I always recommend to install web process in its own user group and use a dedicated user to mitigate any securities issues: # groupadd weblogic # useradd -g weblogic-c weblogicuser for weblogic' -m weblogic # su – weblogic Install then weblogic in /home/weblogic Respect the order of component for starting - Start Weblogic Node Manager,
- Start WebLogic Admin server,
- Start all Managed Server in any order.
and stopping components - Stop the Node Manager
- Stop all Managed WebLogic server
- Stop WebLogic
Names of the managed server managed server names are in the script so add remove start and stop command for them Logs files of start and stop operations are written in 2 files, that use timestamp, see WLS_LOG_START and WLS_LOG_STOP /etc/init.d/weblogic file Create a new file as root in /etc/init.d/weblogic # vi /etc/init.d/weblogic and paste inside the following #!/bin/sh # description: webLogic adminServer and managedServer start script # # customized below to your likings WLS_DOMAIN=mytestdomain WLS_BASE=/home/weblogic/ WLS_HOME=${WLS_BASE}/bea/user_projects/domains/$WLS_DOMAIN WLS_NODE_HOME=${WLS_BASE}/bea/wlserver_10.3/server/bin WLS_OWNER=weblogic WLS_ADMIN_PORT=7001 WLS_ADMIN_LOGIN=admin WLS_ADMIN_PWD=admin WLS_LOG_START=${WLS_BASE}/logs/start.`date '+%d%m%y'`.log WLS_LOG_STOP=${WLS_BASE}/logs/stop.`date '+%d%m%y'`.log WLS_MANAGED_SERVER1=dev WLS_MANAGED_SERVER2=test JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=${WLS_ADMIN_LOGIN}" JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=${WLS_ADMIN_PWD}" export JAVA_OPTIONS
if [ ! -f $WLS_HOME/startWebLogic.sh ] then echo "WebLogic startup: cannot $WLS_HOME/startWebLogic.sh " exit fi startWeblogic() { su - $WLS_OWNER -c "nohup $WLS_NODE_HOME/startNodeManager.sh > ${WLS_LOG_START} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/startWebLogic.sh >> ${WLS_LOG_START} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/bin/startManagedServer.sh >> ${WLS_LOG_START} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/bin/startManagedServer.sh >> ${WLS_LOG_START} 2>&1 &" return 0 } stopWeblogic() { su - $WLS_OWNER -c "nohup $WLS_NODE_HOME/stopNodeManager.sh > ${WLS_LOG_STOP} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/bin/stopManagedWebLogic.sh $WLS_MANAGED_SERVER1 t3://localhost:$WLS_ADMIN_PORT ${WLS_ADMIN_LOGIN} ${WLS_ADMIN_PWD} >> ${WLS_LOG_STOP} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/bin/stopManagedWebLogic.sh $WLS_MANAGED_SERVER2 t3://localhost:$WLS_ADMIN_PORT ${WLS_ADMIN_LOGIN} ${WLS_ADMIN_PWD} >> ${WLS_LOG_STOP} 2>&1 &" sleep 10 su - $WLS_OWNER -c "nohup $WLS_HOME/bin/stopWebLogic.sh >> ${WLS_LOG_STOP} 2>&1 &" return 0 } case "$1" in 'start') startWeblogic ;; 'stop') stopWeblogic ;; 'restart') stopWeblogic startWeblogic ;; *) echo "Usage: $0 start|stop|restart" exit 1 ;; esac
Related Posts
-
How to mount your Synology NAS (or any other NAS brand) shared folder under Linux using CIFS. CIFS stands for "Common Internet File System," also known under the older name SMB (Server Message Block), which is a network protocol used by Windows clients for issuing file access requests to Windows servers Open a terminal and as root, create 40 days ago
-
More and more I am using XEN at work, and here is a small how to of some very common operations. Citrix® XenServer® is a complete, managed server virtualization platform built on the powerful Xen® hypervisor. Xen technology is widely acknowledged as the fastest and most secure virtualization software in the industry. XenServer is designed 42 days ago
-
Short description of how to accomplish some specific task in Debian Lenny. How to install Sun java 1.6 on Debian Lenny How to install Tomcat 6.x on Debian Lenny How to install MySQL on Debian Lenny 372 days ago
-
Some useful Bash Linux alias taken from my user profile. If you have a long command that you type frequently consider putting it in as an alias. In computing, alias is a command in various command line interpreters (shells) such as Unix shells, 4DOS/4NT and Windows PowerShell, which enables a replacement of a word with another string. It is main 438 days ago
-
For day to day hacker, they may be more elegant ways to do it (PERL, AWK), but they have work well for me. Upper case file name or variable, Search and replace in all files content recursively, Renaming all files recursively, Renaming all directory recursively, Copying a set of files from one directory to the other and preserv 438 days ago
-
My idea is to be able to run my production server (STRATO- OpenSuse) hosting www.waltercedric.com in a VMWARE instance. So I can test and make change to the operating first there before bringing down my host for several hours ;-) I would like to duplicate the whole LINUX system (lets call it PROD for now), including data and make 2 VMWARE 442 days ago
-
Cpufreqd is a small daemon to adjust cpu speed and voltage (and not only) for kernels using any of the cpufreq drivers available. Cpufreqd is not a userspace governor. Cpufreqd allows you to apply governor profiles from rules based on battery level, ac status, temperature (ACPI or sensors), running programs, cpu usage and (maybe) more 574 days ago
-
I've aquire this card for running my HPTC (notebook dell 9400, NAS) either under windows xp, or LinuxThe Sound Blaster Audigy 2 ZS Notebook also provides encompassing 7.1 surround sound for Dolby® Digital EX as well as DTS-ES⢠supported DVD movies; any DirectSound3D games and CMSS 3D virtualized 7.1 stereo music. Gamers will love the hard 1678 days ago
-
GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX).It use the following cpu core:The 68k core from the Generator project by James Ponder.Starscream 680x0 emulation library by Neill Corlett.Raze Z80 emulator by Richard Mitton.Z80 Mame core from the Mame project.YM2610 Mame core by Tatsuyuki Satoh.Finding the rpm for SuSe 9.3 is quite e 1857 days ago
-
These instructions were written using Knoppix version 3.7. It can be downloaded from http://www.knopper.net/knoppix/index-en.html. This document is available online at http://www.shockfamily.net/cedric/knoppix/.and is very detailed. I hope You will never have to use it ;-) , but just in case, write down this internet page :-( 2007 days ago
relatedArticles
|