In this post I will tell you how to start Admin and managed Servers via command line mode in Linux.
Basically when you start an Admin server or a managed server via command line mode either invoking files such as "startWebLogic.sh" and "startManagedWeblogic.sh". You might have noticed that if you try to close the files "startWebLogic.sh" and "startManagedWeblogic.sh" after starting either admin server or any managed Server, the admin or managed servers tend to shutdown automatically. plus the "startWebLogic.sh" and "startManagedWeblogic.sh" are not running on the background so you will have additional terminals in your Linux screen.
In order to prevent this from happening, you need to use a simple command called "nohup" and redirect the file to a simple .out or .log file in some other location and everything will run in the background.
anyway if you do know how to start the admin and managed servers via command line, i suggest you to skip this post and read this post which tell you how to start Admin and managed servers via shell script:
1. To start the Admin Server, go to the bin folder inside the $DOMAIN_DIR/bin and run the file "startWebLogic.sh"
- command : ./startWebLogic.sh
2. You will be prompted to enter the username and password, once done wait for the Admin Server to be up and change it's state to RUNNING mode.
3. To start the Managed Server, go to the bin folder inside the $DOMAIN_DIR/bin and run the file "startManagedWebLogic.sh"
- command : ./startManagedWebLogic.sh <managed_server_name> <admin_server_URL>
4. You will be prompted to enter the username and password, once done wait for the Managed Server to be up and change it's state to RUNNING mode.
0 comments