NETSTAT-ANP | grep 8080//you can clearly know which program is using the 8080 portVim file name//Open the corresponding fileKey ESC//Exit Edit: Q!//do not save file, exit directly: Q//Exit VI: x//Save (if the current file has been modified) and exitZZ//Save and exitCD.. //return to the top level directoryls//View all files in the current directoryls-lth//View the files of the current directoryls-L//to see when a file was modified/CP Original Directory/*New directory///Copy all files from the original directory to the new directory
/CP-RF Original Directory/* new directory/ //force copy all files from original directory to new directory sz file name Download files to local tar CF 201702271530.tar/app/appuser/zhun/* //Create compressed package to/app/appuser/zhun/
TAR-XF 201702271530.tar //Decompression package
sftp 123.11.123.55 //sftp Connect to
123.11.123.55
Password
put/app/appuser/zhun/201702271530.tar/app/appuser/packages/ Send the compressed package from the/app/appuser/zhun/directory to the server/app/appuser/packages/
RM-RF app
Ps-ef|grep Tomcat
Common Commands under Linux