sudo add-apt-repository ppa:gophers/archive
sudo apt-get update
sudo apt-get install golang-1.8 -y
sudo ln /usr/lib/go-1.8/bin/go /usr/bin/go1.8
sudo mv /usr/bin/go1.8 /usr/bin/go
export GOPATH=$HOME/go
additional port permmisive
setcap cap_net_bind_service=+epi appname
//pastikan terinstall pm2
sudo chmod u+x appname
pm2 startup // jika belum pernah ada program autostart
pm2 start ./appname --name “appname”
pm2 save
Tidak ada komentar:
Posting Komentar