赞
踩
官方的建议是使用脚本直接执行安装,对于网络不好的情况,还是直接下载安装包吧。
下载安装包,访问链接:
gitlab/gitlab-ce - Packages · packages.gitlab.com
这里选择最新版本, gitlab-ce_14.7.3-ce.0_arm64.deb
在这里选择合适自己Linux系统的版本
点击 进行,选择进行安装
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
在执行:
sudo apt-get install gitlab-ce=14.7.3-ce.0
出现以下提示,表示安装成功
*** *** ***** ***** .****** ******* ******** ******** ,,,,,,,,,***********,,,,,,,,, ,,,,,,,,,,,*********,,,,,,,,,,, .,,,,,,,,,,,*******,,,,,,,,,,,, ,,,,,,,,,*****,,,,,,,,,. ,,,,,,,****,,,,,, .,,,***,,,, ,*,. _______ __ __ __ / ____(_) /_/ / ____ _/ /_ / / __/ / __/ / / __ `/ __ \ / /_/ / / /_/ /___/ /_/ / /_/ / \____/_/\__/_____/\__,_/_.___/
vim /etc/gitlab/gitlab.rb
修改以下信息
- external_url 'http://192.168.2.61:80'
- ......
- gitlab_rails['time_zone'] = 'Asia/Shanghai'
- gitlab_rails['gitlab_email_from'] = 'xxxxxx@163.com'
- ......
- gitlab_rails['smtp_enable'] = true
- gitlab_rails['smtp_address'] = "smtp.163.com"
- gitlab_rails['smtp_port'] = 25
- gitlab_rails['smtp_user_name'] = "xxxxxx@163.com"
- 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"] = "xxxxxx@163.com"
只要修改配置文件就要reconfigure
sudo gitlab-ctl reconfigure
- Default admin account has been configured with following details:
- Username: root
- Password: You didn't opt-in to print initial root password to STDOUT.
- Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
- NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
- gitlab Reconfigured!
sudo cat /etc/gitlab/initial_root_password
访问web页面
Sign in · GitLabhttp://192.168.2.61/users/sign_in
账号/密码 root / 密码在文件里面复制出来
完成
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。