Centos 7安装gitlab-ce-11.6.9

热度 85

软件安装
yum install -y curl policycoreutils-pythonopenssh-server
systemctl enable sshd
systemctl start sshd
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

修改配置文件
vi /etc/gitlab/gitlab.rb
修改:external_url 'http://192.168.1.10'
修改库目录:git_data_dir([ "path" => "/data/git_data"])

重新配置
gitlab-ctl reconfigure
浏览器访问http://192.168.1.10,更改管理账号root的密码

员工注册账号

员工账号客户端创建公钥
ssh-keygen -t rsa -C"29975246@qq.com"

重置root密码
gitlab-rails console production
user = User.where(id: 1).first
user.password=12345678
user.password_confirmation=12345678
user.save!
quit

服务热线

020-28186508

加微信咨询