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差不多

相关推荐
Madison-No72 小时前
搭建项目测试环境
linux·运维·服务器·python
悠悠121384 小时前
微服务通信别只看性能:REST 与 gRPC 的 6 个选型判断和一次 502 故障复盘
运维·服务器
云老大-阿里云国际站代理商5 小时前
华为云国际站服务代理商:NAT网关怎么配?多台ECS共用公网IP要注意什么
服务器·华为云·云计算
玄芯散人7 小时前
【筑基·058】Git协作工作流:冲突解决和PR流程
git·版本控制·团队协作
浅念-8 小时前
Redis基础详解:单线程模型、String与Hash数据结构
服务器·数据库·redis·sql·mysql·nosql数据库·nosql
Shadow(⊙o⊙)8 小时前
Linux进阶知识1.0
linux·运维·服务器
剑指offer.9 小时前
ARM裸机开发-点亮LED灯
linux·服务器·嵌入式硬件
Wang's Blog10 小时前
Java 接入Redis: 使用Jedis操作Redis
java·服务器·redis
Ivanqhz10 小时前
数据搬运是性能关键
java·服务器·网络·人工智能·深度学习
其实防守也摸鱼10 小时前
常见安全架构中 Shiro 的认证确认机制解析
运维·服务器·数据库·windows·github