gitlab 常用命令自查表
gitlab
# 查看当前gitlab版本号cat /opt/gitlab/embedded/service/gitlab-rails/VERSION# 查看gitlab配置文件
vim /etc/gitlab/gitlab.rb#运行配置文件
gitlab-ctl reconfigure# 重启gitlab
gitlab-ctl restart
# 其他
gitlab-ctl start
gitlab-ctl stop
- 版本升级 gitlab 不允许直接升级,需要参考 官方升级路线
- gitlab 502报错 - 添加unicorn端口号
external_url 'http://10.10.10.249:7777'
unicorn['port'] = 8182
- gitlab 汉化
gitlab 汉化
gitlab 定时备份
/***************第一步************************/crontab工具执行自动备份vim /etc/crontab // 查看crontab 文件// 设置凌晨2点自动备份0 2 * * * root /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1/*************第二步***********************/// 打开gitlab配置文件vim /etc/gitlab/gitlab.rb// 文件内设置命令
### back gitlab_rails['manage_backup_path']=true #管理备份路径
gitlab_rails['backup_path'] = '/gitlab/backups' #路径地址
gitlab_rails['backup_archive_permissions']=0644 #权限存档 gitlab_rails['backup_keep_time']=7776000 #备份保存时间:3个月 /*************第三步***重启********************/gitlab-ctl reconfigure systemctl restart crond/**************手动备份*******************************/gitlab-rake gitlab:backup:create
frp穿透
frpc.ini 配置文件
[common]
server_addr = www.abc.com
server_port = 7000[gitssh]
type = tcp
local_ip = 10.10.10.249
local_port = 22
remote_port = 20021[gitweb]
type = http
local_ip = 10.10.10.249
local_port = 7777
remote_port = 20020
custom_domains = www.abc.com
启动frpc.ini
./frpc -c ./frpc.ini
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
