CentOS7 安装和使用Gitlab

centos:http://www.centos.org/download/
download:https://about.gitlab.com/downloads/
update:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/update.md
trouble:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

之前使用gitlab (http://www.cnblogs.com/Irving/p/3733339.html) 原生的包安装,升级过于麻烦,换成Omnibus就方便很多。

#安装CentOS

vmware简易安装linux系统,默认只能自己创建一个非root用户(因为root用户默认存在),所以你安装好后,是没法使用root用户登陆的。
进入超级用户模式给root用户设置密码
[[email protected] ~]$ su
Password:
桥接
1. ONBOOT=yes
2. 配置static

[[email protected] network-scripts]# cat ifcfg-eno16777736
WADDR=00:0C:29:83:EF:27
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=74fd9464-5ad3-4c73-861a-79f66df41231
ONBOOT=yes
IPADDR0=10.200.66.10
PRRFIXO0=16
GATEWAY0=10.200.0.2
DNS1=114.114.114.114
[[email protected] network-scripts]# 

#更新包

yum update
yum -y install wget

#下载安装

curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el7.x86_64.rpm

sudo yum install openssh-server

sudo systemctl enable sshd

sudo systemctl start sshd

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

sudo rpm -i gitlab-7.6.2_omnibus.5.3.0.ci.1-1.el7.x86_64.rpm

#配置

sudo gitlab-ctl reconfigure

sudo firewall-cmd --permanent --add-service=http # open up the firewall for HTTP and SSH requests

sudo systemctl reload firewalld

#查看运行情况

sudo gitlab-ctl status;

#配置external_url

Try specifying an external_url in /etc/gitlab/gitlab.rb. Also check your firewall settings; port 80 (HTTP) or 443 (HTTPS) might be closed on your GitLab server.

#配置域名或IP生效

sudo gitlab-ctl reconfigure

Refer:http://www.osyunwei.com/archives/7829.html

时间: 2024-08-02 18:46:48

CentOS7 安装和使用Gitlab的相关文章

Centos7安装配置gitlab

Centos7安装配置gitlab 这篇文字我会介绍在Centos7上安装gitlab,配置gitlab的smtp,并且创建项目demo. sudo yum install openssh-server sudo yum install postfix sudo yum install cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s http -s ssh 使用清华大学gitlab的镜像http

CentOS7安装GitLab、汉化及使用

同步首发:http://www.yuanrengu.com/index.php/20171112.html 一.GitLab简介 GitLab是利用Ruby On Rails开发的一个开源版本管理系统,实现了一个自托管的Git项目仓库,是集代码托管,测试,部署于一体的开源git仓库管理软件,可通过web界面来进行访问公开的或私人项目.与Github类似,GitLab能够浏览代码,管理缺陷和注释.可以管理团队对仓库的访问,它非常易于浏览提交过的版本,并提供一个文件历史库.它还提供一个代码片段收集功

Centos7安装Gitlab10.0

gitlab官方安装方法,如下链接.因国内网络限制,本文修改部分内容.因源码安装太折磨人,故使用官网的Omnibus安装包安装. # Centos7 https://www.gitlab.cc/installation/#centos-7  # Centos6 https://www.gitlab.cc/installation/#centos-6 1. 安装并配置必要的依赖关系 如果你想使用 Postfix 发送邮件,请在安装过程中根据提示选择 'Internet Site'. 你也可以用 S

Centos7 安装配置OpenLdap服务及OpenLdap管理工具

我们上一篇文章中介绍了,Centos7+Openvpn使用Windows AD(LDAP)验证登录的配置介绍.说到LDAP服务,我们知道不止windows有,linux下也有,比如openldap,sambaLDAP服务,具体就不多介绍了,我们今天主要介绍一下Centos7 安装配置OpenLdap及Ldap管理工具等操作,为后面的Centos7+Openvpn+openldap验证登录做好基础. 我们首先配置一个指定源,我们源地址指向了阿里云的仓库源 cd /etc/yum.repos.d v

CentOS7安装python-pip

python中的一个十分好用的包管理工具python-pip是我们使用python必不可少的一件工具.但是在CentOS7安装时候却遇到了一些小问题: [[email protected] magic]# yum install python-pip 已加载插件:fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.btte.net * extras: mirrors.btte.ne

HP服务器 hp 360g5 centos7安装问题

HP服务器  hp 360g5 centos7安装问题 一 :启动盘无法识别硬盘 1.进入安装光盘,用上下键选择安装centos--Install Centos7(注意不可按Enter键),如图: 2.按Tab键,对安装进行额外配置,在屏幕最下方会显示如下字样: 3.在额外配置的命令行上添加配置: hpsa.hpsa_simple_mode=1 hpsa.hpsa_allow_any=1,如图所示: 二:安装完成后无法引导  出现情况:CentOS开机进度条卡死在100% 显示 firmware

Centos7安装mariadb galera cluster数据库集群 & 详解

#Galera集群特点 集群之间无延时,同步复制.而master-slave主从异步复制,存在延迟. active-active多主,集群内部服务器都是同时写,必须等所有集群内所有数据库都完成数据写入,才会反馈完成,所以不存在数据丢失的情况. 集群节点自动故障转移,如果集群中单个节点故障,失效节点会自动被清除. 扩展方便,只要将新的节点添加到集群,新节点自动复制数据. #Galera集群原理     #主要通过galera插件保证数据的一致性,该数据复制的过程是可认证的复制,原理如下: #解析

Centos7 安装MPlayer过程详解

使用自带的totem基本上都无法播放视频,各种格式都不支持,令人无语.想到了MPlayer,为了看片,决定编译安装,过程真的是折腾.如图是自带的Totem播放提示,安装了解码还是无法播放,反正要找其他播放器了,也没兴趣去管他是什么原因. 需要用到的东西在MPlayer官网上都有,就一个页面可以把所有东西都下载好http://mplayerhq.hu/design7/dload.html 0x01 准备工作 使用svn方式获取获取源码命令 svn checkout svn://svn.mplaye

CentOS7安装redis数据库及php-redis扩展

redis 首先把redis安装到服务器中 1.wget http://download.redis.io/redis-stable.tar.gz 下载redis源码 2. tar xvzf redis-stable.tar.gz 解压 3.cd redis-stable 4.make   make的时候可能出现问题,我的就出现了异常 异常一: make[2]: cc: Command not found 异常原因:没有安装gcc 解决方案:yum install gcc-c++ 异常二: zm