• Rocky Linux 9 安装 Gitelab-ee(15.6.0-ee)


    •  安装

    1. dnf update -y
    2. dnf install postfix
    3. systemctl enable --now postfix
    4. wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh
    5. chmod +x script.rpm.sh
    6. os=el dist=8 ./script.rpm.sh
    7. dnf repolist
    8. dnf install gitlab-ee -y
    • 配置

    1. vim /etc/gitlab/gitlab.rb
    2. # external_url 'http://gitlab.example.com'
    3. external_url 'http://10.1.xxx.xxx:8888'
    • 启动

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

    1. # 查看密码,注意保存
    2. cat /etc/gitlab/initial_root_password
    3. # 访问地址:http://10.1.xxx.xxx:8888
    4. # 默认账号:root
    •  常用命令

    1. gitlab-ctl restart
    2. gitlab-ctl start
    3. gitlab-ctl stop
    4. gitlab-ctl status
    • 备份还原

    1. # 备份
    2. gitlab-rake gitlab:backup:create
    3. cd /var/opt/gitlab/backups
    4. ls -alh
    5. du -k *.tar
    6. # 还原
    7. cd /var/opt/gitlab/backups
    8. ls -alh
    9. -rw-------. 1 git git 380K Nov 25 11:35 1669347305_2022_11_25_15.6.0-ee_gitlab_backup.tar
    10. mv 1669347305_2022_11_25_15.6.0-ee_gitlab_backup.tar 1669347305_gitlab_backup.tar
    11. gitlab-ctl stop
    12. gitlab-rake gitlab:backup:restore BACKUP=1669347305
    13. # 或者不修改名称,直接还原也行
    14. gitlab-rake gitlab:backup:restore BACKUP=1669347305_2022_11_25_15.6.0-ee
    •  其它

    1. # 收集GitLab和系统信息
    2. gitlab-rake gitlab:env:info
    3. # 显示GitLab许可证信息
    4. gitlab-rake gitlab:license:info
    5. # 检查GitLab配置
    6. gitlab-rake gitlab:check
    7. gitlab-rake gitlab:gitlab_shell:check
    8. gitlab-rake gitlab:gitaly:check
    9. gitlab-rake gitlab:sidekiq:check
    10. gitlab-rake gitlab:incoming_email:check
    11. gitlab-rake gitlab:ldap:check
    12. gitlab-rake gitlab:app:check
    13. # 重建 authorized_keys 密钥索引文件
    14. gitlab-rake gitlab:shell:setup
    15. # 清除redis缓存
    16. gitlab-rake cache:clear
    17. # 测试TCP连接
    18. gitlab-rake gitlab:tcp_check[gitlab.com,80]
    19. # 显示 database migrations状态
    20. gitlab-rake db:migrate:status
    21. # 运行未完成的database migrations
    22. gitlab-rake db:migrate
    23. # 重建数据库索引
    24. gitlab-rake gitlab:db:reindex
    25. # 导入 common metrics
    26. gitlab-rake metrics:setup_common_metrics

  • 相关阅读:
    从零开始langchain-chatchat部署
    长尾关键词优化 常见影响长尾关键词优化效果的3个因素
    页面中间显示提示信息,当滚动时消失
    Eclipse在tomcat运行点击跳转404
    Qt篇——QChartView获取鼠标停留位置的数值
    逆向工程:揭示Google Colab未公开的秘密
    做自媒体的素材都是在哪里找的呢?
    【Linux】——目录结构
    css让元素透明的方式
    element 搜索框静态查询
  • 原文地址:https://blog.csdn.net/wyh0318/article/details/128034955