Linux Server Deployment Go Project

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

Linux installation Go environment no explanation here

Assuming Gopath gopath= "/root/go" then upload the project to this/root/go/src/directory, assuming the project name is the future, then cd/root/go/src/future execute go build, this time the CD After the future LS will find a more green future file this time if you want to execute only one (automatically stop when the putty is turned off) execution./future, but the project we are deploying often wants to run in the background, then if it has been executed. Future command, and then execute nohup./future &> Future.log & will error, translation came to say that this program is already running, first PS aux|grep future find this PID, if it is 21432, Execute kill 21432 directly and then execute nohup./future &>future.log & This command is said to let the program start, and let him continue in the background, if you need to modify Nginx configuration file, you need to restart the Nginx server , the command is: service nginx restart

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.