Linux deployment commands
# View tomcat Processes
Ps-ef | grep tomcat
# Killing process commands
Kill-9 process no.
# View log information in real time
Tail-f catalina. out
Instance: ln-s/home/gamestat
Soft links in linux are similar to shortcuts in windows.
In ln-s a B, a is the source file, and B is the link file name. Its function is to access the B Directory, which is actually the link to the directory.
As shown in the preceding example, when we run the command cd/gamestat/, it actually enters/home/gamestat/
It is worth noting that when executing the command, it should be that directory a has been created and directory B has not been created. I first Created directory B, and the result was incorrect.
Delete soft link: rm-rf B, not rm-rf B/
# How to view processes occupied by the system in win
1. Enter CMD in "run"
2. Enter netstat-ano in the startup window to view the usage of all ports and write down the PID of the program that occupies port 8005.
3. Open "Task Manager", click "View" in the menu bar, click "Select column", and select "PID (process identifier )"
4. Find the corresponding PID value in the process and end the process.