1.
echo "
[gocd]
name = GoCD YUM Repository
baseurl = https://download.gocd.org
enabled = 1
gpgcheck = 1
gpgkey = https://download.gocd.org/GOCD-GPG-KEY.asc
" | sudo tee /etc/yum.repos.d/gocd.repo
sudo yum install -y go-server
sudo yum install -y go-agent
sudo /etc/init.d/go-server [start|stop|status|restart]