How to install gogs on centos7

# INSTALL GO and Gogs (github opensource server) on CENTOS 7
wget “https://dl.google.com/go/go1.10.linux-amd64.tar.gz”
mv go1.10.linux-amd64.tar.gz /usr/local/
cd /usr/local/
tar -zxvf go1.10.linux-amd64.tar.gz
ln -s /usr/local/go/bin/go /usr/local/bin/go
ln -s /usr/local/go/bin/godoc /usr/local/bin/godoc
ln …

chroot mount bind


mkdir -v -p /sftp/root/${USER}/home
chown root.root /sftp/root/${USER}
mount –bind //${DIR} /sftp/root/${USER}/home
useradd -g tomcat -s /sbin/nologin ${USER}

sshd_config

Match Group tomcat
AllowTcpForwarding no
ForceCommand internal-sftp -u 0002 -d home