Release jar in Linux

Source: Internet
Author: User

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 *"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.