Start and Stop Servers
Oracle WebLogic Server for OKE provides utilities to manage the servers in your domain.
With these utilities you can start and stop the admin server and the managed servers in your domain.
Note:
Do not use the WebLogic Server Administration Console to start or stop servers.- Identify the following IP address of the node in your domain:
- The public IP address to the Administration Server node.
- The public IP address of the bastion and the private IP address of the compute instance.
- From your computer, run the
ssh
command to connect to the domain's Administration Server node as theopc
user.ssh -i <path_to_private_key> -o ProxyCommand="ssh -W %h:%p -i <path_to_private_key> opc@<bastion_public_ip>" opc@<node_private_ip>
-
Run the following command:
cd /u01/scripts/wls-domain-lifecycle
The scripts to run the lifecycle operations on the WebLogic pods are displayed.
-
Run the following commands:
Command Result sh startServer.sh -h
This help command can be used with all the scripts that are available in
wls-domain-lifecycle
.Displays the help information that includes the command format and the parameters that can be used with the script.
sh stopServer.sh -s <server name> -n <namespace> -d <domain uid>
Stops the managed server
sh startServer.sh -s <server name> -n <namespace> -d <domain uid>
Starts the managed server
sh stopCluster.sh -n <namespace> -d <domain uid> -c <cluster name>
Stops all the managed servers running in your domain
sh startCluster.sh -n <namespace> -d <domain uid> -c <cluster name>
Starts all the managed servers running in your domain
sh stopDomain.sh -n <namespace> -d <domain uid>
Stops the admin server and the managed servers running in your domain
sh startDomain.sh -n <namespace> -d <domain uid>
Starts the admin server and the managed servers running in your domain
For additional information on the scripts, see the
readme
file in WebLogic Kubernetes
Operator documentation.
There are fields on the Domain that specify which servers should be running, which servers should be stopped, and the desired initial state. You can also modify these fields on the Domain to start and stop servers. See Starting and stopping servers in WebLogic Kubernetes Operator documentation.