小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

使用BitnamiGitLab一鍵安裝包安裝完成之注冊(cè)郵件確認(rèn)一直收不到

 株野 2017-03-19
Vegil 2015年07月30日提問(wèn) · 2015年07月30日更新[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 (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.1.1-0]: ---------------------------------------------------------------------------- Create Admin account Bitnami Gitlab Stack admin user creation Email Address [user@example.com]: 3501xxxxx@qq.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 []: 3501xxxxx@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 更改配置以發(fā)送郵件

重要!此時(shí)還不能發(fā)送郵件。需要更改幾個(gè)配置:

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 => "3501xxxxx@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

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

找到下面的內(nèi)容,改成你的email地址:

# # # # # # # # # # # # # # # #

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't 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: 3501xxxxx@qq.com
support_email: 3501xxxxx@qq.com

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

........ 3 啟動(dòng)服務(wù)并訪問(wèn)

/opt/gitlab-7.1.1-0/ctlscript.sh restart

此時(shí)創(chuàng)建用戶,就會(huì)發(fā)送郵件了。

別忘記 qq郵箱中打開(kāi)下面的服務(wù):


上面的部分是我參照的東西,我是用的是163郵箱,也差不多。不知道為什么確認(rèn)郵件一直收不到。求高手指點(diǎn),謝謝。

在百度上也有提問(wèn),如果大家想要獎(jiǎng)勵(lì)有100財(cái)富,還可以追加到300財(cái)富

1 個(gè)回答

0

問(wèn)題已經(jīng)解決,由于上一次使用Git上的clone安裝,有很所殘留的文件,清理干凈之后重新安裝按照http://blog.csdn.net/ubuntu64fan/article/details/38367579?utm_source=t...這位大哥的方式安裝好了。但是每次(Bitnami安裝方式)ctlscript.sh restar總會(huì)說(shuō)安裝ruby2.1.6,但是安裝了之后又會(huì)報(bào)錯(cuò)/opt/gitlab-7.13.1-0/ruby/lib/ruby/2.0.0/x86_64-linux/rbconfig.rb:7:in `': ruby lib version (2.0.0) doesn't match executable version (2.1.6) (RuntimeError)
不安裝的話會(huì)不斷地提示,但是Gitlab可以運(yùn)行,不知怎么解決,如果遇到相同的問(wèn)題,解決了大家可以分享一下。

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多