CentOS Linux install Redmine install openssl environment www.2cto.com 1yum install openssl-dev install Ruby environment 1tar zxf ruby-1.8.7.tar.gz2cd ruby-1.8.73. /configure4make5make install6ruby-v install rubygems environment 1tar zxf rubygems-1.8.24.tgz2cd rubygems-1.8.243ruby setup. rb online installation of rails and rack environment 1gem install rails-v = 2.3.52gem install rack-v = 1.0.13gem install rake-v = 0.8.74gem install mysql5gem install tlsmail install new Mysql account 1c Reate database redmine character set utf8; 2 grant all privileges on redmine. * to 'redmine '@ 'localhost' identified by '100'; configure data connection 01 # vim/opt/redmine-1.2.1/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 ha Shing: 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 <span> </span> install 1cd/opt/redmine-1.2.12rake syntax = production rake db: migrate4RAILS_ENV = production rake redmine: load_default_data5 6 mkdir tmp public/plugin_assets7sudo cho Wn-R redmine: redmine files log tmp public/plugin_assets8sudo chmod-R 755 files log tmp public/plugin_assets start 1cd/opt/redmine-1.2.12ruby script/server webrick-e production-p 3002 & now via http: // 127.0.0.1: 3002 to access redmine mail configuration 01 # vim/opt/redmine-1.2.1/config/email. yml02 03 # Outgoing email settings04production: 05 delivery_method: async_smtp06 smtp_settings: 07 enable_starttls_auto: t Rue08 address: smtp. gmail. com09 port: 58710 domain: gmail. com11 authentication: login12 user_name: ping.bao.cn@gmail.com13 password: redmine12345614 tls: true When ssl is enabled for gmail, You need to modify the following configuration 01 # Gmail tls_mail Trouble Shootting ...... 02 03cd/usr/local/lib/ruby/gems/1.8/gems/tlsmail-0.0.1/lib/04cp */opt/redmine-1.2.1/lib/redmine/-r05vim/opt/redmine-1.2.1/lib /redmine/net/smtp. rb06 07 class SMTP08 09 Re Vision = % q $ Revision: 10709 $. split [1] 10 11 # The default SMTP port, port 25.12 def SMTP. default_port13 2514 end15 16 @ use_tls = true17 @ verify = nil18 @ certs = nil19 20 def SMTP. enable_tls (verify = OpenSSL: SSL: VERIFY_PEER, certs = nil) 21 @ use_tls = true22 @ verify = verify23 @ certs = certs24 end25 26 def initialize (address, port = nil) 27 @ address = address28 @ port = (port | SMTP. default_port) 29 @ Esmtp = true30 @ socket = nil31 @ started = false32 @ open_timeout = 3033 @ read_timeout = 6034 @ error_occured = false35 @ debug_output = nil36 @ use_tls = SMTP. use_tls? 37 @ certs = SMTP. certs38 @ verify = SMTP. verify39 end