Notes for manual deployment of remote servers

Source: Internet
Author: User
Tags glassfish

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.