CentOS 7安装GitLab 11.4.5
安装GitLab没必要像网上说的配置那么复杂,也不要自行编译安装,直接使用Omnibus版本即可,也就是综合安装包,注意如下几点:
1、不需要替换Nginx,直接使用GitLab的原生集成,同时这种方式也方便以后的配置,对于网上的方法来说,这一步居然替换成其它的Nginx,不用原生自带的,那么不是给以后配置造成吭吗?!!!
2、对于SSL的配置统一不在GitLab配置,直接使用Nginx做反向代理做SSL。
3、在CentOS下配置postfix多半会错,解决方法参考:https://www.cnblogs.com/EasonJim/p/9944495.html
4、网上居然要配置sshd的服务?厉害?
5、对于firewalld的配置,我建议不要这个服务,改成iptables。
6、运维安装GitLab只要注意这几点:域名访问、仓库目录创建和迁移、邮件发送(后续讲解)
7、很多时候网上说GitLab国外的网址被墙?我检测了三大运营商的网络基本没什么问题,如果非要国内下载,可以参考这个网址配置:https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
8、GitLab官网的安装教程是企业版本,只有有两个关键字ce、ee,ce代表社区免费版,ee代表企业版。
9、GitLab默认账号密码:root/5iveL!fe,默认启动端口是80。
下面是安装脚本的思路,不一定每台机器可以使用,只提供一个思路:
# 安装依赖
yum install -y curl policycoreutils-python yum install -y postfix
systemctl enable postfix
systemctl start postfix
# fix postfix in centos bug
sed -i 's/inet_interfaces = localhost/inet_interfaces = all' /etc/postfix/main.cf
service postfix restart # 下载安装
wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm -O gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm # 修改配置
# 域名(可选)
# sed -i 's/external_url \'http://gitlab.example.com\'/external_url \'http://gitlab.jsoft.com\'/g' /etc/gitlab/gitlab.rb
# 迁移目录
mv /var/opt/gitlab/git-data{,_bak}
mkdir -p /data/service/gitlab/git-data
chmod 775 /data
chmod 775 /data/service
chmod -R 775 /data/service/gitlab
rsync -av /var/opt/gitlab/git-data/repositories /data/service/gitlab/git-data/
ls -n /data/service/gitlab/git-data /var/opt/gitlab/git-data # 启动
gitlab-ctl reconfigure
gitlab-ctl restart
(安装可选)国外源安装:
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install -y gitlab-ce
(安装可选)国内源安装:
cat > /etc/yum.repos.d/gitlab-ce.repo << EOF
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
EOF
# 更新源缓存
yum makecache # 安装CE版
yum install -y gitlab-ce
全自动脚本:https://github.com/easonjim/centos-shell/blob/master/gitlab/install-gitlab_11.4.5.sh
参考:
https://about.gitlab.com/install/#centos-7
https://cloud.tencent.com/developer/article/1010163
https://blog.csdn.net/huhuhuemail/article/details/80519433
https://my.oschina.net/gccr/blog/591410
https://mirror.tuna.tsinghua.edu.cn/help/gitlab-ce/
CentOS 7安装GitLab 11.4.5的更多相关文章
- 1、CentOS 6 安装GitLab
1.安装和配置必需的依赖项 在CentOS上将系统防火墙打开HTTP和SSH访问. sudo yum install -y curl policycoreutils-python openssh-se ...
- CentOS 6安装Gitlab
1. 保证CentOS 6能连接网络 . 2.安装依赖: sudo yum install -y curl policycoreutils-python openssh-server cronie s ...
- CentOS 7 安装 Oracle 11.2.0.4
一.安装环境 CentOS Linux release 7.2.1511 (Core) Oracle Database 11g Release 2 (11.2.0.4) 二.安装前准备 2.1 修改主 ...
- CentOS 7 安装GitLab
CentOS 安装GitLab CentOS 安装GitLab GitLab是一个利用Ruby on Rails开发的开源应用程序,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私 ...
- CentOS下安装Gitlab
环境 Requirements 软件 版本 CentOS 6.6 Python 2.6 Ruby 2.1.5 Git 1.7.10+ Redis 2.0+ MySQL GitLab 7-8-sta ...
- centos 7安装gitlab及使用
GitLab 概述: 是一个利用 Ruby on Rails 开发的开源应用程序,实现一个自托管的 Git 项目仓库,可通过 Web界面迚行访问公开的戒者私人项目.Ruby on Rails 是一个可 ...
- Centos中安装gitlab
安装依赖: sudo yum install curl openssh-server openssh-clients postfix cronie sudo service postfix start ...
- CentOS 7安装GitLab、汉化、配置邮件发送
1.更换国内yum源 1.1 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 1.2 ...
- 阿里云服务器 centos 7 安装postgresql 11
Postgresql简介 官方网站:https://www.postgresql.org/ 简介参考zhihu文章 https://www.zhihu.com/question/20010554 关于 ...
随机推荐
- Anaconda+django写出第一个web app(十)
今天继续学习外键的使用. 当我们有了category.series和很多tutorials时,我们查看某个tutorial,可能需要这样的路径http://127.0.0.1:8000/categor ...
- VirtualBox中CentOS遇到的问题
centos7 安装步骤 https://www.cnblogs.com/hihtml5/p/8217062.html 静态ip设置 TYPE="Ethernet" PROXY_M ...
- Python学习笔记之逻辑回归
# -*- coding: utf-8 -*- """ Created on Wed Apr 22 17:39:19 2015 @author: 90Zeng " ...
- 总结---Python中的面向对象!
面向对象这种编程的范式每个语言都是通用的,这里总结一下python的面向对象语法,主要包含以下几个方面! 1 基本语法 # 定义类 class Person(object): n = 10 # 类变量 ...
- apropos找命令助手
apropos (意即"关于")能够搜索 Linux 帮助文档来帮你找到你想要的命令.比如说,你不记得你用的发行版用的什么防火墙工具了.你可以输入 apropos "fi ...
- springboot整合Thymeleaf模板引擎
引入依赖 需要引入Spring Boot的Thymeleaf启动器依赖. <dependency> <groupId>org.springframework.boot</ ...
- scrapy入门二(分页抓取文章入库)
分页抓取博客园新闻,先从列表里分析下一页按钮 相关代码: # -*- coding: utf-8 -*- import scrapy from cnblogs.items import Article ...
- Algorithm类介绍(core)
参考:http://blog.csdn.net/yang_xian521/article/details/7533922
- unmappable character for US-ASCII
编码错误编译时加-encoding UTF-8即可 :javac -encoding UTF- file.java //
- HDU 2512 一卡通大冒险(第二类斯特林数+贝尔数)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2512 题目大意:因为长期钻研算法, 无暇顾及个人问题,BUAA ACM/ICPC 训练小组的帅哥们大部 ...