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