Weblogic Startup Script in UNIX
Hi All,
Post
creating weblogic domain we need to customize the startup script to run in Unix
environmnet with out hung when user terminal window closed. Normally most of
weblogic admins are connecting to Unix machine (Solaris or HP-UX) through the
SSH or Putty.
If user
issue startWebLogic.sh command to start the WebLogic server and the SSH or
Putty window closed the process will be stopped.
We have
to use below command to run the weblogic process in background.
nohup
./startWebLogic.sh >>Adminserver.log 2>&1 &
nohup ./startManagedWebLogic.sh >>Adminserver.log 2>&1 &
Post
executing the above commands , we have to check the logs files
tail -f
Adminserver.log
- nohup .. is used to execute all the commands to run in background as a daemon. Output would be generally written to nohup.out if we are not redirecting to any log file.This command will run the Unix process @ Server Side without terminal window. that is if we close the SSH or Putty window even though the WebLogic server should start.
- Redirecting the console log using filter >> user can specify the desired log location here. And here the standard error(2) is redirecting(>) to standard output(&1). This log extension some of users using as .out because it is standard output of console and some other using as .log.
- To run the ‘startWebLogic.sh’ script in backgroud use ‘&’.
- Then tail the redirected log file path.