ubuntu虚拟机14.04及版瓦工15.10 安装gitlap

本文介绍了如何在Ubuntu 14.04和15.10上安装GitLab Community Edition,包括安装依赖、配置postfix、设置管理员密码和修改访问端口等步骤。安装过程中可能出现一些提示,但不影响最终配置。安装完成后,可以通过localhost访问并使用root用户登录GitLab。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

安装一些依赖

sudo apt-get install curl openssh-server ca-certificates postfix

postfix 配置一路默认

Gitlab Community Edition 镜像使用帮助

sudo apt-get install gitlab-ce

结束之后出现以下信息:

gitlab: Thank you for installing GitLab!
gitlab: To configure and start GitLab, RUN THE FOLLOWING COMMAND:

sudo gitlab-ctl reconfigure

gitlab: GitLab should be reachable at http://whh-VirtualBox
gitlab: Otherwise configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
gitlab: And running reconfigure again.
gitlab: 
gitlab: For a comprehensive list of configuration options please see the Omnibus GitLab readme
gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
gitlab: 
It looks like GitLab has not been configured yet; skipping the upgrade script.

不用管 直接 Configure and start GitLab

sudo gitlab-ctl reconfigure

一大堆看不懂的信息结束之后

Running handlers:
Running handlers complete
Chef Client finished, 220/301 resources updated in 01 minutes 42 seconds
gitlab Reconfigured!

浏览器访问localhost,设置管理员密码,完成之后跳转到登陆页面使用root用户名登陆,OK了
ps:版瓦工的执行到install gitlab-ce 先不走下一步了,还要搭建php环境,研究下怎么更改访问端口什么的


修改端口

 sudo gedit /etc/gitlab/gitlab.rb

直接在网址后面加上端口即可
然后重启服务

sudo gitlab-ctl reconfigure
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值