Centos 7安装gitlab-ce-11.6.9
软件安装yum install -y curl policycoreutils-pythonopenssh-serversystemctl enable sshdsystemctl start sshdyum install postfixsystemctl enable postfixsystemctl start postfix下载gitlab:wgethttps://mirro...
作者: 维特网络
分类: 技术分享
时间: 2022-01-01 08:00
阅读量: 297 次
软件安装
# 安装依赖包 yum install -y curl policycoreutils-python openssh-server # 启用并启动sshd服务 systemctl enable sshd systemctl start sshd # 安装并启动postfix yum install postfix systemctl enable postfix systemctl start postfix # 下载gitlab安装包 wget https://mirrors.cloud.tencent.com/gitlab-ce/yum/el7/gitlab-ce-11.6.9-ce.0.el7.x86_64.rpm # 安装gitlab rpm -i gitlab-ce-11.6.11-ce.0.el7.x86_64.rpm
修改配置文件
# 编辑gitlab配置文件 vi /etc/gitlab/gitlab.rb # 修改外部访问地址 external_url 'http://192.168.1.10' # 修改库目录 git_data_dir([ "path" => "/data/git_data"])
重新配置与访问
# 重新配置gitlab gitlab-ctl reconfigure
浏览器访问 http://192.168.1.10,更改管理账号root的密码
员工账号配置
1. 员工注册账号
2. 员工账号客户端创建公钥:
ssh-keygen -t rsa -C"29975246@qq.com"
重置root密码
注意:密码需满足复杂度要求(至少8位,包含字母/数字等)
# 进入gitlab控制台 gitlab-rails console production # 查找root用户并修改密码 user = User.where(id: 1).first user.password=12345678 user.password_confirmation=12345678 user.save! # 退出控制台 quit
相关文章
维特网络是西部数码产品的钻石代理商
2025-10-15
了解详情
配置Gerrit到Gitlab的自动同步
2022-11-21
了解详情
Ubuntu 18.04安装gerrit 3.0.3
2021-12-27
了解详情
数据中心和IT设施的优先事项
2019-07-01
了解详情
企业布线趋势和新的测试注意事项
2019-05-01
了解详情