Linux-related use, linux-related
View the tomat process ps-ef | grep tomcat
View java-related jps
Finding the tomcat directory find/-name tomcat seems okay, but new users may feel helpless. If you install tomcat, it is estimated that tomcat cannot be found in linux for a simple reason: linux is very case sensitive, so you have to look for the tomcat directory to do this: find/-name "* [Tt] omcat *" there will be the desired results in the list
Ls to list current files and folders
Understanding "ls-l"
The first field-rwxr-xr-x indicates the permission of the special file. The first character (-) in this field specifies the file type. In this example, it is a regular file. Other possible first characters include:
"D" Directory
"L" Symbolic Link
"C" character dedicated Device File
"B" Special Device Files
"P" first-in-first-out
"S" socket
Three productkey, devicename, and devicesecret
Rw-r -- 1 root 19103658 5 Records? 4 2011 src.zip
The rest of the field consists of three triple characters. The first three-character group represents the permissions of the file owner, the second represents the permissions of the file group, and the third represents the permissions of all other users:
"Rw -"
"R --"
"R --"
Netstat-net lists Active Internet connections (w/o servers) to list the number of Active internet connections. You can check the processes occupied by tomcat.
View the current java memory situation jstat-gcutil 1942 view the memory situation of java Process 1942
S0 S1 E O P YGC YGCT FGC FGCT GCT
0.05 0.00 2.04 1.28 9.91 170 0.187 338 1.314 1.501
E elden uses the space proportion, O old uses the space proportion YGC ygc collection times, YGCT ygc collection time FGC time