标签:tin mail http 启动 mirror str root unicorn ext
# 安装
[root@ubuntu1804:~]# dpkg -i gitlab-ce_13.7.1-ce.0_amd64.deb
# 修改配置文件
[root@ubuntu1804:~]# vim /etc/gitlab/gitlab.rb
external_url ‘http://gitlab.wuvikr.top‘
gitlab_rails[‘smtp_enable‘] = true
gitlab_rails[‘smtp_address‘] = "smtp.qq.com"
gitlab_rails[‘smtp_port‘] = 465
gitlab_rails[‘smtp_user_name‘] = "744123155@qq.com"
gitlab_rails[‘smtp_password‘] = "cjlfqchshixixxxx"
gitlab_rails[‘smtp_domain‘] = "qq.com"
gitlab_rails[‘smtp_authentication‘] = "login"
gitlab_rails[‘smtp_enable_starttls_auto‘] = true
gitlab_rails[‘smtp_tls‘] = true
gitlab_rails[‘gitlab_email_from‘] = "744123155@qq.com"
user[‘git_user_email‘] = "744123155@qq.com"
# 初始化配置
[root@ubuntu1804:~]# gitlab-ctl reconfigure
访问gitlab Web界面:
默认管理员账户为root,第一次登陆需要修改密码。
登录后建议立即关闭注册功能,在admin area / settings / sign up restrictions中取消勾选Sign-up enabled选项。
数据的备份和恢复前都需要停止gitlab的两个服务 unicorn ,sidekiq
注意:新版本中unicorn已被被puma所取代
[root@ubuntu1804:~]# gitlab-ctl stop unicorn
[root@ubuntu1804:~]# gitlab-ctl stop sidekiq
备份数据:
[root@ubuntu1804:~]# gitlab-rake gitlab:backup:create
# etc/gitlab目录下的gitlab.rb和gitlab-secrets.json需要手动进行备份
# 备份完成后启动Gitlab
[root@ubuntu1804:~]# gitlab-ctl start
恢复数据:
# 恢复时指定备份文件的时间即可,Gitlab会自动补全后缀
[root@ubuntu1804:~]# gitlab-rake gitlab:backup:restore BACKUP=1610454809_2021_01_12_13.7.1
标签:tin mail http 启动 mirror str root unicorn ext
原文地址:https://www.cnblogs.com/wuvikr/p/14269170.html