#新建git用户 # useradd git #关闭防火墙 # systemctl stop firewalld # systemctl disable firewalld #安装依赖库 # yum install curl openssh
#新建git用户
# useradd git
#关闭防火墙
# systemctl stop firewalld
# systemctl disable firewalld
#安装依赖库
# yum install curl openssh-server postfix cronie -y
# service postfix start
# chkconfig postfix on
#配置yum源
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpGCheck=0
enabled=1
创建元数据缓存
# yum makecache
#一定要安装匹配版本(gitlab-ce 14.3.3)
yum install gitlab-ce-14.3.3
安装完成编辑 /etc/gitlab/gitlab.rb,设置external_url
# vim /etc/gitlab/gitlab.rb
修改前:
修改后:
external_url ‘服务器ip’
也可以external_url ‘localhost’
重新加载Gitlab配置,并启动Gitlab
#sudo gitlab-ctl reconfigure
查询ip地址
#ip addr
浏览器访问Gitlab
格式:ip地址
来源地址:https://blog.csdn.net/LCH_0704/article/details/125794956
--结束END--
本文标题: linux安装Gitlab和启动方法
本文链接: https://www.lsjlt.com/news/394818.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0