当前位置:   article > 正文

Ubuntu 20上安装 gitlab git 服务器_ubuntu20 git安装包

ubuntu20 git安装包

官方的建议是使用脚本直接执行安装,对于网络不好的情况,还是直接下载安装包吧。

下载安装包,访问链接:

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

出现以下提示,表示安装成功

  1. *** ***
  2. ***** *****
  3. .****** *******
  4. ******** ********
  5. ,,,,,,,,,***********,,,,,,,,,
  6. ,,,,,,,,,,,*********,,,,,,,,,,,
  7. .,,,,,,,,,,,*******,,,,,,,,,,,,
  8. ,,,,,,,,,*****,,,,,,,,,.
  9. ,,,,,,,****,,,,,,
  10. .,,,***,,,,
  11. ,*,.
  12. _______ __ __ __
  13. / ____(_) /_/ / ____ _/ /_
  14. / / __/ / __/ / / __ `/ __ \
  15. / /_/ / / /_/ /___/ /_/ / /_/ /
  16. \____/_/\__/_____/\__,_/_.___/

修改配置文件

vim /etc/gitlab/gitlab.rb

修改以下信息

  1. external_url 'http://192.168.2.61:80'
  2. ......
  3. gitlab_rails['time_zone'] = 'Asia/Shanghai'
  4. gitlab_rails['gitlab_email_from'] = 'xxxxxx@163.com'
  5. ......
  6. gitlab_rails['smtp_enable'] = true
  7. gitlab_rails['smtp_address'] = "smtp.163.com"
  8. gitlab_rails['smtp_port'] = 25
  9. gitlab_rails['smtp_user_name'] = "xxxxxx@163.com"
  10. gitlab_rails['smtp_password'] = "111111" # 客户端授权密码
  11. gitlab_rails['smtp_domain'] = "163.com"
  12. gitlab_rails['smtp_authentication'] = "login"
  13. gitlab_rails['smtp_enable_starttls_auto'] = true
  14. ......
  15. user["git_user_email"] = "xxxxxx@163.com"

只要修改配置文件就要reconfigure

sudo gitlab-ctl reconfigure
  1. Default admin account has been configured with following details:
  2. Username: root
  3. Password: You didn't opt-in to print initial root password to STDOUT.
  4. Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.
  5. 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.
  6. gitlab Reconfigured!

出现上面表示成功了,默认密码根据提示保存在

 sudo cat /etc/gitlab/initial_root_password

访问web页面 

Sign in · GitLabicon-default.png?t=M1H3http://192.168.2.61/users/sign_in

 账号/密码  root /  密码在文件里面复制出来 

Gitlab设置中文界面

 

完成

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/609143
推荐阅读
相关标签
  

闽ICP备14008679号