国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院

首頁 > 學院 > 操作系統 > 正文

一鍵安裝GitLab7在RHEL6.4上

2024-06-28 16:03:35
字體:
來源:轉載
供稿:網友

參考原文:http://www.linuxidc.com/Linux/2014-08/105137.htm

1 關于gitlab7

無論如何gitlab是個好東西,但是極難安裝和配置。bitnami(https://bitnami.com/)的一鍵安裝包雖然可以解決大問題,但是仍有很多人無法配置gitlab+nginx和email發送等等問題。今天特意完整地再梳理一次。對各位讀者的問題不再逐一解答。

首先,bitmami的一些版本有問題,無法成功在rhel6.4上成功安裝。因此,我找到了一個較新的可以使用的版本7.8.1(響應式頁面):

ftp://pepstack.com/pub/tarball/bitnami-gitlab-7.8.1-0-linux-x64-installer.run

(我的ftp不會一直提供,請想要的盡快下載)

那么,最后安裝好的效果就是(點擊可訪問,第一次訪問可能會比較慢,要求較新版本的Firefox或Chrome,IE未測試):

http://pepstack.com/gitlab

2 需求描述

好了,先把需求陳述一下,如果讀者的需求與我不同,我無能為力。假設我有一臺web主機(我這里是pepstack.com),我在主機后面創建虛擬機(vm-gitlab),在vm-gitlab上安裝gitlab7,然后通過配置web主機上的ngnix,可以通過下面的url訪問到我的gitlab:

http://pepstack.com/gitlab

創建虛擬機vm-gitlab的過程不細說了,如果你使用實體機也是一樣的。vm-gitlab安裝的是rhel6.4版本。確保在vm內部可以訪問外部主機和internet(如ping www.baidu.com)。

3 安裝gitlab

ssh 到vm-gitlab:

# ssh root@vm-gitlab

下載一鍵式安裝包:

# wget ftp://pepstack.com/pub/tarball/bitnami-gitlab-7.8.1-0-linux-x64-installer.run

安裝:

# chmod a+x bitnami-gitlab-7.8.1-0-linux-x64-installer.run

# ./bitnami-gitlab-7.8.1-0-linux-x64-installer.run

安裝過程中會提示:

----------------------------------------------------------------------------Welcome to the Bitnami Gitlab Stack Setup Wizard.

----------------------------------------------------------------------------Select the components you want to install; clear the components you do not wantto install. Click Next when you are ready to continue.

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.8.1-0]:

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

Bitnami Gitlab Stack admin user creation

Email Address [user@example.com]: cheungmine@QQ.com

Login [user]: master (此處是你登錄gitlab用的用戶名)

PassWord : (輸入你登錄gitlab時要用的密碼)Please confirm your password :  (輸入你登錄gitlab時要用的密碼)----------------------------------------------------------------------------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 isadvisable to use a Domain instead of an ip address for compatibility withdifferent browsers.

Domain [127.0.0.1]:

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] CustomPlease choose an option [1] : 2

----------------------------------------------------------------------------Configure SMTP Settings

This data is stored in the application configuration files and may be visible toothers. For this reason, it is recommended that you do not use your personalaccount credentials.

Username []: cheungmine@qq.com

Password : (輸入你的QQ密碼)Re-enter : (輸入你的QQ密碼)SMTP Host []: smtp.qq.com

SMTP Port []: 25

Secure connection

[1] None[2] SSL[3] TLSPlease choose an option [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 tohttp://127.0.0.1:80 from your browser.Press [Enter] to continue:

4 配置gitlab配置尤其要小心。下面幾個配置文件要用到:

/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/environments/production.rb/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/initializers/smtp_settings.rb/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/config/gitlab.yml/opt/gitlab-7.8.1-0/apps/gitlab/conf/httpd-app.conf/opt/gitlab-7.8.1-0/apps/gitlab/gitlab-shell/config.yml

下面逐一說明:

4.1 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 => "qq.com",    :authentication => :plain,    :user_name => "cheungmine@qq.com",    :password => "********",    :enable_starttls_auto => true  }

  config.eager_load = true  config.assets.js_compressor = :uglifier

  config.allow_concurrency = false......

4.2 smtp_settings.rb# cp smtp_settings.rb.sample smtp_settings.rb

# To enable smtp email delivery for your GitLab instance do the following:# 1. Rename smtp_settings.rb.sample 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: "cheungmine@qq.com",    password: "********",    domain: "qq.com",    authentication: :login,    enable_starttls_auto: true,    openssl_verify_mode: 'none'  }end

4.3 gitlab.yml

# # # # # # # # # # # # # # # # # ## GitLab application config file  ## # # # # # # # # # # # # # # # # ### How to use:# 1. Copy file as gitlab.yml# 2. Update gitlab -> host with your fully qualified domain name# 3. Update gitlab -> email_from# 4. If you installed Git from source, change git -> bin_path to /usr/local/bin/git# 5. Review this configuration file for other settings you may want to adjust

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

  ## GitLab settings  gitlab:    ## Web server settings (note: host is the FQDN, do not include http://)    host: pepstack.com    port: 80                # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details    https: false            # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details

    # 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't use the default user to run GitLab (default: 'git')    # user: git

    ## Date & Time settings    # Uncomment and customize if you want to change the default time zone of GitLab application.    # To see all available zones, run `bundle exec rake time:zones:all RAILS_ENV=production`    # time_zone: 'UTC'

    ## Email settings    # Uncomment and set to false if you need to disable email sending from GitLab (default: true)    # email_enabled: true    # Email address used in the "From" field in mails sent by GitLab    email_from: cheungmine@qq.com    support_email: cheungmine@qq.com

    # Email server smtp settings are in config/initializers/smtp_settings.rb.sample

    # default_can_create_group: false  # default: true    # username_changing_enabled: false # default: true - User can change her username/namespace    ## Default theme    ##  BASIC  = 1    ##  MARS  = 2    ##  MODERN = 3    ##  GRAY  = 4    ##  COLOR  = 5    # default_theme: 2 # default: 2......

上面文件改動之處在于:

host: pepstack.comrelative_url_root: /gitlabemail_from: cheungmine@qq.comsupport_email: cheungmine@qq.com

下面的配置是因為要把gitlab置于nginx后面使用:

4.4 httpd-app.conf

<Directory "/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/public">    Options -MultiViews    AllowOverride All    <IfVersion < 2.3 >        Order allow,deny        Allow from all    </IfVersion>    <IfVersion >= 2.3>        Require all granted    </IfVersion>

    SetEnv RAILS_RELATIVE_URL_ROOT "/gitlab"

    PassengerEnabled on    PassengerAppRoot "/opt/gitlab-7.8.1-0/apps/gitlab/htdocs/"    <IfModule pagespeed_module>        ModPagespeedDisallow "*"    </IfModule>    PassengerUser git    PassengerGroup git    SetEnv MAGIC "/opt/gitlab-7.8.1-0/ruby/lib/ruby/gems/2.0.0/gems/charlock_holmes-0.6.9.4/ext/charlock_holmes/src/file-5.08/magic/magic.mgc"    SetEnv PATH "/opt/gitlab-7.8.1-0/python/bin:${PATH}"

</Directory>PassengerPreStart http://127.0.0.1:80/gitlab

不同之處在于:

SetEnv RAILS_RELATIVE_URL_ROOT "/gitlab"PassengerPreStart http://127.0.0.1:80/gitlab

4.5 config.yml

...gitlab_url: http://pepstack.com:80/gitlab/...

這樣我們訪問gitlab就是按照下面的地址:

http://pepstack.com/gitlab/

5 主機nginx配置

上面的配置都是在vm-gitlab上進行的,注意打開80:http端口。下面要給主機nginx增加配置,配置文件:

/etc/nginx/conf.d/redmine.conf

內容如下(我同時還提供了redmine服務):

# 指向內網redmine的web服務(192.168.122.21:80)#upstream redmine {    server 192.168.122.21:80;}

upstream gitlab {    server 192.168.122.20:80;}

server {    server_name pepstack.com;

    # /var/log/nginx 本地目錄必須存在    access_log  /var/log/nginx/redmine_access.log;    error_log  /var/log/nginx/redmine_error.log;

    location /redmine {        try_files $uri @red;      # @red 名字是任意的    }

    location /gitlab {        try_files $uri @git;    }

    location @red {        proxy_set_header  Host            $host;        proxy_set_header  X-Real_IP        $remote_addr;        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;

        proxy_read_timeout    300;        proxy_connect_timeout  300;        proxy_redirect        off;

        proxy_pass http://redmine;  # 指向 upstream redmine    }

    location @git {        proxy_set_header  Host            $host;        proxy_set_header  X-Real_IP        $remote_addr;        proxy_set_header  X-Forwarded-For  $proxy_add_x_forwarded_for;

        proxy_read_timeout    300;        proxy_connect_timeout  300;        proxy_redirect        off;

        proxy_pass http://gitlab;  # 指向 upstream gitlab    }}

即注釋掉:include /etc/nginx/sites-enabled/*;

6 啟動服務

大功告成,在主機啟動nginx:

$ sudo nginx -s reload

在vm-gitlab啟動gitlab:

# cd /opt/gitlab-7.8.1-0/

# ./ctlscript.sh restart

一鍵安裝GitLab7在RHEL6.4上

CentOS源碼安裝GitLab漢化版  http://www.linuxidc.com/Linux/2015-10/124648.htm

在 Ubuntu 12.04 上安裝 GitLab http://www.linuxidc.com/Linux/2012-12/75249.htm

GitLab 5.3 升級注意事項 http://www.linuxidc.com/Linux/2013-06/86473.htm

在 CentOS 上部署 GitLab (自托管的Git項目倉庫) http://www.linuxidc.com/Linux/2013-06/85754.htm

在RHEL6/CentOS6/ScientificLinux6上安裝GitLab 6.0.2 http://www.linuxidc.com/Linux/2014-03/97831.htm

CentOS 6.5安裝GitLab教程及相關問題解決 http://www.linuxidc.com/Linux/2014-05/101526.htm

GitLab 的詳細介紹:請點這里GitLab 的下載地址:請點這里

本文永久更新鏈接地址:http://www.linuxidc.com/Linux/2015-11/124919.htm


上一篇:運維筆記

下一篇:Gitlab 創建備份

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院
国产91久久久久| 超碰国产在线观看| 中文乱码字幕av网站| 国产中文字幕在线观看| www.色婷婷| 成网站在线观看人免费| 成人欧美日韩| 国产小视频福利在线| 国产资源在线看| 天天av天天爽| 国产麻豆综合视频在线观看| 福利在线观看| 国产鲁鲁视频在线观看免费| 国产一级片在线| 国产一二三区在线观看| 国产三级做爰在线观看| 精品av中文字幕在线毛片| 国产天堂在线| eeuss影院网站免费观看| 中文字幕在线资源| 在线色视频网| 国产精品臀控福利在线观看| 国产小视频免费在线网址| 国产国语**毛片高清视频| www.操操操| 91美女主播在线视频| 国产乱码在线| www亚洲天堂| 中文乱码字幕高清在线观看| 伊人222成人综合网| 欧美一级久久久久久久久大| 激情亚洲综合网| 国产乱妇乱子在线播视频播放网站| 国产福利电影在线| 久久久久久久久久久久久91| 国产成免费视频| 国产一级黄色| 狠狠干五月天| 欧美成人精品福利网站| 在线黄色国产电影| 精品国内自产拍在线视频| 国产精选一区二区三区不卡催乳| 香蕉视频在线观看www| 尤物在线精品视频| 精品亚洲成a人片在线观看| 99视频免费| 国产麻豆精品入口在线观看| 天天草天天操| 亚洲高清在线免费| 亚洲视频在线观看不卡| 精品176二区| 日本天堂影院在线视频| 免费国产视频| 中文字幕第一页在线| 国产无遮挡在线视频免费观看| 国产乱精品一区二区三区| 日本中文字幕视频| 尤物免费看在线视频| 国产精品白浆视频免费观看| 国产jizz| www.狠狠| 日本中文字幕高清视频| 国产日本视频| 亚洲最新永久观看在线| 免费av在线| 国产视频xxxx| 在线观看视频污| 天堂资源中文在线| 亚洲欧美国产另类首页| 国产精品亚洲第五区在线| 中文字幕在线视频观看| 在线观看免费高清完整| 综合激情亚洲| 超碰在线中文| 精品国产福利一区二区在线 | 超碰在线观看免费| 尤物在线网址| 亚洲精品在线播放视频| 国产婷婷视频在线| 九九热在线观看视频| 91看片在线观看| 国产中文第一页| 国产精品伦理一区二区三区| 亚洲欧美日韩一区成人| 国产精品毛片一区二区三区四区| 日本高清中文字幕| 精品偷拍激情视频在线观看| 天堂中文资源在线| 亚洲尤物在线视频| 国产激情99| 国产天堂av| 国产精品理人伦一区二区三区 | 亚洲网站视频在线观看| 综合图区亚洲白拍在线| 久久综合第一页| h网站免费在线观看| 国产高潮又爽又无遮挡又免费| 欧美日韩一区二区三区视视频| 在线午夜视频| 永久免费在线观看| 中文av字幕| 一级二级在线观看| 亚洲videos| 国产成a人亚洲精v品| 国产成人午夜精品| 国产aa视频| 在线观看中文字幕| wwww在线观看| 黄色片大全在线观看| 久久久久久77777| 欧美日韩**字幕一区| 青草av在线| 麻豆国产视频| 国产卡一卡二卡三| 国产精美视频| 精品av中文字幕在线毛片| 99久久免费精品国产免费| 伊人资源视频在线| av网址在线免费观看| а√天堂www在线а√天堂视频| 日本调教视频在线观看| 老师我好爽再深一点的视频| 国产69精品久久app免费版| 国产精品一区二区资源| 69久久久久| 嫩草在线播放| 国产精品99999| jizz亚洲| 国产成人亚洲精品播放器下载| av免费在线一区二区三区| 成年女人在线视频| 国产精品人人| 在线观看av的网站| 久蕉依人在线视频| 国产福利三区| 午夜视频在线看| 亚洲精品影视在线| 国产一二在线观看| 免费国产在线视频| av色在线观看| 国产黄色免费| 午夜av在线免费观看| 男女羞羞视频在线观看| 精品卡1卡2卡三卡免费网站| 超碰免费在线播放| av在线二区| 亚洲高清在线免费| 91亚洲天堂| 国产色婷婷在线| 国产理论电影在线观看| 青青青手机在线视频观看| 91黄色在线| 国产馆av播放| 国产香蕉视频在线观看| 国产永久免费| 免费不卡中文字幕视频| 日本成a人片在线观看| 在线观看电影av| 亚洲精品少妇久久久久久| 精品国语对白精品自拍视 | 狠狠干婷婷色| 超碰国产在线| av免费网站在线观看| 在线午夜视频| 亚洲日本伊人| 欧美啪啪精品| 丁香视频五月| 国产小视频在线观看| 国产精品视频一区二区三区麻豆| 午夜av在线免费观看| 国产视频97| 精品176二区| 午夜羞羞小视频在线观看| 四虎在线免费视频| 麻豆av电影在线观看| 成网站在线观看人免费| √天堂中文在线| 国产一区二区三区四区尤物| 国产香蕉视频在线看| 精品视频麻豆入口| 爱福利在线视频| 国产男女无套在线播放| 国产乱妇乱子| 尤物在线精品视频| 豆国产97在线|亚洲| 2019中文字幕在线电影免费| 在线国产1区| 午夜伦全在线观看| 在线中文字幕视频观看| 九九热视频在线观看| 国产成人久久精品77777| av影视在线看| 福利在线国产| 四虎一区二区三区| 国产精品伦理一区二区三区| www.操操| 在线国产1区| 国产精品视频一区二区久久| 免费av在线| 亚洲高清在线免费|