gitlab云服务器配置

目录

1、关闭防火墙

2、安装gitlab

3、修改配置

4、查看版本

GitLab终端常用命令

5、访问

1、关闭防火墙

firewall-cmd --state 检查防火墙状态

systemctl stop firewalld.service 停止防火墙

2、安装gitlab

xftp中导入安装包

root@gitlab \~\]#mkdir -p /service/tools \[root@gitlab \~\]# cd/service/tools/ \[root@gitlabtools\]# yum localinstall -y gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm #安装下载好的rpm包 或者\[root@gitlab \~\]# rpm -ivh [https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm](https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm "https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm") #执行rpm -ivh 在线安装 安装成功 ![](https://i-blog.csdnimg.cn/direct/d415f60472534a3cab8deb7726a9ae32.png) #### 3、修改配置 vim /etc/gitlab/gitlab.rb修改配置为自己的ip unicorn\['port'\]=8101 ![](https://i-blog.csdnimg.cn/direct/2cf7236de860400da9c83ced5227203f.png) \[root@gitlabtools\]# gitlab-ctl reconfigure #重新加载配置 #### 4、查看版本 \[root@gitlab tools\]# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 10.8.4 #查看版本 或 \[root@gitlab tools\]# rpm -qa gitlab-ce gitlab-ce-10.8.4-ce.0.el7.x86_64 #查看版本 ![](https://i-blog.csdnimg.cn/direct/684b255884e441829744d0c52b1ca444.png) #### GitLab终端常用命令 gitlab-ctl start #启动所有 gitlab 组件; gitlab-ctl stop #停止所有 gitlab 组件; gitlab-ctl restart #重启所有 gitlab 组件; gitlab-ctl status #查看服务状态; gitlab-ctl reconfigure #启动服务; vim /etc/gitlab/gitlab.rb #修改默认的配置文件; gitlab-rake gitlab:check SANITIZE=true --trace #检查gitlab; gitlab-ctl tail #查看日志; #### 5、访问 第一次进入需要输入服务器的端口号加上反斜杠 设置初始密码 ![](https://i-blog.csdnimg.cn/direct/eb35221d056e4cf4bdc4f87d20313f60.png) 进行登录 默认用户名为root ![](https://i-blog.csdnimg.cn/direct/aef79002414f4515a8eb695157112bb5.png) 登录成功后就可以使用gitlab,使用方法与git差不多 ![](https://i-blog.csdnimg.cn/direct/dca017bf7788444eaf46817718dbc30f.png)

相关推荐
z202305083 分钟前
RDMA之RoCEv2 无损网络PFC 、DCQCN 和ECN (7)
linux·服务器·网络·人工智能·ai
不吃土豆的马铃薯6 分钟前
Spdlog 入门:日志记录器与日志槽基础详解
服务器·开发语言·c++·c·日志·spdlog
我星期八休息15 分钟前
Linux系统编程—库制作与原理
linux·运维·服务器·数据结构·人工智能·python·散列表
William.csj18 分钟前
服务器——交互式 NVIDIA GPU 监控工具
运维·服务器
Elastic 中国社区官方博客32 分钟前
Elasticsearch 下采样方法:最后值采样 vs. 聚合采样
大数据·运维·elasticsearch·搜索引擎·全文检索
DogDaoDao32 分钟前
Windows 下 Git 报错:`touch` 无法识别 —— 原因分析与 7 种解决方案(从入门到精通)
windows·git·程序员·npm·powershell·cmd·touch
大明者省40 分钟前
Ubuntu22.04 宝塔面板与 XFCE 远程桌面端口兼容性分析
运维·服务器·数据库·笔记
Harm灬小海1 小时前
【云计算学习之路】学习Centos7系统-Linux软件包管理
linux·运维·服务器·学习·云计算·yum·rpm
189228048611 小时前
NY379固态MT29F32T08GSLBHL8-36QA:B
大数据·服务器·人工智能·科技·缓存
caicai_xiaobai1 小时前
Ubuntu上Git安装步骤
linux·git·ubuntu