centos 8.3安装 一键安装部署gitlab
安装和配置gitlab必须的依赖包
[root@gitlabdev ~]#dnf install -y curl policycoreutils openssh-server perl
设置开机自启sshd
[root@gitlabdev ~]#systemctl enable sshd
启动sshd
[root@gitlabdev ~]#systemctl start sshd
查看防火墙的状态
[root@gitlabdev ~]#systemctl status firewalld
执行结果

如果是开启状态执行以下操作
永久生效,开启http服务
[root@gitlabdev ~]#firewall-cmd --permanent --add-service=http
永久生效,开启https服务
[root@gitlabdev ~]#firewall-cmd --permanent --add-service=https
重新加载一下设置
[root@gitlabdev ~]#systemctl reload firewalld
安装用于发送邮件通知的Postfix
安装Postfix
[root@gitlabdev ~]#dnf install postfix
设置postfix开机自启
[root@gitlabdev ~]#systemctl enable postfix
启动postfix
[root@gitlabdev ~]#systemctl start postfix
下载安装Gitlab安装包
[root@gitlabdev ~]# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-14.0.4-ce.0.el8.x86_64.rpm
可以根据自己的系统选择不同的安装版本
清华园下载链接:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum
安装gitlab
[root@gitlabdev ~]#rpm -Uvh gitlab-ce-14.0.4-ce.0.el8.x86_64.rpm
更改gitlab默认端口
[root@gitlabdev ~]# vim /etc/gitlab/gitlab.rb
修改内容:external_url
后改为自己的http://ip:端口;
unicorn['port'] = 28080 修改 unicorn['port'] 端口;
!注意,两个端口不能一样
使用gitlab-ctl reconfigure
自动配置,并安装数据库,初始化信息,如下所示(第一次使用配置时间较长)
[root@gitlabdev ~]#gitlab-ctl reconfigure
=====================================================================================
至此系统已经启动,可在网页输入系统的IP+端口即可进入登录,初次登录要求修改root管理员密码;
在浏览器中输入 http://ip:端口/ ,然后 change password: ,并使用root用户登录 即可 (后续动作根据提示操作)
如操作太快,没有记住密码,可参看我的另一篇博客进行修改密码
修改密码链接:https://www.cnblogs.com/cndevops/p/14973118.html
=====================================================================================
使用gitlab-ctl
启动所有gitlab组件
[root@gitlabdev ~]#gitlab-ctl start
启动服务
[root@gitlabdev ~]#gitlab-ctl reconfigure
停止服务
[root@gitlabdev ~]#gitlab-ctl stop
centos 8.3安装 一键安装部署gitlab的更多相关文章
- Linux(CentOS、Ububtu)一键安装Openstack及其它参考文档汇总
原文链接 http://www.aboutyun.com/thread-10920-1-1.html openstack相关资料 CentOS下一键安装Openstack http://blog. ...
- 在CentOS下利用Docker一键安装seafile
https://cloud.seafile.com/published/seafile-manual-cn/docker/pro-edition/%E7%94%A8Docker%E9%83%A8%E7 ...
- centos下的redis一键安装shell脚本
#!/bin/bash yum install cpp binutils glibc-kernheaders glibc-common glibc-devel gcc make wget #安装依赖库 ...
- 转:CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP)环境
CentOS/Debian/Ubuntu一键安装LAMP(Apache/MySQL/PHP) 今天遇到一个网友提到需要在Linux VPS服务器中安装LAMP(Apache/MySQL/PHP)网站环 ...
- [转]Centos 7 安装部署 GitLab 服务器
Centos 7 安装部署 GitLab 服务器 转自:https://www.jianshu.com/p/79bfded68899 文前说明 作为码农中的一员,需要不断的学习,我工作之余将一些分析总 ...
- centos 7 一键安装gitlab
# cat /etc/redhat-release CentOS release 6.5 (Final) # strings /lib64/libc.so.6 |grep GLIBC_ 首先升级 如果 ...
- 一、CentOS 7安装部署GitLab服务器
一.CentOS 7安装部署GitLab服务器 1.安装依赖软件 yum -y install policycoreutils policycoreutils-python openssh-serve ...
- (转)CentOS下一键安装GitLab
[环境准备]OS: CentOS 6.3 x86_64 [安装要求]如果有条件,提供一台全新的Server(仅仅只安装了一些系统的软件包),可以直接使用一键安装脚本(gitlab-install-el ...
- CentOS下一键安装Openstack
CentOS下一键安装Openstack 系统环境:Oracle VirtualBox 4.38CentOS-6.5-x86_64-bin-DVD1.iso 安装前需要修改 /etc/hosts文件, ...
随机推荐
- Linux 如何查看系统负载
Linux 如何查看系统负载 310 博客 / Linux/ 4个月前/ 534 / 0 操作系统的负载状态,反映了应用程序的资源使用情况,从中能找出应用程序优化的瓶颈所在. 系统平均负载, ...
- Lua中的元表(metatable)、元方法(metamethod)详解
在第一次看见这两样东西的时候,可能会觉得它很深奥,但其实很好理解,虽然实际上它可能真的很深奥.(小若:停!滚粗.) 1.知道为什么1 + 1 = 2吗? 为什么在Lua中,1+1会等于2呢?(小若:难 ...
- linux中getopt的用法-(转自pengyingh)
getopt被用来解析命令行选项参数.就不用自己写东东处理argv了. #include <unistd.h> extern char *optarg; //选项的参数指针 ...
- java_[类加载器]
Class 与 类加载 Class对象由JVM自动产生,每当一个类被加载时,JVM就自动为其生成一个Class对象,通过Class对象可以获得类的相关信息. 将类信息读到内存中过程,称为类加载 Jav ...
- Python小白的数学建模课-05.0-1规划
0-1 规划不仅是数模竞赛中的常见题型,也具有重要的现实意义. 双十一促销中网购平台要求二选一,就是互斥的决策问题,可以用 0-1规划建模. 小白学习 0-1 规划,首先要学会识别 0-1规划,学习将 ...
- Nginx 配置实例-配置高可用
Nginx 配置实例-配置高可用 1. 实现效果 2. 两台机器 nginx 的安装 2.1 192.168.25.120 中 nginx 的安装 2.1.1 安装 pcre 依赖 2.1.2 安装其 ...
- 如何在框架外部自定义C++ OP
如何在框架外部自定义C++ OP 通常,如果PaddlePaddle的Operator(OP)库中没有所需要的操作,建议先尝试使用已有的OP组合,如果无法组合出您需要的操作,可以尝试使用paddle. ...
- CVPR 2020目标跟踪多篇开源论文(上)
CVPR 2020目标跟踪多篇开源论文(上) 1. SiamBAN:面向目标跟踪的Siamese Box自适应网络 作者团队:华侨大学&中科院&哈工大&鹏城实验室&厦门 ...
- MinkowskiNonlinearities非线性
MinkowskiNonlinearities非线性 MinkowskiReLU class MinkowskiEngine.MinkowskiReLU(*args, **kwargs) __init ...
- C++标准模板库(STL)——vector常见用法详解
vector的定义 vector<typename> name; 相当于定义了一个一维数组name[SIZE],只不过其长度可以根据需要进行变化,比较节省空间,通俗来讲,vector就是& ...