This tutorial uses Centos6364. The command that needs to be executed on linux. When installing Redmine, you must pay attention to the corresponding version. it cannot be either high or low, or it cannot be installed !!! 1. install Mysqlhttp: blogcsdnnettabactivityarticlede first
This tutorial uses Centos6.3 64-bit. Starting with # indicates the command to be executed on linux. When installing Redmine, you must pay attention to the corresponding version. it cannot be either high or low, or it cannot be installed !!!
1. install Mysql first
Http://blog.csdn.net/tabactivity/article/details/12121599
2. install openssl-1.0.0a.tar.gz. The main purpose of this installation is to extract files because files will be missing in subsequent installation.
# tar zxvf openssl-1.0.0a.tar.gz# cd openssl-1.0.0a# ./config# make# make test# make install
3. install Ruby
[Ruby]View plaincopy
- Tar xvf ruby-1.8.7-p352.tar.bz2
-
- Cd ruby-1.8.7-p352
-
- ./Configure -- prefix =/usr
-
- Make & make install
Check whether the installation is successful:
Ruby-v
Which ruby
4. install the Ruby Extension Library
[Ruby]View plaincopy
- Cd ext/zlib
-
- Ruby extconf. rb
-
- Make & make install
-
-
- Cd ../ext/openssl
-
- Ruby extconf. rb
-
- Make & make install
5. go back to the initial directory and install RubyGems
[Ruby]View plaincopy
- Tar xvf rubygems-1.6.2.tgz
-
- Cd rubygems-1.6.2
-
- Ruby setup. rb
6. install other dependencies
#gem install rake# gem install bundler#gem install activesupport#gem install activerecord#gem install actionpack#gem install actionmailer#gem install activeresource#gem install rails
6. install redmine
[Ruby]View plaincopy
- Tar xvf redmine-1.1.2.tar.gz
- Cd redmine-1.1.2
- # Modify configuration
- Cp./config/database. yml. example./config/database. yml
- Vi database. yml
- Production:
- Adapter: mysql
- Database: redmine
- Host: localhost
- Username: root
- Password: <你的mysql密码>
Create databases and tables in the redmine Directory:
[Ruby]View plaincopy
- Mysql:
- Create database redmine character set utf8;
-
- Command line:
- Rake db: migrate RAILS_ENV = production
Note: If any error is reported:
# Add require 'thread' in redmine./config/boot. rb'
Run:
[Ruby]View plaincopy
- Ruby script/server-e production
Access through localhost: 3000. the administrator logon account/password is admin/admin.