在CentOS下安装GitLab
在CentOS下安装GitLab
- 环境准备
- 正式安装
- 配置修改
环境准备
#安装ssh
sudo yum install -y curl policycoreutils-python openssh-server
#将ssh服务设为开机自启动
sudo systemctl enable sshd
#开启ssh服务
sudo systemctl start sshd
#安装防火墙,如果已安装了防火墙,则可跳过这一步
yum install firewalld systemd -y
#开启防火墙
service firewalld start
#将http和https添加到防火墙,permanent表示永久生效
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
#重启防火墙
sudo systemctl reload firewalld
#安装Postfix用来发送通知邮件。如果你想使用其它方法来发送邮件,可以跳过这个步骤,并在Gitlab安装完成后配置SMTP服务。
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
正式安装
#安装gitlab,我们需要通过wget来下载gitlab安装包,如果wget没有安装,则可通过下面的命令安装:
yum -y install wget
#可能还需要安装vim,因为后面需要修改gitlab的配置文件:
#yum install vim -y
#接下来是下载gitlab安装包,为了保证下载速度,可以从清华大学开源软件镜像站下载
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.11.8-ce.0.el7.x86_64.rpm
#安装gitlab
rpm -i gitlab-ce-11.11.8-ce.0.el7.x86_64.rpm
配置修改
#修改配置
#等待gitlab安装完成后,终端界面会提示你修改/etc/gitlab/gitlab.rb文件,通过设置external_urll来配置你的URL,通常情况下是你的服务器ip和端口号。
vim /etc/gitlab/gitlab.rb
#终端界面还提示你通过下面的命令启动gitlab:
sudo gitlab-ctl reconfigure
#到此为止,你在CentOS中的浏览器输入 http://localhost 或者 ip及端口号,便可以看到gitlab的页面了。
在CentOS下安装GitLab相关推荐
- CentoS 下安装gitlab
curl https://raw.github.com/mattias-ohlsson/gitlab-installer/master/gitlab-install-el6.sh | bash 报错 ...
- CentOs下搭建GitLab
CentOs下搭建GitLab gitlab提供ce 和 ee两个版本,从官网的解释来看,如果想体验完整的功能则安装ee版并付费,不然体验时间过后ee版将自动降级为ce版,所以看个人需求安装.二者的区 ...
- Centos下安装mysql 总结
一.MySQL安装 Centos下安装mysql 请点开:http://www.centoscn.com/CentosServer/sql/2013/0817/1285.html 二.MySQL的几个 ...
- linux卸载欧朋浏览器,如何在Centos下安装opera浏览器
如何在Centos下安装opera浏览器 ,Opera目前是Linux平台上性能最优的浏览器,而且Opera中国团队本身即定位于Opera的研发中心,主要也是负责全球Linux平台项目的开发,这个版本 ...
- 在CentOS下安装apche+tomcat+mysql+php
在CentOS下安装apche+tomcat+mysql+php 本例中所用到的软件 Apache 2.2 Sun的JDK-1_5_0_12-linux-i586 MySQL: mysql-5.0.4 ...
- Linux(CentOs)下安装Phantomjs + Casperjs
Linux(CentOs)下安装Phantomjs + Casperjs 是参照cnMiss's Blog http://ju.outofmemory.cn/entry/70691的博客进行安装的 1 ...
- CentOS下安装JDK7 转载
转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.html CentOS下安装JDK7 下载地址:http://www.ora ...
- centos解压zip命令_2、centos下安装elasticsearch-head
1.下载 https://github.com/mobz/elasticsearch-head/archive/master.zip 2.解压 unzip elasticsearch-head-mas ...
- CentOS 下安装
2016年12月5日15:25:58 ----------------------------------- 通常情况下在centos下安装软件就用yum. 关键是,使用yum你要知道安装包的名字是什 ...
最新文章
- 个人计算机中的cache,cache在计算机中的作用是什么?
- 人民日报:人工智能,务实发展是正道
- java的设计模式 - Builder模式
- 设计模式:观察者模式(有利于代码解耦)
- html中div不在火狐居中,Firefox嵌套CSS中div标签居中问题解决方法
- shell 指令使用整理
- 记事本开发者日记~二
- Mycat 分布式事务的实现
- 使用animate()的时候,有时候会出现移进移出的闪动问题
- 又是一岁,又是一年,又是新的开端【我与51CTO的故事】
- 配置8086汇编环境
- 企业微信客户端API分享微信朋友圈使用过程及总结
- 【新解】多品种小批量时代下,工业企业的成本核算方法
- QQ,微信能聊天都靠它(socket)?
- 酒诗词之一(七言诗)
- shader篇-程序纹理
- 方法重载时,需要遵循以下三条原则
- 台式计算机技术参数响应表,详细技术参数响应表介绍.doc
- 【Tableau 设计提示11 】- 仪表板布局提示
- 解决控制面板卸载不了程序的问题