Centos6.5下安装Gogs Git私服

2021-04-22  本文已影响0人  jahem

安装mysql数据库

https://www.jianshu.com/writer#/notebooks/11015909/notes/18485740

安装Git服务端

yum install git -y

安装Golang语言

https://www.jianshu.com/writer#/notebooks/11015909/notes/47842460
建议使用源码安装,yum安装CentOS默认不支持;

安装Gogs服务端,选择对应的Gogs版本,

wget https://dl.gogs.io/0.11.4/linux_amd64.tar.gz
下载软件包

tar -zxf linux_amd64.tar.gz; mv gogs /gogs
解压

useradd git
chown -R git:git /gogs
mkdir /gogs-repositories
chown -R git:git /gogs-repositories
添加git用户

su git
切换用户

/gogs/gogs web &
启动gogs

lsof -i:3102
kill -9 进程PID
停止gogs

vim gogspath/custom/conf/app.ini
配置文件

上一篇 下一篇

猜你喜欢

热点阅读