STARTING/STOPING WEBLOGIC MANAGED SERVER
Weblogic Managed Server can be started in many ways but in this post we will see how to start and stop the managed server from command prompt.
To start your Managed Server go to your Domain_Home/bin and the command to start Managed Server is startManagedWeblogic.cmd for windows and startManagedWeblogic.sh for Linux.
Managed Server have to be started from command prompt.
Other Options to start Admin Server are
1. using wlst.cmd
2.From Admin Console
3.Making the Managed Server as a service(These all will be discussed later)
If you double click on startManagedWeblogic.cmd the window will come and disappear because it need some parameter to be passed along with the command
Go to the location where the Script is to startManagaedWeblogic.cmd
ie C:\Oracle\Middleware\user_projects
\domains\base_domain\bin
Just type the command the command will show you the help that it is Expecting Managed Server name and the Admin Server Url to be passed along with the command.
So give the command as startManagaedWeblogic.cmd MS1 http://localhost:7001 or startManagaedWeblogic.cmd MS1 t3://localhost:7001 and then press Enter
Note: MS1 is the managed Server which have been created at domain Creation.
Once you give the command the Managed server will get connect to the admin server and take the copy of the config file and create a local copy and keep it with it self.1.It Load all the Class path and Path variable which will be used by the Weblogic Server
2.It initializes the MEM_Argument which the Admin server will use.
3.It Display the JDK version we are using
4.It will display the Weblogic Version which you are using
1.It will transit from different server Life cycle
like STARTING,STANDBY,ADMIN,RESUMING,RUNNING
2.It will initialize the security using the security realms and for the 1st time it will ask the credentials from user in Development mode."In production Mode we have to give username and password Each time we start and stop the servers"
3.It will start listening the request(http and the other protocol) at the Managed Server port which we have specified.
4.Once the Server are in Running state we can go ahead and open the console and check the status
In the console we can see the status of the managed server MS1 as running.
Note:
If you have started the Servers from command prompt and if you close the command prompt window the server will go to shutdown state.
STOPING WEBLOGIC MANAGED SERVER
To Stop Managed Server we have the script stopManagedWeblogic.cmd
for Windows and stopManagedWeblogic.sh for Linux
If you double click on stopManagedWeblogic.cmd the window will come and disappear because it need some parameter to be passed along with the command
Go to the location where the Script is to stopManagaedWeblogic.cmd
ie C:\Oracle\Middleware\user_projects
\domains\base_domain\bin
Just type the command the command will show you the help that it is Expecting Managed Server name and the Admin Server Url to be passed along with the command.
So give the command as stopManagaedWeblogic.cmd MS1 t3://localhost:7001 and then press Enter
it will invoke the wlst and need the username and the password of the administrator.
Then it will connect to the admin Server and shut down the Managed Server MS1.
Thus our Managed server is Stoped.
Note:
When we stop a managed Server it uses a file shutdown.py from the Location C:\Oracle\Middleware
\user_projects\domains\base_domain
if the file is not there then the file will be created and used.
You can check in the console also the MS1 state will be changed to SHUTDOWN.
No comments:
Post a Comment