Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ A key installation Gitlab 7 on RHEL6.4 and Setup Mail TX     - Go performed using iOS and Android programming (Programming)

- Spring-depth understanding of the various annotations (Programming)

- Java development specifications summary (Programming)

- impdp error ORA-39001, ORA-39000, ORA-31619 (Database)

- Explore Android SQLite3 multithreading (Programming)

- Windows 7 hard disk to install Ubuntu 14.10 (Linux)

- To record command input under Linux (Linux)

- NIC configuration parameters under Linux (Linux)

- Turning off the interface eth0: error: Disconnect the device 'eth0' (Linux)

- When Linux Detailed time zone and common function of time (Linux)

- Mount NFS network file system (Linux)

- Android Qemu GPS module (Programming)

- LMMS 1.03 install on Ubuntu 14.04 (Linux)

- xCAT install and update software (Linux)

- How to use SVN to manage our source code (Server)

- How to find an IP address through the command line (Linux)

- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- Installation Mesos + Marathon + Zookeeper under CentOS 7 (Server)

- Linux cd command Detailed (Linux)

- Linux script to copy the folder to all folders with the same name (Linux)

 
         
  A key installation Gitlab 7 on RHEL6.4 and Setup Mail TX
     
  Add Date : 2018-11-21      
         
         
         
  Nothing in this world, much ado about it. Book The True Story, a short section saying: Gitlab is a good thing, but the installation manual odd rotten. Although once against the document step by step to install them Gitlab 6.x, however, the passage of time, do not want to spend time on this boring configuration. Google already become past yellow, nor the weapon over the wall of the prison, only to find the answers in the back and forth between Baidu and Bing.

Hard work pays painstaking. This bitnami finally found a key installation package. bitnami-gitlab-7.1.1-0-linux-x64-installer.run.

1 whole installation process

Download still surprisingly slow. Here is the whole installation process:

[Root @ rhel64-origin ~] # service mysqld stop
Stopping mysqld: [OK]
[Root @ rhel64-origin ~] # ./bitnami-gitlab-7.1.1-0-linux-x64-installer.run
.. The installer detects that exists a 'git' user in the system This installer will change the config uration 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.

GitLab: Y (Can not 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.1.1-0]:

-------------------------------------------------- --------------------------
Create Admin account

Bitnami Gitlab Stack admin user creation

Email Address [user@example.com]: xxxxx@hotmail.com

Login [user]: master

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 [192.168.82.181]:

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 []: xxxxx@qq.com

Password:
Re-enter:
SMTP Host []: smtp.qq.com

SMTP Port []: 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://192.168.82.181:80 from your browser.
Press [Enter] to continue:

2 Change configured to send e-mail

important! At this point you can not send mail. We need to change a few configuration:

1) config / environments / production.rb

# Vi /opt/gitlab-7.1.1-0/apps/gitlab/htdocs/config/environments/production.rb
  ........
  # Config.action_mailer.delivery_method =: sendmail
  # Defaults to:
  # # Config.action_mailer.sendmail_settings = {
  # # Location: '/ usr / sbin / sendmail',
  # # Arguments: '-i -t'
  ##}
  config.action_mailer.perform_deliveries = true
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method =: smtp
  config.action_mailer.smtp_settings = {
    : Address => "smtp.qq.com",
    : Port => "25",
    : Domain => "smtp.qq.com",
    : Authentication =>: plain,
    : User_name => "xxxxx@qq.com",
    : Password => "********",
    : Enable_starttls_auto => true
  }
  ........

2) config / environments / production.rb

  # Cd /opt/gitlab-7.1.1-0/apps/gitlab/htdocs/config/initializers/
  # Cp smtp_settings.rb.sample smtp_settings.rb
  # Vi smtp_settings.rb

It reads as follows:

# To enable smtp email delivery for your GitLab instance do next:
# 1. Rename this file to smtp_settings.rb
# 2. Edit settings inside this file
# 3. Restart GitLab instance
#
if Rails.env.production?
  Gitlab :: Application.config.action_mailer.delivery_method =: smtp

  ActionMailer :: Base.smtp_settings = {
    address: "smtp.qq.com",
    port: 25,
    user_name: "3501xxxxx@qq.com",
    password: "********",
    domain: "qq.com",
    authentication:: login,
    enable_starttls_auto: true
  }
end

3) config / gitlab.yml

Locate the following content, change your email address:

# # # # # # # # # # # # # # # # # #
# GitLab application config file #
# # # # # # # # # # # # # # # # # #
#
# How to use:
# 1. copy file as gitlab.yml
# 2. Replace gitlab -> host with your domain
# 3. Replace gitlab -> email_from

production: & base
  #
  # 1. GitLab app settings
  # ==========================

  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http: //)
    host: 192.168.82.181
    port: 80
    https: false

    # Uncommment this line below if your ssh host is different from HTTP / HTTPS one
    # (You'd obviously need to replace ssh.host_example.com with your own host).
    # Otherwise, ssh host will be set to the `host:` value above
    # Ssh_host: ssh.host_example.com

    # WARNING: See config / application.rb under "Relative url support" for the list of
    # Other files that need to be changed for relative url support
    # Relative_url_root: / gitlab

    # Uncomment and customize if you can not use the default user to run GitLab (default: 'git')
    # User: git

    ## Email settings
    # Email address used in the "From" field in mails sent by GitLab
    email_from: xxxxx@qq.com
    support_email: xxxxx@qq.com

    # Email server smtp settings are in [a separate file] (initializers / smtp_settings.rb.sample).
........

3 to start the service and access

# /opt/gitlab-7.1.1-0/ctlscript.sh Restart

At this point the user to create, it will send mail.
     
         
         
         
  More:      
 
- CentOS installation of the ftp (Linux)
- C # assembly calls across constants, variables and functions (Programming)
- Getting Started with Linux system to learn: how to install autossh (Linux)
- Use PuTTY key authentication mechanism for remote login Linux (Linux)
- Can not empty the Recycle Bin to repair problems in Ubuntu 14.04 (Linux)
- Oracle 11g modify MEMORY_TARGET (Database)
- Open log in Hibernate (Programming)
- Servlet 3.0 interfaces of AsyncListener (Programming)
- Teach you how to choose to install CentOS 6.5 installation package (Linux)
- Ubuntu 15.04 installed Nvidia Quadro series graphics driver (Linux)
- CentOS 6.4 OpenNebula installation (Linux)
- Parts of the partition is not recognized after Debian mount mobile hard disk (Linux)
- CentOS terminal display Chinese (Linux)
- Linux system performance analysis and top command ps.pstree Comments (Linux)
- Open source backup software installed on Ubuntu Systemback 1.6.201 (Linux)
- How to ensure the Linux SSH login security with one-time password (Linux)
- Comparison of Nginx and Nginx + (Server)
- Varnish configuration language VCL and its built-in variables (Server)
- How to use the tab in Vim carried Python code completion (Linux)
- Linux pwd command learning experience (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.