linux command bit by bit

1. Query the strings contained in all files in the current directory:

 

grep -rsn [keyword] ./

 

2. Usage of apache stress test tool:

ab -n 2000 -c 50 -p [postfile]  -T 'application/json'  ['http://url']

 This command, use ab to stress test http://url, the data format is json, the json file is postfile, a total of 2000 requests, 50 concurrent

 

3. Uninstall the jdk installed by the current linux system

   Find:

rpm -qa | grep jdk

 Uninstall:

yum -y remove java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

 

 If there is an environment variable set, remove the environment variable.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326176815&siteId=291194637
Bit
BIT