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 #执行rpm -ivh 在线安装

安装成功

3、修改配置

vim /etc/gitlab/gitlab.rb修改配置为自己的ip

unicorn'port'=8101

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 #查看版本

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、访问

第一次进入需要输入服务器的端口号加上反斜杠

设置初始密码

进行登录

默认用户名为root

登录成功后就可以使用gitlab,使用方法与git差不多

相关推荐
zzqssliu10 小时前
煤炉自动代拍系统的队列设计与超时控制机制
git·github
一支绝命钩10 小时前
FPGA工程Git常用操作手册
git
吳所畏惧14 小时前
宝塔面板Redis密码修改指南:SSH命令修改 vs 面板UI界面修改,哪个更靠谱?
运维·服务器·数据库·redis·缓存·ssh
DFT计算杂谈14 小时前
无 Root 权限在 Tesla K80 零门槛部署 DeepSeek 大模型
linux·服务器·网络·数据库·机器学习
不搞学术柒柒14 小时前
Git新功能完整开发提交流程
git
维天说15 小时前
CLI-Switch 2026年3月版历史设计:Hook、TTY 隔离与 JSON 状态
java·服务器·json
阿里云大数据AI技术15 小时前
阿里云 ES AI 引擎版:面向 Agent 场景,为亿级租户、千亿规模向量设计的搜索引擎
人工智能·elasticsearch·agent
Zhang~Ling15 小时前
从 fopen 到 struct file:从零开始拆解 Linux 文件 I/O
linux·运维·服务器
爱写代码的阿森15 小时前
鸿蒙三方库 | harmony-utils之PreferencesUtil首选项数据监听详解
服务器·华为·harmonyos·鸿蒙·huawei
爱写代码的森15 小时前
蒙三方库 | harmony-utils之FileUtil文件重命名与属性查询详解
linux·运维·服务器·华为·harmonyos·鸿蒙·huawei