CentOS安装gitLab社区版

以下以CentOS 6 为例

在安装好的虚拟机上安装CentOS 6 的 linux 操作系统,安装时可以安装 GUI ,开启虚拟机上的操作系统之后通过直接打开终端进入命令行模式下,对系统进行操作(一般初学者会使用),或者在你的计算机上安装 XShell 安全终端模拟软件,在 windows 界面下来访问 Linux 系统下的服务器,达到远程控制终端的目的

参考:安装 gitLab 的官方网址

1、选择两种方式的任意一种进入

linux下开启终端的四种方法
①ctrl+alt+F1~F6之间使用,这是纯终端使用(Ctrl+Alt+F7,回到图形化界面)
②在linux桌面环境下,鼠标点击程序菜单,找到一般为实用程序或者系统工具类的菜单中找到终端程序
③在开机时候esc键,根据linux版本不同,进入方式也不同,这一般为系统出现故障才使用的终端模式
④可以使用类似SSH类型的软件,远程登录终端,这属于网络版终端,使用终端服务器软件,远程开启终端,这需要配置终端服务器

2、 CentOS 上安装gitLab

① Install and configure the necessary dependencies

sudo yum install curl openssh-server openssh-clients postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh

root 权限不需要 sudo

② Add the GitLab package server and install the package

在线下载安装

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce

下载好的直接安装

curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/6/gitlab-ce-XXX.rpm/download
rpm -i gitlab-ce-XXX.rpm

③ Configure and start GitLab

sudo gitlab-ctl reconfigure

④Browse to the hostname and login

On your first visit, you'll be redirected to a password reset screen to provide the password for the initial administrator account. Enter your desired password and you'll be redirected back to the login screen.
The default account's username is root. Provide the password you created earlier and login. After login you can change the username if you wish.
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值