1. First create a new folder
E:\deployment
2. Under the folder, right-click,
3. Add the svn path, the file path saved after downloading, and click ok.
3. Add the svn path, the file path saved after downloading, and click ok.
4. Open cmd and find the corresponding path: E:\deployment\nees
5. Execute the following command to package:
6. Find the war package in the E:\deployment\nees\target folder and prepare to deploy it to the linux environmentmvn package -Dmaven.test.skip=true(This is to skip the test class, otherwise if the test class fails, the packaging fails)
7. Open the tool to connect to linux, here is Xshell under XManager
8. New connection:
ssh server addressEnter username and password
9. Enter the bin file of tomcat
cd /usr/local/tomcat/bin
10. View the process of tomcat
ps -aux|grep tomcat
11. Close the currently running tomcat
./shutdown.sh
If you can't close it, use the following command:
kill -9 pid
12. Copy the war package to be released to webapps
kill -9 pid
12. Copy the war package to be released to webapps
13. Start tomcat
./startup.sh
14. View the log
14. View the log
tail -f ../logs/catalina.out