微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

centos7.3安装gitlab

依赖环境
yum -y install curl policycoreutils policycoreutils-python openssh-server openssh-clients postfix git

启动postfix
systemctl start postfix
systemctl enable postfix
在线安装gitlab
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

yum install -y gitlab-ce

在线安装或者gitlab

curl -sS http://packages.gitlab.com.cn/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce


离线或者gitlab
wget https://packages.gitlab.com/gitlab/gitlab-ce/el/7/x86_64/gitlab-ce-9.2.2-ce.0.el7.x86_64.rpm

配置gitlab
vi /etc/gitlab/gitlab.rb
14 external_url 'http://ip:端口(提示认是80端口)
gitlab-ctl reconfigure
gitlab-ctl start
gitlab-ctl status
查看gitlab
grep "^external_url" /etc/gitlab/gitlab.rb
external_url 'http://ip:端口
首次访问GitLab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面.
认的管理员账号是root,如果你想更改管理员账号,请输入上面设置的新密码登录系统后修改帐号名.
http://IP:端口 (root/自己的密码)

原文地址:https://www.jb51.cc/centos/375059.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。