2
树莓派4安装Gitlab
source link: https://zhangyiming748.github.io/2022/05/21/raspi4_install_gitlab/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/bullseye/gitlab-ce_14.10.3-ce.0_arm64.deb/download.deb
sudo dpkg -i gitlab-ce_14.10.3-ce.0_arm64.deb
修改配置文件
vim /etc/gitlab/gitlab.rb
external_url 'http://192.168.10.123:80'
# 改成本机端口
......
gitlab_rails['time_zone'] = 'Asia/Shanghai'
# 电子邮件可以不设置 反正是本地代码托管
gitlab_rails['gitlab_email_from'] = '[email protected]'
......
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "smtp.163.com"
gitlab_rails['smtp_port'] = 25
gitlab_rails['smtp_user_name'] = "[email protected]"
gitlab_rails['smtp_password'] = "111111" # 客户端授权密码
gitlab_rails['smtp_domain'] = "163.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
......
user["git_user_email"] = "[email protected]"
修改后重新配置
sudo gitlab-ctl reconfigure
查看状态
sudo gitlab-ctl status
/etc/gitlab/initial_root_password
# 会在第一次执行sudo gitlab-ctl reconfigure后生成 24小时后自动删除
常用命令 | 说明 |
---|---|
sudo gitlab-ctl reconfigure | 重新加载配置,每次修改/etc/gitlab/gitlab.rb文件之后执行 |
sudo gitlab-ctl status | 查看 GitLab 状态 |
sudo gitlab-ctl start | 启动 GitLab |
sudo gitlab-ctl stop | 停止 GitLab |
sudo gitlab-ctl restart | 重启 GitLab |
sudo gitlab-ctl tail | 查看所有日志 |
sudo gitlab-ctl tail nginx/gitlab_acces.log | 查看 nginx 访问日志 |
sudo gitlab-ctl tail postgresql | 查看 postgresql 日志 |
Related Issues not found
Please contact @zhangyiming748 to initialize the comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK