PS-Ef | grep Java
Kill-9 24934
Nohup Java-jar qyhx. Jar &
Tail-F nohup. Out
WebLogic shutdown and startup
1. Use tools such as xmanager enterprise or SSH to log on to Linux or Unix machines
Find the Weblogic installation directory, such as/BEA/user_projects/domains/self-built domain name.
2. Go to the directory and run the following command to start weblocgic in the background.
# Nohup./startweblogic. Sh & press ENTER
This command starts Weblogic in the background, stores the running day in the out. log file of the current directory, and returns a process number.
3. Stop the background weblocgic Process
Run the following command in the above domain directory to stop WebLogic
#./Stopweblogic
Use PS-Ef | grep Java to check whether the process is stopped.
In general, it is difficult to close it. You need to kill the background process (this is often the case)
View the WebLogic process in the background or use the process number returned when the above startup
# Ps-Ef | grep Java example:
Root 123456 2346546
Root 1346464 64646464
Kill background process: # Kill-9 1346464 (returned process number)
Some operating systems use threads to simulate processes. In some Linux operating systems, the wenlogic process is represented by multithreading. In this case, scripts are required to kill WebLogic multithreading.
# Ps-Ef | grep Java | awk '{printf "kill-9" $2}'> killjava
# Sh killjava
The Java Process of Weblogic can be killed. However, when executing the command, pay attention to whether there are other Java processes running on the machine, and be careful to kill them, causing other applications to go down.
Lunix find command:
Find-name file name (or some fields contained in the file );
For example, the find command matches all files named "passwd,
# Find-name "passwd *"