文档章节

快速搭建GITLAB

年少爱追梦
 年少爱追梦
发布于 2016/09/21 19:22
字数 1807
阅读 90
收藏 0

有一个好东西:https://bitnami.com/搞得懂得朋友可以整一波,真的很方便

第一步:

下载一键安装的软件:https://bitnami.com/stack/gitlab

第二步:

上传给linux环境,mac下面参考https://my.oschina.net/QAAQ/blog/749659文章

第三步:

给上传的文件赋予可执行的权限 chmod x+u xxx.run

第四步:

根据提示一步一步输入到正确的结果,比较简单,建议不要使用邮箱验证,可能没有gmail的使用。

注意一个比较关键的地方,设置url的时候,如果想要局域网内部都能访问,千万不要使用127.0.0.1的地址。

第五步:

注意关闭防火墙,这样才可以解决外网访问的问题,或者是配置路由规则。

 

装好过后的东西:需要阅读的东西

1. OVERVIEW

The Bitnami Project was created to help spread the adoption of freely
available, high quality, open source web applications. Bitnami aims to make
it easier than ever to discover, download and install open source software
such as document and content management systems, wikis and blogging
software.

You can learn more about Bitnami at https://bitnami.com

GitLab allows you to keep your code secure on your own server, manage
repositories, users and access permissions, communicate through issues,
line-commens, wiki pages and perform code reviw with merge requests. It is
powered by Ruby on Rails and completely free and open source (MIT license).

You can learn more about GitLab at http://gitlab.org

The Bitnami GitLab Stack is an installer that greatly simplifies the
installation of GitLab and runtime dependencies. It includes ready-to-run
versions of Apache, PostgreSQL and Ruby On Rails. GitLab Stack is distributed 
for free under the Apache 2.0 license. Please see the appendix for the specific
licenses of all open source components included.

You can learn more about Bitnami Stacks at https://bitnami.com/stacks/

2. FEATURES

- Easy to Install

Bitnami Stacks are built with one goal in mind: to make it as easy as
possible to install open source software. Our installers completely automate
the process of installing and configuring all of the software included in
each Stack, so you can have everything up and running in just a few clicks.

- Independent

Bitnami Stacks are completely self-contained, and therefore do not interfere
with any software already installed on your system. For example, you can
upgrade your system's PostgreSQL or Apache without fear of 'breaking' your
Bitnami Stack.

- Integrated

By the time you click the 'finish' button on the installer, the whole stack
will be integrated, configured and ready to go. 

- Relocatable

Bitnami Stacks can be installed in any directory. This allows you to have
multiple instances of the same stack, without them interfering with each other. 

3. COMPONENTS

Bitnami GitLab Stack ships with the following software versions:

  - GitLab 8.9.6
  - Apache 2.4.23
  - ImageMagick 6.7.5
  - PostgreSQL 9.5.3
  - Git 2.7.4
  - Ruby 2.1.9
  - Rails 4.2.5.1
  - RubyGems 1.8.12

4. REQUIREMENTS

To install Bitnami GitLab Stack you will need:

    - Intel x86 or compatible processor
    - Minimum of 2048 MB RAM 
    - Minimum of 150 MB hard drive space
    - TCP/IP protocol support
    - Compatible operantig systems:
      - An x86 Linux operating system.

5. INSTALLATION

The Bitnami GitLab Stack is distributed as a binary executable installer.
It can be downloaded from:

https://bitnami.com/stacks/

The downloaded file will be named something similar to:

bitnami-gitlab-8.9.6-0-linux-installer.run on Linux or
bitnami-gitlab-8.9.6-0-linux-x64-installer.run on Linux 64 bit.

On Linux, you will need to give it executable permissions:

chmod 755 bitnami-gitlab-8.9.6-0-linux.run

To begin the installation process, double-click on that file, and you will
be greeted by the 'Welcome' screen. Pressing 'Next' will take you to the
Component Selection screen.

The next screen is the Installation Folder, where you can select where Bitnami 
stack will be installed. If the destination directory does not exist, it will 
be created as part of the installation. 

The next screen will prompt you for data necessary to create the initial
admin user: 

Username and password: You will use this information to log-in into the
administrative interface. The password you provide here will also be used to
protect other parts of the installation. Please see the section named
"Usernames and Passwords" later in this document.

Email address: Your email address.

The next screen will vary, depending on whether the ports needed by the
bundled Apache and PostgreSQL are already taken. The default listening port for
Apache is 80 and for PostgreSQL is 5432. If those ports are already in use by 
other applications, you will be prompted for alternate ports to use.

The next screen will allow you to configure the final details of your
GitLab installation:

Hostname: The hostname for your blog, such as www.example.com. This
information will be used by GitLab when creating certain links. You can
use an IP address but there were login issues using different browsers. It
is advisable to use a fully qualified domain name.

Once the information has been entered, the installation will proceed to copy
the files to the target installation directory and configure the different
components. One this process has  been completed, you will see the
'Installation Finished' page. You can choose to launch Bitnami GitLab
Stack at this point. If you do so, your default web browser will open and
display the Welcome page for the Bitnami GitLab Stack. 

If you received an error message during installation, please refer to
the Troubleshooting section.

The rest of this guide assumes that you installed Bitnami GitLab
Stack in /home/user/gitlab-8.9.6-0 on Linux.

6. STARTING AND STOPPING BITNAMI GITLAB STACK

To start/stop/restart application on Linux you can use the included ctlscript.sh
utility, as shown below:

       ./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)


That will start Apache service. Once started, you can open your
browser and access the following URL on Linux:

http://127.0.0.1:80/

If you are accessing the machine remotely, you will need to replace
127.0.0.1 with the appropriate IP address or hostname.

7. DIRECTORY STRUCTURE

The installation process will create several subfolders under the main
installation directory:

	apache2/: Apache Web server.
	ruby/: Ruby language.
	redis/: Redis server.
	postgresql/: PostgreSQL Database.
	apps/
	  gitlab/: GitLab application folder
	    conf/: GitLab Apache configuration files
	    htdocs/: GitLab application files

8. DEFAULT USERNAMES AND PASSWORDS

The GitLab administrative user and password are the ones you set at
installation time. 

PostgreSQL admin user is called 'postgres', and its password is the same as the
GitLab administrative user password.

The default PostresSQL non-root account used to access the database is named
bitnami, and its password is randomly generated during installation. 

9. TROUBLESHOOTING

This version of the Bitnami GitLab stack is a preview version, and as
such, may contain a number of bugs and be a little bit rough around the
edges. We are working on the next release, which will contain several
improvements along with expanded documentation. In addition to the resources
provided below, we encourage you to post your questions and suggestions at:

https://community.bitnami.com/

We also encourage you to sign up for our newsletter, which we'll use to
announce new releases and new stacks. To do so, just register at:
https://bitnami.com/newsletter.  

9.1 Installer

# Installer Payload Error 

If you get the following error while trying to run the installer from the
command line:

"Installer payload initialization failed. This is likely due to an
incomplete or corrupt downloaded file" 

The installer binary is not complete, likely because the file was
not downloaded correctly. You will need to download the file and
repeat the installation process. 

9.2 Apache

If you find any problem starting Apache, the first place you should check is
the Apache error log file:

/home/user/gitlab-8.9.6-0/apache2/logs/error.log on Linux or
/Applications/gitlab-8.9.6-0/apache2/logs/error.log.


10. LICENSES

GitLab is distributed under the MIT License,
which is located at
https://github.com/gitlabhq/gitlabhq/blob/master/LICENSE

Redis is distributed under the terms of the three clause BSD license,
wich is located at 
http://redis.io/topics/license

Apache Web Server is distributed under the Apache License v2.0, which
is located at http://www.apache.org/licenses/LICENSE-2.0

PostgreSQL is distributed under the GNU General Public License v2, which is
located at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Ruby is released under the Ruby License and GPL, wich is located at
http://www.ruby-lang.org/en/LICENSE.txt

Rails is released under the MIT license, which is located 
http://www.opensource.org/licenses/mit-license.php

Subversion is released under Subversion License / released under the 
terms of the Apache License, which is located at
http://subversion.tigris.org/license-1.html

RubyGems is released under the Ruby License, which is located at
http://www.ruby-lang.org/en/LICENSE.txt

Rake is released under the Ruby License, which is located at
http://www.ruby-lang.org/en/LICENSE.txt

Thin Web Server is released under the Ruby License, which 
is located at http://www.ruby-lang.org/en/LICENSE.txt

ImageMagick has its own license, which is located at
https://www.imagemagick.org/subversion/ImageMagick/trunk/LICENSE

Rmagick is released under the MIT license, which is located 
http://www.opensource.org/licenses/mit-license.php

Capistrano is released under the MIT/X Consortium License, whic is
located at http://dev.rubyonrails.org/browser/tools/capistrano/MIT-LICENSE?rev=5270

OpenSSL is released under the terms of the Apache License, which is
located at http://www.openssl.org/source/license.html

Ncurses is released under the MIT license, which is located at
http://www.opensource.org/licenses/mit-license.php

Readline is released under the GPL license, which is located at
http://www.gnu.org/copyleft/gpl.html

Zlib is released under the zlib License (a free software license/compatible 
with GPL), which is located at http://www.gzip.org/zlib/zlib_license.html

Libiconv is released under the LGPL license, which is located at
http://www.gnu.org/licenses/lgpl.html

Expat is released under the MIT license, which is located at
http://www.opensource.org/licenses/mit-license.php

Neon is released under the GNU General Public License, which is located at
http://www.gnu.org/copyleft/gpl.html

RedCloth is released under the BSD License, which is located at
http://www.opensource.org/licenses/bsd-license.php

ImageMagick has its own license, which is located at
https://www.imagemagick.org/subversion/ImageMagick/trunk/LICENSE

Rmagick is released under the MIT license, which is located 
http://www.opensource.org/licenses/mit-license.php

Freetype is released under The Freetype Project License, that is located at
http://freetype.sourceforge.net/FTL.TXT

© 著作权归作者所有

年少爱追梦
粉丝 35
博文 193
码字总数 120092
作品 0
杭州
程序员
私信 提问
使用Docker搭建GitLab实践

使用Docker搭建GitLab实践 SVN与GIT,二者皆须会 当前版本控制系统(Version Control System,VCS)有集中化版本版本控制系统(Centralized Version Control System,简称 CVCS)和分布式版本...

donhui
2015/07/27
2.8K
0
清华大学 TUNA 开源镜像站新增 GitLab-CE 镜像

由于众所周知的原因,GitLab 的安装包和源码在国内下载非常困难。为了让喜欢捣鼓或者公司开发需求有需要搭建自用的GitLab环境的朋友能快速的下载安装包和源码,特意向各大开源镜像站提了iss...

GitLab中文社区
2015/11/12
9K
138
Gitlab自动部署之二:安装GITLAB-RUNNER

前言 公司前端大佬因为某些原因离职了,走的比较匆忙,自己之前一直很少接触这方面的东西,一直都是一知半解。这两天我一边学,一边动手搭建,同时记录整个搭建过程。 这是一系列文章,从搭建...

大猹子
04/19
0
0
gitlab 的介绍与安装配置(一)

gitlab 的介绍与安装配置(一) 标签(空格分隔): 运维系列 一:Gitlab概述 二:GitLab和GitHub的区别 下载gitlab 最新版 https://packages.gitlab.com/gitlab/gitlab-ce/ service postfi...

flyfish225
2018/07/17
0
0
【工作效率】使用docker搭建gitlab以及ci平台,完整版本(使用springboot项目演示)

整体步骤概括 准备两台虚拟机,最小安装,配置ip能ping通外网即可,安装docker 一台虚拟机跑gitlab,一台跑gitlab runner和springboot项目 将springboot项目打成systemctl系统服务 编写gitla...

funbean
2018/09/20
0
0

没有更多内容

加载失败,请刷新页面

加载更多

js如何控制table中的某一行动态置顶

两行代码搞定: $('#'+item.roadCode).fadeOut().fadeIn();//获取到需要置顶的行 $(".table").prepend($('#'+item.roadCode)); 其中,fadeOut()方法 作用 --- 从可见到隐藏 如下: prepend(......

码妞
今天
4
0
四种解决Nginx出现403 forbidden 报错的方法

我是在在本地用虚拟机中通过yum安装nginx的,安装一切正常,但是访问时报403, 于是查看nginx日志,路径为/var/log/nginx/error.log。打开日志发现报错Permission denied,详细报错如下: 1....

dragon_tech
今天
3
0
获取RestResultResponse返回的值

Springboot项目,需要调其他服务的接口,返回值类型是RestResultResponse 打断点的结果集是这个 打印出来的getData(): [{id=3336b624-8474-4dd9-bd5b-c7358687c877, paraNo=104, para=Postpo...

栾小糖
今天
4
0
【小学】 生成10以内的加减法

#!/usr/bin/env python# coding: utf-8from random import randrange# 题目的最大数值R_MAX = 10# 生成的题目的数量R_PAGE = 70# 生成减法列表def get_sub_list():...

Tensor丨思悟
今天
11
0
JavaScript设计模式——适配器模式

  适配器模式是设计模式行为型模式中的一种模式;   定义:   适配器用来解决两个已有接口之间不匹配的问题,它并不需要考虑接口是如何实现,也不用考虑将来该如何修改;适配器不需要修...

有梦想的咸鱼前端
今天
3
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部