Install Golang in CentOS server
-
wget -O go.tgz https://dl.google.com/go/go*.*.*.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go.tgz
rm go.tgz
-
ls .bash_profile
-
vim .bash_profile
export PATH=$PATH:/usr/local/go/bin:/$HOME/go/bin
export GOPATH=/$HOME/go
source .bash_profile
- test:
go version
-
-
mkdir -p $GOPATH/src/
Install rmate in CentOS server
sudo wget -O /usr/local/bin/rmate https://raw.github.com/aurora/rmate/master/rmate
sudo chmod a+x /usr/local/bin/rmate
Remote Edit in Local machine
- Install VSCode
- Enable "Remote VSCode" in Extensions
- TO Use:
- cmd+P: >remote start server
- ssh -R 52698:localhost:52698 hostname(centos server)
- rmate "filename"
- edit, save
- when u finished: cmd+P: >remote stop server