一、CentOS 7安装部署GitLab服务器
2023-09-11 14:19:04 时间
一、CentOS 7安装部署GitLab服务器
1、安装依赖软件
yum -y install policycoreutils policycoreutils-python openssh-server openssh-clients postfix
2、设置postfix开机自启,并启动,postfix支持gitlab发信功能(可选操作安装支持发信功能)
systemctl enable postfix && systemctl start postfix
如果报错:
Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details.
这是因为防火墙或者配置文件导致,无法启动的邮件服务!!
1、首先关闭防火墙!
#systemctl stop firewalld && systemctl mask firewalld
2、修改main.cf配置文件设置
#cat /etc/postfix/main.cf //查看main.cf配置文件设置 #vim /etc/postfix/main.cf //更改
更改:
inet_protocols = ipv4 inet_interfaces = all
3、下载gitlab安装包,然后安装
centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
我的是centos7,所以我在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7中找了个gitlab8.0.0版本,建议下载一个比较新的版本,我这里选了一个比较旧的版本仅仅是实验记录。
下载rpm包并安装: wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
4、修改gitlab配置文件指定服务器ip和自定义端口
vim /etc/gitlab/gitlab.rb
如图:
5、重置并启动GitLab
执行以下命令 gitlab-ctl reconfigure gitlab-ctl restart
如图:
6、访问
访问IP:9090
root
5iveL!fe
如图:
登录进入:
注意:必须更改密码,否则,点击菜单会一直在更改密码页面内。
六、
二、设置邮箱
1、开启QQ邮箱的SMTP服务(打开第一个SMTP服务即可如图)
经过此链接邮箱发送无效,报错(8.0.0版本过低)
Xshell 更好的 FinalShell
相关文章
- CentOS 6.3下rsync服务器的安装与配置
- yum命令安装软件时,出现--centos 7 安装apache 出现 Could not resolve host: mirrorlist.centos.org; 未知的错误"--CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决
- CentOS 6.8 安装 Erlang 及 RabbitMQ Server
- zeromq学习笔记1——centos下安装 zeromq-4.1.2
- CentOS报错:Could not retrieve mirrorlist http://mirrorlist.centos.org
- CentOS 7.6安装桌面
- linux(centos8):安装分布式事务服务seata(file单机模式,seata 1.3.0/centos 8.2)
- CentOS 7 安装GitLab
- centos安装ssdb
- CentOS安装JDK
- RHELCentOS 7 下 MySQL 连接数被限制为214个
- Centos 安装Mongo DB
- CentOS搭建Nginx+Subversion环境(包括多个版本库的配置)
- centos安装ssdb
- centos 7 yum安装mysql完整过程记录
- Centos登录日志 last和lastb命令整理
- CentOS 6.8 安装 Samba 服务器
- 如何在windows上安装centos单系统,以及安装事项和 centOS Linux和centOS Stream区别
- centos 7下使用docker安装nextcloud
- centos 6.5下安装mysql
- Linux系统之Centos安装epel源
- CentOS 7 virt-install 命令行方式(非图形界面)安装KVM虚拟机
- 服务器配置 centos一行命令安装python 3.6.8
- Linux基础笔记2 | VMware 安装 centos 7
- Centos自动汇报错误工具(ABRT)
- Centos 7.5 如何安装VMware Tools工具
- CentOS 7 安装 Gitlab
- CentOS 7 下 静默方式安装 Oracle 11g