欢迎访问 生活随笔!

生活随笔

当前位置: 首页 >

centos 安装 redmine 2.1.4

发布时间:2024/9/20 47 豆豆
生活随笔 收集整理的这篇文章主要介绍了 centos 安装 redmine 2.1.4 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

为什么80%的码农都做不了架构师?>>>   

Redmine 2.1.4 http://rubyforge.org/frs/?group_id=1850
Ruby 1.8.7-p371 ftp://ftp.ruby-lang.org/pub/ruby
RubyGems 1.8.24 http://rubygems.org/pages/download

  • 安装软件环境
    # 安装 OpenSSL支持环境 yum install openssl openssl-dev# 安装 Ruby tar zxf ruby-1.8.7-p371.tar.gz cd ruby-1.8.7-p371 ./configure --prefix=/usr make make install# 确认版本信息: ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux] ruby -v# 安装 rubygems tar zxf rubygems-1.8.24.tgz cd rubygems-1.8.24 ruby setup.rb# 在线安装其他组件, 组件太多请勿尝试手动安装 tar zxf redmine-2.1.4.tar.gz -C /usr/local/ cd /usr/local/redmine-2.1.4 gem install bundler bundle install --without development test postgresql sqlite rmagick gem install tlsmail
  • 创建数据库帐号
    # Mysql create database redmine character set utf8; grant all privileges on redmine.* to redmine@'%' identified by '123456';
  • 修改配置文件
    # vim /usr/local/redmine-2.1.4/config/database.yml# MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql -- --include=/usr/local/lib) # And be sure to use new-style password hashing: # http://dev.mysql.com/doc/refman/5.0/en/old-client.htmlproduction:adapter: mysqldatabase: redminehost: localhostport: 3306username: redminepassword: 123456encoding: utf8
  • 安装redmine
    # 以下为命令界面执行的命令cd /usr/local/redmine-2.1.4rake generate_secret_token RAILS_ENV=production rake db:migrate RAILS_ENV=production rake redmine:load_default_datamkdir tmp public/plugin_assets chown -R redmine:redmine files log tmp public/plugin_assets chmod -R 755 files log tmp public/plugin_assets# 启动cd /usr/local/redmine-2.1.4 ruby script/rails server webrick -e production -p 3002 &# 此时可通过浏览器访问,帐号admin 密码admin

  • Nginx 反向代理配置
    # 增加 Nginx Proxy 后能很大程度上给 redmine 提速gzip on; gzip_proxied any; gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript application/json; proxy_cache_path cache levels=1:2 keys_zone=redmine:256m inactive=60m max_size=4g;server {listen 3000;server_name localhost;access_log off;location / {proxy_cache redmine;proxy_cache_valid 200 304 1m;proxy_pass http://backend;index index.html index.htm;} } upstream backend {server 127.0.0.1:3002; }
  • 邮件配置及 Gmail SSL 支持
    # vim /usr/local/redmine-2.1.4/config/email.yml# Outgoing email settings production:delivery_method: :async_smtpsmtp_settings:enable_starttls_auto: trueaddress: smtp.gmail.comport: 587domain: gmail.comauthentication: :loginuser_name: ping.bao.cn@gmail.compassword: redmine123456tls: true# Gmail tls_mail Trouble Shootting ......cd /usr/local/lib/ruby/gems/1.9/gems/tlsmail-0.0.1/lib/ cp * /usr/local/redmine-2.1.4/lib/redmine/ -r vim /usr/local/redmine-2.1.4/lib/redmine/net/smtp.rbclass SMTPRevision = %q$Revision: 10709 $.split[1]# The default SMTP port, port 25.def SMTP.default_port25end@use_tls = true@verify = nil@certs = nildef SMTP.enable_tls(verify = OpenSSL::SSL::VERIFY_PEER, certs = nil)@use_tls = true@verify = verify@certs = certsenddef initialize(address, port = nil)@address = address@port = (port || SMTP.default_port)@esmtp = true@socket = nil@started = false@open_timeout = 30@read_timeout = 60@error_occured = false@debug_output = nil@use_tls = SMTP.use_tls?@certs = SMTP.certs@verify = SMTP.verifyend
  • 转载于:https://my.oschina.net/dinga/blog/94233

    总结

    以上是生活随笔为你收集整理的centos 安装 redmine 2.1.4的全部内容,希望文章能够帮你解决所遇到的问题。

    如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。