Centos install redmine 2.1.4 Redmine 2.1.4 http://rubyforge.org/frs? Group_id = 1850 Ruby 1.8.7-p371 ftp://ftp.ruby-lang.org/pub/rubyRubyGems 1.8.24 http://rubygems.org/pages/downloadinstallation software environment www.2cto.com 01 # install OpenSSL support environment 02yum install openssl openssl-dev03 04 # install Ruby05tar zxf ruby-1.8.7-p371.tar.gz06cd ruby-1.8.7-p37107. /configure -- prefix =/usr08make09make install10 11 # confirm version information: ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux] 12 ruby-v13 14 # Install rubygems15tar zxf r Ubygems-1.8.24.tgz16cd rubygems-1.8.2417ruby setup. rb18 19 # install other components online, too many components please do not try to manually install 20tar zxf redmine-2.1.4.tar.gz-C/usr/local/21cd/usr/local/redmine-2.1.422gem install bundler23bundle install -- without development test postgresql sqlite rmagick24gem install tlsmail create database account 1 # mysql2create database redmine character set utf8; 3 grant all privileges on redmine. * to redmine @ '%' identified by '123 '; Modify the configuration file 01 # vim/usr/local/redmine-2.1.4/config/database. yml02 03 # MySQL (default setup ). versions 4.1 and 5.0 are recommended.04 #05 # Get the fast C bindings: 06 # gem install mysql07 # (on OS X: gem install mysql -- include =/usr/local/lib) 08 # And be sure to use new-style password hashing: 09 # http://dev.mysql.com/doc/refman/5.0/en/old-client.html10 11 production: 12 adapter: mysql13 database: redmine14 Host: localhost15 port: 330616 username: redmine17 password: 12345618 encoding: utf8 install redmine01 # The following command is run on the command interface 02 03cd/usr/local/redmine-2.1.404 05 rake generate_secret_token06RAILS_ENV = production rake db: migrate07RAILS_ENV = production rake redmine: load_default_data08 09 mkdir tmp public/plugin_assets10chown-R redmine: redmine files log tmp public/plugin_assets11chmod-R 755 files log tmp public/plug In_assets12 13 # Start 14 15cd/usr/local/redmine-2.1.416ruby script/rails server webrick-e production-p 3002 & 17 18 # This can be accessed through a browser, admin Password admin Nginx reverse Proxy configuration 01 # increase Nginx Proxy to greatly speed up redmine 02 03 gzip on; 04gzip_proxied any; 05gzip_types text/plain application/x-javascript application/javascript text/css application/xml text/javascript application/json; 06proxy_cache_path cache levels = keys_zone = Redmine: 256 m inactive = 60 m max_size = 4g; 07 08 server {09 listen 3000; 10 server_name localhost; 11 access_log off; 12 location/{13 proxy_cache redmine; 14 proxy_cache_valid 200 304 1 m; 15 proxy_pass http: // backend; 16 index index.html index.htm; 17} 18} 19 upstream backend {20 server 127.0.0.1: 3002; 21} mail configuration and Gmail SSL support 01 # vim/usr/local/redmine-2.1.4/config/email. yml02 03 # Outgoing email settings04product Ion: 05 delivery_method: async_smtp06 smtp_settings: 07 enable_starttls_auto: true08 address: smtp. gmail. com09 port: 58710 domain: gmail. com11 authentication: login12 user_name: ping.bao.cn@gmail.com13 password: redmine12345614 tls: true15 16 # Gmail tls_mail Trouble Shootting ...... 17 18cd/usr/local/lib/ruby/gems/1.9/gems/tlsmail-0.0.1/lib/19cp */usr/local/redmine-2.1.4/lib/redmine/-r20vim/usr /Local/redmine-2.1.4/lib/redmine/net/smtp. rb21 22 class SMTP23 24 Revision = % q $ Revision: 10709 $. split [1] 25 26 # The default SMTP port, port 25.27 def SMTP. default_port28 2529 end30 31 @ use_tls = true32 @ verify = nil33 @ certs = nil34 35 def SMTP. enable_tls (verify = OpenSSL: SSL: VERIFY_PEER, certs = nil) 36 @ use_tls = true37 @ verify = verify38 @ certs = certs39 end40 41 def initialize (address, port = Nil) 42 @ address = address43 @ port = (port | SMTP. default_port) 44 @ esmtp = true45 @ socket = nil46 @ started = false47 @ open_timeout = 3048 @ read_timeout = 6049 @ error_occured = false50 @ debug_output = nil51 @ use_tls = SMTP. use_tls? 52 @ certs = SMTP. certs53 @ verify = SMTP. verify54 end