GitLab 是一個用於倉庫管理系統的開源項目。使用Git作爲代碼管理工具,並在此基礎上搭建起來的web服務。
(1) 下載一鍵安裝包
https://bitnami.com/stack/gitlab/bitnami-gitlab-8.1.4-1-linux-x64-installer.run
設置權限 chmod +x bitnami-gitlab-7.4.3-0-linux-installer.run
執行安裝
./bitnami-gitlab-7.4.3-0-linux-installer.run
(2)安裝軟件版本
Bitnami GitLab Stack ships with the following software versions: - GitLab 7.13.0 - Apache 2.4.16 - ImageMagick 6.7.5 - PostgreSQL 9.4.4 - Git 1.9.5 - Ruby 1.9.3-p551 - Rails 4.2.2 - RubyGems 1.8.12 |
(3)啓動
./ctlscript.sh (start|stop|restart) ./ctlscript.sh (start|stop|restart) postgres ./ctlscript.sh (start|stop|restart) redis ./ctlscript.sh (start|stop|restart) apache ./ctlscript.sh (start|stop|restart) sidekiq start - start the service(s) stop - stop the service(s) restart - restart or start the service(s) |
(4)logs日誌
/home/user/gitlab-7.13.0-0/apache2/logs/error.log on Linux or /Applications/gitlab-7.13.0-0/apache2/logs/error.log. |
(5)具體步驟
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] :y
GitLab : Y (Cannot be edited)
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation folder
Please, choose a folder to install Bitnami Gitlab Stack
Select a folder [/opt/gitlab-8.1.4-1]: /home/gitlab-8.1.4-1
----------------------------------------------------------------------------
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [[email protected]]: [email protected]
Login [user]: git
Password :
Please confirm your password :
----------------------------------------------------------------------------
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 [127.0.0.1]:
Do you want to configure mail support? [y/N]: y
----------------------------------------------------------------------------
Configure SMTP Settings
This is required so your application can send notifications via email.
Default email provider:
[1] GMail
[2] Custom
Please choose an option [1] : 2
----------------------------------------------------------------------------
Configure SMTP Settings
This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials.
Username []: [email protected]
Password :
Re-enter :
SMTP Host []: smtp.exmail.qq.com
SMTP Port [587]: 465
Secure connection
[1] None
[2] SSL
[3] TLS
Please choose an option [3] : 2
Warning: Passwords Do Not Match!
Press [Enter] to continue:
Warning: Please provide the SMTP configuration parameters
Press [Enter] to continue:
----------------------------------------------------------------------------
Configure SMTP Settings
This data is stored in the application configuration files and may be visible to
others. For this reason, it is recommended that you do not use your personal
account credentials.
Username [[email protected]]: [email protected]
Password :
Re-enter :
SMTP Host [smtp.exmail.qq.com]:
SMTP Port [465]:
Secure connection
[1] None
[2] SSL
[3] TLS
Please choose an option [2] :
----------------------------------------------------------------------------
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.