Junjun&3588 个人博客

-个人博客-
热爱技术,喜欢科技. Hello Coder!!
  1. 首页
  2. 技术点滴
  3. Linux
  4. centos 8
  5. 正文

centos8 安装 gogs

2019-12-02 365点热度 0人点赞 0条评论

原计划是按照 gitlba,由于 centos8 有一些小问题,改为安装轻量级的 gogs

创建 GIT 用户

userdel -r git // 清空git用户
groupadd git // 新建git组
adduser git -g git // 创建git用户,设置git组
passwd git // 设置密码
vi /etc/sudoers
## Allow root to run any commands anywhere 
root    ALL=(ALL)       ALL  # 这个是系统原有的
git     ALL=(ALL)       NOPASSWD:ALL

!#!!!
由于库存储在其他硬盘,后来直接使用了 root 来运行 gogs。

下载和配置

wget xxx.zip
unzip zip
cd gogs
./gogs web
# -p 可以指定端口启动
#mv gogs /home/git 如果 wget 不再 git用户 目录下的

!#!!!
由于库存储在其他硬盘,后来直接使用了 root 来运行 gogs。

其他

vi gogs.sh
/root/ssddata/gogs/gogs/gogs web > gogs-out.log 2> gogs-err.log

screen -S git
/root/ssddata/gogs/gogs/gogs web > gogs-out.log 2> gogs-err.log

标签: 暂无
最后更新:2019-12-02

admin3588

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。

COPYRIGHT © 2022 Junjun&3588 个人博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang