本文介绍在 Ubuntu 18.04.2 系统下安装 Gitlab 的方法和步骤。
-
下载 gitlab-ce 本地安装包(本文使用
gitlab-ce_14.5.0-ce.0_amd64.deb
) -
上传到 Ubuntu 系统中,使用
dpkg
命令安装
root@...:/opt# dpkg -i gitlab-ce_14.5.0-ce.0_amd64.deb
Selecting previously unselected package gitlab-ce.
(Reading database ... 91294 files and directories currently installed.)
Preparing to unpack gitlab-ce_14.5.0-ce.0_amd64.deb ...
Unpacking gitlab-ce (14.5.0-ce.0) ...
Setting up gitlab-ce (14.5.0-ce.0) ...
It looks like GitLab has not been configured yet; skipping the upgrade script.
*. *.
*** ***
***** *****
.****** *******
******** ********
,,,,,,,,,***********,,,,,,,,,
,,,,,,,,,,,*********,,,,,,,,,,,
.,,,,,,,,,,,*******,,,,,,,,,,,,
,,,,,,,,,*****,,,,,,,,,.
,,,,,,,****,,,,,,
.,,,***,,,,
,*,.
_______ __ __ __
/ ____(_) /_/ / ____ _/ /_
/ / __/ / __/ / / __ `/ __ \
/ /_/ / / /_/ /___/ /_/ / /_/ /
\____/_/\__/_____/\__,_/_.___/
Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
Help us improve the installation experience, let us know how we did with a 1 minute survey:
https://gitlab.fra1.qualtrics.com/jfe/form/SV_6kVqZANThUQ1bZb?installation=omnibus&release=14-5
-
执行配置命令
sudo gitlab-ctl reconfigure
-
启动
sudo gitlab-ctl start
-
浏览器访问
http://IP
,用户名root
,初始密码记录在/etc/gitlab/initial_root_password
文件中
网友评论