下载安装包wget />
然后更改成执行权限:chmod a+x bitnami-gitlab-7.11.4-0-linux-x64-installer.run
再执行安装:./bitnami-gitlab-7.11.4-0-linux-x64-installer.run
按照提示安装输入Y/N安装:
-
[root@wb-2 ~]# ./bitnami-gitlab-7.11.4-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
-
-
----------------------------------------------------------------------------
-
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)
-
-
GitLab CI [Y/n] :Y
-
-
Is the selection above correct? [Y/n]: Y
-
-
----------------------------------------------------------------------------
-
Installation folder
-
-
Please, choose a folder to install Bitnami Gitlab Stack
-
-
Select a folder [/opt/gitlab-7.11.4-0]: /opt/bitnami
-
-
----------------------------------------------------------------------------
-
Create Admin account
-
-
Bitnami Gitlab Stack admin user creation
-
-
Email Address [user@example.com]: test@gmail.com
-
-
Login [user]: test
-
-
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]: test.gitlab.com
-
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://dev.domain.org:80 from your browser.
-
Press [Enter] to continue:
上面红色标志的按照自己喜好设置了,如安装路径、admin用户等。
到此,整个安装结束,设置好HOST后访问test.gitlab.com就可以正常使用了。
备份以及恢复的操作,以下操作使用root用户执行:
1、指定备份路径vi /opt/gitlab-6.4.3-1/apps/gitlab/htdocs/config/gitlab.yml,找到如下所示修改
-
## Backup settings
-
backup:
-
path: "/tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
2、执行备份
-
cd /opt/gitlab-7.11.4-0/
-
./use_gitlab
-
cd /opt/gitlab-7.11.4-0/apps/gitlab/htdocs
-
bundle exec bin/rake gitlab:backup:create RAILS_ENV=production
操作执行完毕,会在/tmp/backups/目录下生产一个备份文件,类似1438917368_gitlab_backup.tar
3、恢复备份的数据
-
cd /opt/gitlab-7.11.4-0/
-
./use_gitlab
-
cd /opt/gitlab-7.11.4-0/apps/gitlab/htdocs
-
bundle exec bin/rake gitlab:backup:restore RAILS_ENV=production
-
chown git:git -R /opt/gitlab-7.11.4-0/apps/gitlab/repositories
如果备份的目录下不止一个备份文件,则RAILS_ENV=production后面需要指定备份文件 BACKUP=xxx。
至此备份恢复完毕。
阅读(8119) | 评论(1) | 转发(0) |