Remote Server manual deployment notes Environment Introduction 1. The latest version of the project is in the git Library and the address is http: // 192.168.0.18: 8060/git/GatherServer. git 2: has a remote Amazon Server, the system is ubuntu Server, the web Server is glassfish 3, the local machine must have git and maven knowledge point 1, familiar with git command 2, familiar with basic linux Command 3, maven packaging command 4, and Remote Operation basic command Step 1. Pull the project in the git library to a local command: git clone http: // 192.168.0.18: 8060/git/GatherServer. git 2: Go to the project folder. Here I go to the GatherServer folder and switch to the branch to be released. I only have one master branch and do not need to switch to the branch. If you need to switch to your own branch, use git checkout xxx (your own branch) 3 to enter the local Entry Project (GatherServer folder) Use maven command to compile the project: mvn compile 4. Enter the target folder and you will find a GatherServer under the folder. war package. This is the package 5 we want to publish to the remote server and upload the war package to the remote server. Command: rsync-avz GatherServer. war ubuntu@122.226.207.56 :~ /Juxinli; // (the current path is/target. This command is to set the GatherServer under the target directory. war package copied to/juxinli directory on a remote 56 machine) 6, remote link to 56 server, command: ssh ubuntu@122.226.207.56 (enter remote login password) 7, enter the/juxinli folder, check whether the upload is successful. Copy the war package to the glassfish server. (current path/juxinli) command: cp GatherServer. war ~ /Glassfish4/glassfish/domains/domain1/autodeploy 9, restart the glassfish server. (1) shut down the server: Go to the bin directory cd ~ of glassfish ~ /Glassfish4/glassfish/bin. (2) Close the command:./asadmin stop-domain (3) restart the command:./asadmin start-domain