centos 安装 redmine 2.1.4
生活随笔
收集整理的這篇文章主要介紹了
centos 安装 redmine 2.1.4
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
| 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支持環(huán)境 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# 確認(rèn)版本信息: 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
# 以下為命令界面執(zhí)行的命令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 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; }
# 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
轉(zhuǎn)載于:https://my.oschina.net/dinga/blog/94233
總結(jié)
以上是生活随笔為你收集整理的centos 安装 redmine 2.1.4的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 第49周星期三
- 下一篇: CentOS 6.3安装Nginx开启目