centos8安装gitlab
1,安装依赖
yum install -y curl policycoreutils-python openssh-server
centos8没有policycoreutils-python yum源,不用管
2,启动ssh并设置为开机自启动
systemctl enable sshd
systemctl start sshd
3,添加http服务到firewalld,pemmanent表示永久生效,若不加--permanent系统下次启动后就会失效
systemctl start firewalld
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
4,启动postfix
systemctl enable postfix
systemctl start postfix
5,下载gitlab
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el8/gitlab-ce-12.10.1-ce.0.el8.x86_64.rpm
6,安装
rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
成功如图:
7,编辑ip和端口
vim /etc/gitlab/gitlab.rb
gitlab-ctl reconfigure
gitlab-ctl restart
8,访问gitlab ip+端口
如果输入端口和ip一直无法响应,可以关闭防火墙
systemctl stop firewalld
如果访问502,查看
https://www.cnblogs.com/stronger-xsw/p/12804002.html
重新配置并启动
gitlab-ctl reconfigure
gitlab-ctl restart
开启:
gitlab-ctl start
关闭:
gitlab-ctl stop
9,成功如图:
10,第一次登录需要修改root密码, 密码8位以上,修改完就可以登录
使用设置的新密码,登录
其他操作类似添加账号,仓库等等自己百度
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· .NET10 - 预览版1新功能体验(一)