为懒人提供无限可能,生命不息,code不止
作者: whooyun发表于: 2018-09-14 22:42
sudo yum install git
sudo useradd git
uname -a
wget https://dl.gogs.io/0.11.34/linux_amd64.tar.gz
sudo tar -xf linux_amd64.tar.gz -C /home/git sudo chmod -R 700 /home/git/gogs sudo chown -R git:git /home/git/gogs
sudo su - git -c "cd /home/git/gogs && ./gogs web &"
sudo ln -sf /home/git/gogs/scripts/systemd/gogs.service /usr/lib/systemd/ sudo chmod u+x /home/git/gogs/scripts/systemd/gogs.service sudo ln -sf /home/git/gogs/scripts/init/centos/gogs /etc/init.d/ sudo chmod u+x /home/git/gogs/scripts/init/centos/gogs sudo /sbin/chkconfig gogs on sudo service gogs restart
yum groupinstall "Development Tools"