22707

gogs搭建私有git服务器

安装mysql

参见之前的文章:https://dotatong.cn/index.php/archives/1/

安装gogs

二进制文件官方地址 https://gogs.io/docs/installation/install_from_binary

#下载二进制文件
wget http://7d9nal.com2.z0.glb.qiniucdn.com/0.11.29/linux_amd64.tar.gz

#解压压缩包
tar -zxvf linux_amd64.tar.gz

#移动到目标目录
mv gogs /alidata/

#启动gogs
cp /alidata/gogs/scripts/systemd/gogs.service /usr/lib/systemd/system/
systemctl daemon-reload
systemctl start gogs

我的gogs.service的配置如下,请根据自己的实际情况自行配置

gogs.service.jpg

文章作者:DOTATONG
发布日期:2017-11-14
# centosgogsgit

评论

暂无

添加新评论