centos7 安装gitea

新建workspace 目录

cd workspace

git clone https://github.com/go-gitea/gitea.git

yum install gcc

cd gitea
TAGS="bindata sqlite sqlite_unlock_notify" make build

./gitea web

 

默认端口 3000

 

supervisor 启动

# 安装

yum install supervisor

sudo systemctl enable supervisord

 sudo systemctl start supervisord
 vim /etc/supervisord.d/gitea.conf


  

gitea.conf

 

[program:gitea]
directory=/root/workspace/gitea
command=/root/workspace/gitea/gitea web
autostart=true
autorestart=true
startsecs=10
stdout_logfile=/root/workspace/gitea/log/stdout.log
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=10
stdout_capture_maxbytes=1MB
stderr_logfile=/root/workspace/gitea/log/stderr.log
stderr_logfile_maxbytes=1MB
stderr_logfile_backups=10
stderr_capture_maxbytes=1MB
user = root
environment = HOME="/root", USER="root"

  

# 更新配置
supervisorctl update

# 重启
supervisorctl restart all

  

 

posted @ 2021-05-05 23:51  烟雨半生  阅读(680)  评论(0编辑  收藏  举报