安装步骤参见:
https://about.gitlab.com/install/#centos-7
https://blog.csdn.net/duyusean/article/details/80011540
系统环境
操作系统: centos7.5x86_64 (centos7(2))
内存: 2G(最少)
CPU: 1个(最少)
安装centos7系统(略)
ntpdate cn.pool.ntp.org (更新网络时间)
hwclock —systohc (将系统时间写入硬件,重启后时间也是正确的)
yum install -y curl policycoreutils-python openssh-server yum install postfix #安装postfix邮件服务 systemctl enable postfix systemctl start postfix
(推荐通过国内镜像站下载,清华大学开源镜像: https://mirrors.tuna.tsinghua.edu.cn/)
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm rpm -ivh gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm #rpm安装
vi /etc/gitlab/gitlab.rb # 修改配置gitlab配置文件
external_url 'http://192.168.11.11:8081'
:x 保存退出
gitlab-ctl reconfigure
gitlab-ctl start
(gitlab-ctl status 查看运行状态)
gitlab-ctl start # 启动所有 gitlab组件
gitlab-ctl stop # 停止所有 gitlab组件
gitlab-ctl restart # 重启所有 gitlab 组件
gitlab-ctl status # 查看服务状态
gitlab-ctl reconfigure # 重新加载配置
gitlab-ctl tail # 查看日志
打开浏览器,访问 http://192.168.11.11:8081
初始账户: root ,初次登录后需要修改密码,如修改密码为: 123456asd
用户名/密码: gituser/123456asd
new project -》 名称为 test-demo -》可见性:选择登录员工可见。
上一篇:centos7.5搭建
下一篇:dubbo-2.6项目入门
Copyright © 叮叮声的奶酪 版权所有
备案号:鄂ICP备17018671号-1