centos7 使用 omnibus包安装方式,安装 gitlab7.4
centos7 使用 omnibus包安装方式,安装 gitlab7.4
1: gitlab是一个开源的软件,类似于github.com那样的git代码管理仓库;
官网 https://about.gitlab.com/
下载资源 :https://about.gitlab.com/downloads/archives/
安装指南 :https://about.gitlab.com/downloads/
详细说明:https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
2:安装
#cent7 对应的安装包 rpm
#这里是官方的下载资源,是amazome的云服务器,速度很慢,建议用国外的vps下载下,然后再用迅雷vip离线下载,然后下载到自己服务器上
curl -O https://downloads-packages.s3.amazonaws.com/centos-7.0.1406/gitlab-7.4.3_omnibus.5.1.0.ci-1.el7.x86_64.rpm #安装对应的 openssh服务
yum install openssh-server
#设置开机启动
systemctl enable sshd
#启动sshd服务
systemctl start sshd 安装对应的 postfix服务同样设置开机启动和启动服务
yum install postfix
systemctl enable postfix
systemctl start postfix #使用rpm 源安装,gitlab omnibus安装包
rpm -i gitlab-7.4.3_omnibus.5.1..ci-.el7.x86_64.rpm
#安装完成之后会出现complete,并提示你配置gitlab #安装完成之后,配置gitlab
gitlab-ctl reconfigure #设置服务器的防火墙允许http,和ssh服务
firewall-cmd --permanent --add-service=http #重新启动防火墙
systemctl reload firewalld #给gitlab服务绑定域名
vim /etc/gitlab/gitlab.rb
#填写你指定的绑定域名和端口,默认是80端口
external_url 'http://www.git.com:8078' #重新启动一下服务
gitlab-ctl restart #浏览器,打开绑定的域名及端口,访问
#默认的用户名是 root,密码是 5iveL!fe 登陆成功之后,会修改密码,至少8位
3: 在启动成功之后
#执行gitlab-ctl status 查看状态
[root@cocoaPro ~]# gitlab-ctl status
run: logrotate: (pid ) 2536s; run: log: (pid ) 2959s
run: nginx: (pid ) 2535s; run: log: (pid ) 2961s
run: postgresql: (pid ) 2535s; run: log: (pid ) 2974s
run: redis: (pid ) 2534s; run: log: (pid ) 2981s
run: sidekiq: (pid ) 1795s; run: log: (pid ) 2962s
run: unicorn: (pid ) 1764s; run: log: (pid ) 2963s
可以看出gitlab的框架是 nginx+postgresql+redis+sidekiq+unicorn
所以如果你的服务器有 apache httpd的服务,要避免二者都占用80端口的冲突
还有 gitlab在修改配置绑定域名和端口之后,要执行一下 gitlab-ctl reconfigure 重新配置一下gitlab服务,使之生效
最后分享一下我迅雷离线下载的资源 离线下载
centos7 使用 omnibus包安装方式,安装 gitlab7.4的更多相关文章
- 在centos使用rpm包的方式安装mysql,以及更改root密码
在centos使用rpm包的方式安装mysql,对于centos官方实际推荐使用yum进行安装,下载安装的方式主要用于内网服务器不能连接外网yum源的情况. 下载包 首先根据centos版本在mysq ...
- tensorflow的Virtualenv安装方式安装
本文介绍了如何在ubuntu上以virtualenv方式安装tensorflow. 安装pip和virtualenv: # Ubuntu/Linux 64-bit sudo apt-get insta ...
- centos7下源码编译方式安装httpd
前言 Apache至少需要apr.apr-util.pcre组件的支持. APR(Apache portable Run-time libraries,Apache可移植运行库)的目的如其名称一样,主 ...
- centos7 mysql8.0 RPM软件包方式安装
1下载安装包:https://dev.mysql.com/downloads/mysql/8.0.html 2.解压安装包后可以看下如下文件列表 3.在当前目录打开终端 查看并卸载 mariadbrp ...
- CentOS7的mysql5.7-rpm.bundle方式安装
下载地址 https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-1.el6.x86_64.rpm-bundle.tar 查询mariad ...
- Linux下源码安装方式安装MySQL
1.下载安装包:https://downloads.mysql.com/archives/community/ 2.安装开发工具和安装包 因为要把源码编译成二进制数据,所以必须要有编译器和解释器 g ...
- All-In-One方式-安装openstack
ALL-IN-ONE安装openstack******************************************************************************* ...
- 第2-1-2章 传统方式安装FastDFS-附FastDFS常用命令
目录 3 安装配置 3.1 安装GCC 3.2 安装libevent 3.3 安装libfastcommon 3.4 安装FastDFS 3.5 安装fastdfs-nginx-module 3.5 ...
- 免安装方式的Python之VSCode环境配置
概述 本文旨在介绍免安装方式,在VSCode中搭建Python(3.73)的配置环境.至于Python是什么.它能做些什么,诸如此类的介绍均不在此文中介绍,相信能看此文的人,多多少少都会有些了解. V ...
随机推荐
- 2016年11月12日 星期六 --出埃及记 Exodus 20:3
2016年11月12日 星期六 --出埃及记 Exodus 20:3 "You shall have no other gods before me.除了我以外,你不可有别的 神.
- shell 中的>文件重定向符 和 标准输入、输出、错误以及 2&1 的含义*
http://www.cnblogs.com/chenmh/p/5382044.html 问:其中 的2>&1是怎么回事? . test.sh > test.log 2>&a ...
- Struts2的处理结果(一)——处理结果的配置
Struts2的处理结果(一) --处理结果的配置 1.处理结果 在Action处理完用户请求之后,并不会直接生成响应,而是把一个字符串返回给Struts2框架,再由框架选择此字符串结果对应的物理视图 ...
- nginx配置404
1.创建一个404错误时显示的页面 2.在nginx.conf中的http区域加入: fastcgi_intercept_errors on; 3.在nginx.conf的server区域(如果网站有 ...
- 去处HTML标签
JavaScript去处HTML标签 function removeHTMLTag(str) { str = str.replace(/<\/?[^>]*>/g, ''); //去除 ...
- .Net操作注册表--un
C#操作注册表 导入命名空间 Using MicroSoft.Win32;//64位系统装的64位版本
- CodeForces 508C Anya and Ghosts
Anya and Ghosts Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u S ...
- Cheatsheet: 2014 03.01 ~ 03.31
.NET Should I be concerned about PDB files? async and await -Simplified-Internals Web Performance tr ...
- Java——Socket编程(一)
1. 网络基础知识 两台机器之间需要进行通信,需要满足的条件: 每个机器有一个唯一的标识符(IP地址): 他们之间进行通信需要用同一种语言(协议): 每台主机上面有多个应用程序,如QQ,微博,迅雷等, ...
- windows tomcat 优化
windows tomcat 优化 1. tomcat conf server.xml 在server.xml中修改以一部分,增加节点数目,可以很好的提高性能: <Connector port ...