Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GitLab installation configuration notes     - Into the Java keyword instanceof (Programming)

- C ++ function object (Programming)

- Linux System Getting Started Tutorial: Using the Linux common commands (Linux)

- Do not find ifconfig eth0 and IP address under CentOS6.5 (Linux)

- View and modify Linux machine name (Linux)

- Linux common network tools: traceroute routing of scanned (Linux)

- Using 30 seconds to write a detailed analysis of garbage removal system (Linux)

- CentOS Linux build SVN server (Server)

- Zabbix monitoring Oracle Database use Orabbix plug (Enhanced Edition) (Database)

- Debian 8.1 (amd64) deployed Memcached (Server)

- LVM basic concepts, management (Linux)

- GitLab issued Merge Request return error 500 when the two solutions log (Linux)

- How to Install Linux kernel 4.0 on Ubuntu / CentOS (Linux)

- Vim plugin installation YouCompleteMe (Linux)

- JBPM6 Tutorial - taught you how to install JBPM (Linux)

- Binary tree traversal recursive and non-recursive (cyclic) traversal achieve (Programming)

- Cooling solutions Ubuntu system (Linux)

- The ActiveMQ JMS installation and application examples for Linux (Linux)

- RPM package management tools under Linux (Linux)

- Install apr support for Tomcat on Linux (Server)

  GitLab installation configuration notes
  Add Date : 2018-11-21      
  GitLab installation

GitLab two installation methods:

Compile and install

Advantages: highly customizable. Database can choose MySQL, you can choose PostgreSQL; server can choose Apache, you can choose Nginx.
Disadvantages: a source of instability overseas, when the wall, depending on the package difficult to download. Configuration process cumbersome, complex and prone to various problems. Dependency and more difficult to manage, uninstall GitLab relatively trouble.
By rpm packages installed

Advantages: The installation process is simple, fast installation. It uses rpm package installation, easy to manage package installations.
Disadvantages: The default database using PostgreSQL, the default server using Nginx, is not easy to customize.
As the company is equipped with only one Ali cloud server, and does not assign any domain. You need to run the software version control, bug management software, knowledge base and other sets of procedures, but to use the ip access on the server. Originally adopted GitLab + Apache + MySQL compile and install the way, and the GitLab configured to be accessible through xxx.xx.xxx.xx / gitlab form, since the bug management software (Zen) also run on Apache, two sets of software there are between mutually exclusive influence, can not find a solution. Meanwhile, GitLab registered mail verification required, since the configuration is available online domain-based, configure multiple Ali cloud will not work correctly.

Therefore, only to give way to compile and install, and take the form of rpm package reinstall.

Installation GitLab CE Omnibus package

In linux terminal, use the cat / etc / issue command to query the current system release, Ali cloud queries to the linux version installed is CentOS release 6.6 (Final).

Enter gitlab official website, select the appropriate operating system --CentOS 6 (and RedHat / Oracle / Scientific Linux 6), according to the official instructions to install:

Installation configuration necessary dependencies

In Centos 6 and 7, the following command will open HTTP and SSH can access the system firewall.

sudo yum install openssh-server

sudo yum install postfix

sudo yum install cronie

sudo service postfix start

sudo chkconfig postfix on

sudo lokkit -s http -s ssh

Download Omnibus package and install the package

curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm
sudo rpm -i gitlab-ce-7.10.0 ~ omnibus.2-1.x86_64.rpm
Note: Due to amazonaws server by a wall, you may need to download this package when you download over the wall.
Configuration and start GitLab
Open /etc/gitlab/gitlab.rb, will external_url = 'http://git.example.com' modify for your own IP address: http: //xxx.xx.xxx.xx ,, then execute the following command, for GitLab compile.

sudo gitlab-ctl reconfigure
Login GitLab

Username: root
Password: 5iveL fe!
The default configuration GitLab letter mailbox

GitLab use postfix mail sent. Thus, you can uninstall the system comes with sendmail.
Use yum list installed to check whether the sendmail system, if present, use the yum remove sendmail command to uninstall.
Tests whether the system can send messages to normal.

echo "Test mail from postfix" | mail -s "Test Postfix" xxx@xxx.com
NOTE: The above xxx@xxx.com you want to receive e-mail e-mail address.
When the system receives mail sent to e-mail, copy down the address of the system, such as: root@iZ23syflhhzZ.localdomain, open /etc/gitlab/gitlab.rb, will

# Gitlab_rails [ 'gitlab_email_from'] = 'gitlab@example.com'
change into

gitlab_rails [ 'gitlab_email_from'] = 'root@iZ23syflhhzZ.localdomain'
Once saved, execute sudo gitlab-ctl reconfigure recompile GitLab. If the mailbox filtering stronger, add the sender address to the whitelist system mailbox, and prevent messages from being filtered.

Note: the system log messages sent can be viewed through the `tail / var / log / maillog` command.
Installation problems

Access GitLab appear in the browser 502 error

Cause: Out of memory.

Solution: Check the system's virtual memory is random start, and if the system has no virtual memory, increase virtual memory, and then restart the system.

80 port conflict

Reason: Nginx default port 80.

Workaround: To make Nginx and Apache can coexist, and in order to simplify GitLab URL address, Nginx port remains the same, change the Apache port 4040. So that you can directly access Gitlab use ip. The Zen can be used to access port 4040, like this: xxx.xx.xxx.xx: 4040 / zentao. Specific changes place /etc/httpd/conf/httpd.conf this file, locate Listen 80 this one and it commented, adding under a Listen 4040, execution restart apache service httpd restart service can save.

#Listen 80
Listen 4040
8080 port conflict

Reason: Because unicorn default is port 8080.

Workaround: Open /etc/gitlab/gitlab.rb, open # unicorn [ 'port'] = 8080 Notes, the 8080 revised to 9090, after running sudo gitlab-ctl reconfigure saved to.

STMP settings

Configuration is invalid, I did not know why.

GitLab picture does not display properly
Reason: gravatar by a wall
Edit /etc/gitlab/gitlab.rb, will

#gitlab_rails [ 'gravatar_plain_url'] = 'http://gravatar.abc.com/avatar/%{hash}?s=%{size}&d=identicon'
change into:

gitlab_rails [ 'gravatar_plain_url'] = 'http://gravatar.abc.com/avatar/%{hash}?s=%{size}&d=identicon'
Then in the command line:

sudo gitlab-ctl reconfigure
sudo gitlab-rake cache: clear RAILS_ENV = production
- Github Getting Started Basic Course (Linux)
- Use PDFBox parse PDF file (Linux)
- Java memory area Explanation (Programming)
- See Shell Script Linux Server network traffic (Server)
- CentOS 6.5 using Virtualenv under development environment to build Python3 (Linux)
- Debian users to install FFmpeg 2.2.2 (Linux)
- Android View event delivery (Programming)
- Detailed driver compiled into the Linux kernel (Programming)
- rsync server set up (Server)
- Linux Defensive / mitigate DDOS attacks (Linux)
- Several start-up mode of Tomcat (Server)
- Linux shell scripts bubble sort (Programming)
- JavaScript function closures Quick Start (Programming)
- How to Install Linux kernel 4.0 on Ubuntu / CentOS (Linux)
- Linux script to copy the folder to all folders with the same name (Linux)
- Linux iptables port mapping settings (Server)
- Four Methods of Self - Learning Linux (Linux)
- Swift notes - let you two hours to learn Swift (Programming)
- To install CentOS 6.5 on your hard drive under Windows 7 (Linux)
- To explore the Android ListView caching mechanism again (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.