Http://www.mcncc.com/read-htm-tid-42230.html
1. Build a Ruby on Rails Environment
1. install rubyinstaller1.8.7-p330.exe in the C directory, and add the bin path of the subdirectory to the path environment variable of Windows (for example, add c: \ ruby-1.8.7 \ bin to the path environment variable ),: http://rubyonrails.org/download
2. Unzip the rubygems1.4.2 installation package to a temporary directory (C: \ rubygems-1.4.2), switch the current directory to the temporary directory in Windows command line mode, and run the following command:
This command will install rubygems1.4.2 offline. : Http://rubyforge.org/frs? Group_id = 126
3. Put the Rake-0.8.3.gem file in a temporary directory (C: \ rake0.8.3),: http://rake.rubyforge.org/
|
Gem install rake-0.8.3.gem |
4. decompress the installation package of rails2.3.3 to a temporary directory (C: \ rails), switch the current directory to this temporary directory in command line mode, and run the following command:
|
Gem install rails -- include-dependencies |
Run this command to install rails2.3.3 offline. : Http://rubyforge.org/frs? Group_id = 307
Prompts you to install activesupport during installation, download the activesupport-2.3.4.gem and install.
5. Continue to install rails, the installation process will prompt the rails version number should not be less than 2.3.4, offline download Rails-2.3.4.gem file to the C directory,: http://rubyforge.org/frs? Group_id = 307,
6. Continue to install activerecord-2.3.4.gem,: http://rubyforge.org/frs? Group_id = 182
7. continue installing Activeresource-2.3.4.gem,: http://rubyforge.org/frs? Group_id = 3507 (try to install rails-2.3.4 directly)
8. Install rack-1.0.1.gem, run the following command:
|
Gem install rack-1.0.1.gem |
: Http://chneukirchen.org/releases/rack-1.0.1.tar.gz
9. actionpack-2.3.4.gem,: http://rubyforge.org/frs? Group_id = 249,
10. Actionmailer-2.3.4.gem,: http://rubyforge.org/frs? Group_id = 361,
11. install and configure mysql5.0.22 after rails2.3.4 and rack1.0.1 are successfully installed. Set a password such as 123456
12. Run the following command in MySQL Command Line Mode:
|
Create Database redmine Character Set utf8; |
This command creates a database for redmine.
13. rail2.2. MySQL gem has been removed in a later version, so you need to install it manually. Download the mysql-2.7.3-mswin32.gem in the C directory, and run the following command in command line mode: http://rubyforge.iasi.roedu.net/gems/
|
Gem install mysql-2.7.3-mswin32.gem |
2. Install redmine
1. unzip the installation package for the Redmine-1.0.3 to a directory (for example: C: \ redmine-1.0.3) and set config \ database. yml. copy example to config \ database. yml, and modify the database configuration of the "production" segment in this file. For example:
|
Production:
Adapter: MySQL
Database: redmine
HOST: localhost
Username: Root (enter the username you want to use to log on to MySQL)
Password: 123456 (enter the user password here) |
2. run libmysql In the MySQL installation directory. copy the DLL file to the ruby installation directory (for example, c: \ ruby-1.8.7 \ bin), switch the current directory to the redmine installation directory in Windows command line mode, and run the following command:
|
Rake config/initializers/session_store.rb |
|
Rake DB: migrate rails_env = "production" |
This command creates a database structure for production.
3. Run the following command in command line mode:
|
Rake redmine: load_default_data rails_env = "production" |
This command will fill in the default configuration data. Select a language when running this command. Generally, enter ZH (Simplified Chinese)
4. Run the following command in command line mode:
|
Ruby script/Server webrick-e Production |
This command will run redmine!
5. open your browser and visit the following url: http: // localhost: 3000/. Use the user admin (password admin) to start redmine on the command line every time it runs; (As needed, you can set the command in the first line to an automatic windows execution task, which can be executed before each operating system starts ).
Redmine is successfully entered!