maven package deployment

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.
4. Open cmd and find the corresponding path: E:\deployment\nees
5. Execute the following command to package:
mvn package -Dmaven.test.skip=true
(This is to skip the test class, otherwise if the test class fails, the packaging fails)
6. Find the war package in the E:\deployment\nees\target folder and prepare to deploy it to the linux environment
7. Open the tool to connect to linux, here is Xshell under XManager
8. New connection:
ssh server address
Enter 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
13. Start tomcat
    ./startup.sh
14. View the log
   tail -f ../logs/catalina.out

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326676459&siteId=291194637