1. Ruby version 1.8.7 is recommended for RubyonRails. # Wgetftp: // response/ 1 ,Ruby Install
Ruby on RailsRecommended websites1.8.7. # Wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.gz # Tar zxvf ruby-1.8.7-p174.tar.gz # Cd ruby-1.8.7-p174 #./Configure -- prefix =/usr/local/ruby # Make & make install Set Set Ruby Ring Environment Change Quantity # Cd ~ # Vi. bash_profile Add the following line Export PATH = $ PATH:/usr/local/ruby/bin Save and exit : Wq # .. Bash_profile (Note: If make fails, it may be that the GCC script library is not installed in Red Hat)
2,RubyGemsInstall
# wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
# Tar zxvf rubygems-1.3.5.tgz
# cd rubygems-1.3.5
# ruby setup.rb
3,RakeInstall#Gem install rake//Direct useGemCommand InstallationRake.//You can also download the installation address:Http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz 4,Ruby on Rails# Gem install rails(Note: If the installation fails, the version of RubyGems may be too low. You can use gem-v update to upgrade it) 5. Redmine Installation# Wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz# Tar zxvf redmine-0.8.4.tar.gz# MvRedmine-0.8.4/usr/local/redmine# Cd/usr/local/redmine/configSetSet DataLibraryParameters# Cp database. yml. example database. yml# Vi database. ymlProduction:Adapter: mysqlDatabase: redmineHost: localhostUsername: redmineuserPassword: redminepwEncoding: utf8Save and exit: Wq
6. CreateCreateMysqlDataLibrary
# Wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
# Tar zxvf mysql-5.0.22.tar.gz
# Cd mysql-5.0.22
#. /Configure -- prefix =/usr/local/mysql -- localstatedir =/usr/local/mysql/data/-- without-innodb -- without-debug -- with-extra-charsets = gbk -- with-extra-charsets = all -- enable-consumer er -- with-pthread -- enable-thread-safe-client -- with-client-ldflags =-all-static
"Thank you for choosing MySQL!" is displayed after the configuration is successful !" Prompt.
# Make & make install
Mysql
Configuration
# Cp./support-files/mysql. server/etc/init. d/mysql# Groupadd mysql# Useradd-g mysql# Chmod 777/etc/init. d/mysql#/Usr/local/mysql/bin/mysql_install_db
# Chown-R mysql: mysql/usr/local/mysql/data/
Start
Mysql# Service mysql start#/Usr/local/mysql/bin/mysqladmin-u root-p password 'rootpw '//Set passwordRootpwEnter password ://The default password is blank, so press Enter.#/Usr/local/mysql/bin/mysql-u root-pEnter password ://The new password is successfully entered.#/Usr/local/mysql/bin/mysql-u root-pMysql>
create database redmine default character set utf8;
Grant all on
redmine
. * To root;Grant all on
redmine
. * To root @ localhost;Grant all on
redmine
. * To redmineuser;Grant all on
redmine
. * To redmineuser @ localhost;Set password for redmineuser @ localhost = password ('redminpw ');Mysql> exit;
RemineSetSet
(Note that the directory must be in
Redmine/
config
.)
# rake db:migrate RAILS_ENV="production" //
CreateCreateTable#
rake redmine:load_default_data RAILS_ENV="production" /
/
Add
LoadMoRecognizeConfigurationSelect the default language.Zh:Select language: bg, ca, cs, da, de, en, es, fi, fr, he, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sk, sr, sv, th, tr, uk, vn, zh, zh-tw [en] zhThis default setting is only the interface language when the user is not logged on. After the user logs on, the default language is English.My accountTo other languages.
Qi
Dynamic
WEB
Server
Services
#
ruby script/server
webrick -e production
Or
# Ruby/usr/local/redmine/script/server webrick-e productionStopWebService Method: In the current startup window, pressCtrl + CAccessHttp:/// ip: 3000/InitialUseUserName/PasswordCode:Admin/adminIn this way, the startup window cannot be closed.EnableRedmineWorkIsServerServicesStart,Add-DParameters:
# ruby script/server webrick -e production
-D
Or
# Ruby/usr/local/redmine/script/server webrick-e production-dHow to stop a service :(PsCommand to find outPidAnd then kill it. It seems like this is the only thing I can do now.-- HelpThere are no parameters to stop .)(Note: If you use tools such as SSH to remotely log on to Liunx, you must use the following command to start the service and then CTRL + D to disconnect SSH.
./UACenterSvr &Ruby/usr/local/redmine/script/server webrick-e production-d