Centos7五步搭建Gitlab环境 想用Gitlab管理项目?你先看看这篇文章
Admin 2023-05-05 群英技术资讯 1730 次浏览
这篇文章主要讲解了“Centos7五步搭建Gitlab环境
想用Gitlab管理项目?你先看看这篇文章”,文中的讲解内容简单、清晰、详细,对大家学习或是工作可能会有一定的帮助,希望大家阅读完这篇文章能有所收获。下面就请大家跟着小编的思路一起来学习一下吧。1.准备一台Centos7环境。
如果是Window环境参考以下博客:
[WINDOWS7五步快速搭建Centos7环境](https://blog.csdn.net/doegoo/article/details/80061524)
2.安装前准备
参考官方文档:
[https://about.gitlab.com/installation/#centos-7]
安装相关工具类:
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
3.配置国内YUM源
参考清华源:
[清华源官网](https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/)
执行以下命令:
新建 /etc/yum.repos.d/gitlab-ce.repo,内容为
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
执行命令:
sudo yum makecache
sudo yum install gitlab-ce
4.安装gitlab-ce
sudo EXTERNAL_URL="http://gitlab.自已的域名.com" yum install -y gitlab-ee
或者:
sudo yum install -y gitlab-ee
5.启动gitlab-ce
sudo gitlab-ctl reconfigure
可使用 sudo vim /etc/gitlab/gitlab.rb 修改配置在执行以上命令重新加载
sudo gitlab-ctl status查看状态 出现在以下状态安装成功:
[vagrant@localhost ~]$ sudo gitlab-ctl status
run: gitaly: (pid 593) 1377s; run: log: (pid 592) 1377s
run: gitlab-monitor: (pid 611) 1377s; run: log: (pid 602) 1377s
run: gitlab-workhorse: (pid 610) 1377s; run: log: (pid 599) 1377s
run: logrotate: (pid 609) 1377s; run: log: (pid 591) 1377s
run: nginx: (pid 607) 1377s; run: log: (pid 594) 1377s
run: node-exporter: (pid 601) 1377s; run: log: (pid 600) 1377s
run: postgres-exporter: (pid 587) 1377s; run: log: (pid 586) 1377s
run: postgresql: (pid 589) 1377s; run: log: (pid 588) 1377s
run: prometheus: (pid 606) 1377s; run: log: (pid 605) 1377s
run: redis: (pid 608) 1377s; run: log: (pid 590) 1377s
run: redis-exporter: (pid 583) 1377s; run: log: (pid 582) 1377s
run: sidekiq: (pid 585) 1377s; run: log: (pid 584) 1377s
run: unicorn: (pid 604) 1377s; run: log: (pid 603) 1377s
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
这篇文章主要给大家分享linux下杀死mysql进程的方法和步骤是什么,那么具体要怎样操作呢?大家可以按照以下教程步骤来操作。
centos下使用fdisk命令
互斥量就是一把锁,在访问数据时能保证同一时间内只有一个线程访问数据,在访问完以后再释放互斥量上的锁。 条件变量是利用线程间共享的
inux怎样查找文件位置?查找文件的操作我们常常会使用到的,在linux中,我们有多种查找文件位置的方法,例如可以使用find命令或者locate命令。那么具体怎样做?接下来我们一起来了解看看。
在linux中,栈溢出的原因是系统栈是由高地址往低地址增长,而数据的写入是按低地址往高地址的顺序写入,所以程序一旦没有对输入的字符数量做出限制,就会存在数据溢出当前栈的可能。栈溢出是缓存区溢出的一种,本质上是写入栈的数据超过栈的大小造成的。
成为群英会员,开启智能安全云计算之旅
立即注册关注或联系群英网络
7x24小时售前:400-678-4567
7x24小时售后:0668-2555666
24小时QQ客服
群英微信公众号
CNNIC域名投诉举报处理平台
服务电话:010-58813000
服务邮箱:service@cnnic.cn
投诉与建议:0668-2555555
Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 ICP核准(ICP备案)粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008