Gitlab私服搭建
Ps:由于是内网使用不存在邮件派发,不配置邮件,且无需异步服务器代理转发
直接过程:
1、下载bitnami-gitlab-8.9.6-0-linux-x64-installer.run(版本自选)
2、安装:
YDCK-WXCAPP1:/soft # ./bitnami-gitlab-8.9.6-0-linux-x64-installer.run
The installer detects that exists a ‘git‘ user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [y/N]: Y
The installer detects that exists a ‘gitlab_ci‘ user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [y/N]: Y^Hy
The installer detects that exists a ‘gitlab_ci‘ user in the system. This installer will change the configuration for this user. Do you want to continue the installation? [y/N]: y
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.9.6-0]:
Warning: The selected folder is not empty. Please select a different folder
Press [Enter] to continue:/home/gitlab
Installation folder
Please, choose a folder to install Bitnami Gitlab Stack
Select a folder [/opt/gitlab-8.9.6-0]:
Create Admin account
Bitnami Gitlab Stack admin user creation
Email Address [[email protected]]: [email protected]
Login [user]: master
Password :
Please confirm your password :
Database Server Parameters
Please enter the port of your database.
Database Server port [5432]: 3306
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 [10.10.1.223]:
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 []: 25
SMTP Port [587]: 25
Secure connection
[1] None
[2] SSL
[3] TLS
Please choose an option [3] : 3
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.1.223:80 from your browser.
Press [Enter] to continue:
3、启动Gitlab服务
YDCK-WXCAPP1:/soft # /opt/gitlab-8.9.6-0/ctlscript.sh restart
Syntax OK
/opt/gitlab-8.9.6-0/apache2/scripts/ctl.sh : httpd stopped
/opt/gitlab-8.9.6-0/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq stopped
/opt/gitlab-8.9.6-0/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse stopped
/opt/gitlab-8.9.6-0/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci stopped
/opt/gitlab-8.9.6-0/redis/scripts/ctl.sh : redis stopped
/opt/gitlab-8.9.6-0/postgresql/scripts/ctl.sh : postgresql could not be stopped. Trying to perform a "fast" shutdown.
/opt/gitlab-8.9.6-0/postgresql/scripts/ctl.sh : postgresql could not be stopped.
/opt/gitlab-8.9.6-0/postgresql/scripts/ctl.sh : postgresql (pid 19028) already running
/opt/gitlab-8.9.6-0/redis/scripts/ctl.sh : redis started at port 6379
/opt/gitlab-8.9.6-0/apps/gitlab/scripts/sidekiq.sh : gitlab_sidekiq started
/opt/gitlab-8.9.6-0/apps/gitlab-workhorse/scripts/ctl.sh : gitlab-workhorse started
/opt/gitlab-8.9.6-0/apps/gitlabci/gitlabci-multirunner/scripts/ctl.sh : gitlabci_multirunner started
Syntax OK
/opt/gitlab-8.9.6-0/apache2/scripts/ctl.sh : httpd started at port 80
出现如下即可成功:
原文地址:http://blog.51cto.com/11612019/2156423