Remote server manual deployment notes environment Introduction 1, the latest project version is in the git Library, the address is http://192.168.0.18:8060/git/GatherServer.git 2. you have a remote Amazon server, the system is javastuserver, the web server is glassfish3, and the local machine must be equipped... remote server manual deployment notes environment Introduction 1, the latest project version is in the git Library, the address is http://192.168.0.18:8060/git/GatherServer.git 2. have a remote Amazon Server, the system is ubuntu Server, and the web Server is glassfish 3. install git and maven on the local machine. 1. be 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. enter the project folder. here I enter 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 go to the local project (the GatherServer folder) and run the maven command to compile the project: mvn compile 4 to enter the target folder, 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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.