gitlab搭建與使用
gitlab 安裝使用
公司搬家,重新搭建程式碼庫,決定使用gitlab。其實很簡單,但是自己搞了好幾天,於是把過程記錄下來,大家一起交流學習,如有不足之處,歡迎指正。
GitLab 是一個用於倉庫管理系統的開源專案。使用Git作為程式碼管理工具,並在此基礎上搭建起來的web服務,它整合了Github的視覺化功能,方便開發人員協同工作。
進入主題:
首先準備好Linux作業系統
下載gitlab 下載地址:https://bitnami.com/stack/gitlab/installer
下載過程較慢,可以做點其他的準備活動。
安裝Git
軟體版本:git-2.3.1.tar.gz
下載地址:https://www.kernel.org/pub/software/scm/git/
編譯Git版本:
首先安裝依賴(以下都是在root目錄下完成): 編譯時如果作業系統沒有安裝gcc,使用yum –y install gcc*
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
tar -zxvf git-2.3.1.tar.gz
cd git-2.3.1
make prefix=/usr/local all
make prefix=/usr/local install
安裝Gitlab
下載完成後,我們開始安裝流程,命令如下:
chmod u+x bitnami-gitlab-8.7.5-0-linux-x64-installer.run
下面列出安裝流程:
Welcome to the Bitnami Gitlab Stack Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
PhpPgAdmin [Y/n] :
GitLab : Y (Cannot be edited)
Is the selection above correct? [Y/n]:
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install Bitnami Gitlab Stack
Select a folder [/opt/gitlab-8.7.5-0]:
----------------------------------------------------------------------------
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [user@example.com]: wangxiaodai@**.com
Login [user]: xiaodai
Password :
Please confirm your password :
----------------------------------------------------------------------------
Web Server Port
Please enter the port that the bundled Apache Server will listen to by default.
Apache Web Server Port [80]:
Warning: Unable to bind to the given port number. This port is already in use by
the "httpd" process. You can stop the running process or select a different
port.
Press [Enter] to continue:81
----------------------------------------------------------------------------
Web Server Port
Please enter the port that the bundled Apache Server will listen to by default.
Apache Web Server Port [80]:
Warning: Unable to bind to the given port number. This port is already in use by
the "httpd" process. You can stop the running process or select a different
port.
Press [Enter] to continue:82
----------------------------------------------------------------------------
Web Server Port
Please enter the port that the bundled Apache Server will listen to by default.
Apache Web Server Port [80]: 82
----------------------------------------------------------------------------
Web Server Port
Please enter the port that the bundled Apache Server will use for SSL access.
SSL Port [443]: 999
----------------------------------------------------------------------------
Hostname that will be used to create internal URLs. If this value is incorrect,
you may be unable to access your Gitlab installation from other computers. It is
advisable to use a Domain instead of an IP address for compatibility with
different browsers.
Domain [0.0.4.18]: 10.10.10.42
Do you want to configure mail support? [y/N]: n
----------------------------------------------------------------------------
Setup is now ready to begin installing Bitnami Gitlab Stack on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs Bitnami Gitlab Stack on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing Bitnami Gitlab Stack on your computer.
Info: To access the Bitnami Gitlab Stack, go to
http://10.10.10.42:82 from your browser.
Press [Enter] to continue:
安裝完畢!
systemctl stop firewalld.service #停止firewall
訪問瀏覽器地址即可開啟gitlab.
相關文章
- 使用docker快速搭建gitlab私服DockerGitlab
- 使用docker搭建gitlab環境DockerGitlab
- git倉庫之gitlab搭建使用Gitlab
- 基於Docker快速搭建Gitlab與Gitlab CI/CD服務DockerGitlab
- Gitlab搭建Gitlab
- 使用 Docker 和 Traefik 搭建 GitLab(後篇)DockerGitlab
- 使用 Docker 和 Traefik 搭建 GitLab (前篇)DockerGitlab
- CentOS 搭建 GitLabCentOSGitlab
- docker gitlab搭建DockerGitlab
- Docker 搭建gitlabDockerGitlab
- git伺服器gitlab之搭建和使用伺服器Gitlab
- 搭建 GitLab 並漢化Gitlab
- docker搭建gitlab、RedmineDockerGitlab
- 極狐gitlab 搭建Gitlab
- centos8搭建 gitlabCentOSGitlab
- Ubuntu 搭建 GitLab 筆記UbuntuGitlab筆記
- Ubuntu下Gitlab的搭建UbuntuGitlab
- gitlab私有倉庫搭建Gitlab
- Gitlab搭建安裝及使用中遇到的問題。Gitlab
- [gitlab]搭建私有github倉庫GitlabGithub
- gitlab 服務搭建小記Gitlab
- gitlab使用Gitlab
- 使用docker安裝gitlab以及gitlab簡單使用DockerGitlab
- bitnami gitlab 使用 gitlab-rails 命令GitlabAI
- 基於ECS搭建GitLab服務Gitlab
- Dobbo的搭建與使用
- Gitlab管理之十八–使用Gitlab system hooksGitlabHook
- docker-compose搭建gitlab服務DockerGitlab
- 搭建 GitLab 伺服器 ( CTO 必會)Gitlab伺服器
- Jenkins的搭建與使用Jenkins
- linux搭建harbor與使用Linux
- 利用 Docker 快速搭建 git 倉庫 Gitlab 與程式碼審閱 Gerrit 平臺DockerGitlab
- jenkins與gitlab整合JenkinsGitlab
- Gitlab CI 與 DevOpsGitlabdev
- 通過 docker 搭建自用的 gitlab 服務DockerGitlab
- 使用docker搭建gitlab以及ci平臺,完整版本(使用springboot專案演示)DockerGitlabSpring Boot
- linux使用gitlab-runner,並註冊gitLabLinuxGitlab
- Linux centos7上gitlab伺服器的搭建,本地配置和使用LinuxCentOSGitlab伺服器