06月23, 2016

解决bitnami redmine提交问题或新建项目慢的问题

装好bitnami redmine后,新建项目、提交问题、更新问题时,局域网广域网什么的非常慢,甚至502,是因为redmine在处理这类操作时,需要同步发送邮件,等待邮件发送通知返回时,才返回操作结果。

QQ截图20160623165328

我们只需要把邮件发送服务改为异步操作即可:

  1. 进入redmine目录下的config目录, 编辑configuration.yml文件;
  2. 找到 delivery_method: :smtp,将smtp改为async_smtp,保存退出;
  3. 重启apache服务;
<pre class="lang:default decode:true"># = Redmine configuration file
#
# Each environment has it's own configuration options.  If you are only
# running in production, only the production block needs to be configured.
# Environment specific configuration options override the default ones.
#
# Note that this file needs to be a valid YAML file.
# DO NOT USE TABS! Use 2 spaces instead of tabs for identation.

# default configuration options for all environments
default:
  # Outgoing emails configuration
  # See the examples below and the Rails guide for more configuration options:
  # http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration
  email_delivery:
    delivery_method: :async_smtp     //修改为async_smtp异步操作
    async_smtp_settings:
      tls: false
      address: async_smtp.ym.163.com     ////修改为async_smtp异步操作
      port: 25
      domain: example.net
      authentication: :login
      enable_starttls_auto: true
      user_name: admin@admin.com
      password: password</pre>

4.再次进行操作即可有明显的速度提升了。

本文链接:https://www.51redmine.com/post/解决bitnami-redmine提交问题或新建项目慢的问题.html

-- EOF --

Comments

comments powered by HyperComments