安装一些依赖
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