Redmin installation manual under liunx RedHat 9
1. Ruby Installation
Version 1.8.7 is recommended for the Ruby on Rails website.# 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 Ruby environment variable # Cd ~ # Vi. bash_profile Add the following row 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. rubygems Installation
# 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. Rake installation # gem install rake // directly use the gem command to install rake. // 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 is not successful, it may be rubygems version is too low, can be upgraded using gem-V update)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 # mv redmine-0.8.4/usr/local/redmine # cd/usr/local/redmine/config set database parameters # cp database. yml. example database. yml # vi database. ymlproduction: adapter: MySQL database: redmine HOST: localhost Username: redmineuser password: redminepw encoding: utf8 save and exit: WQ
6. Create a MySQL database
# 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 the password to rootpwenter password: // the default password is null, so press Enter #/usr/local/MySQL/bin/MySQL-u root-penter password: // after entering the new password, login successful #/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;
Remine settings
(Note that the directory must be inRedmine/
config
.)
# rake db:migrate RAILS_ENV="production" //Create a table #
rake redmine:load_default_data RAILS_ENV="production" /
/
AddSelect the default language. Select 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, en, ZH-tw [En] Zh. The default setting is only the interface language when the user is not logged on. After the user logs on, the default language is English, in my account, you can change it to another language.
Qi
Dynamic
WEB
Server
Services#
ruby script/server
webrick -e production
Or# Ruby/usr/local/redmine/script/Server webrick-e production stop web service method: In the current startup window, press Ctrl + C to access http: // IP: 3000/initial username/password: the startup window cannot be closed after admin/admin is started. To enable redmine as a service, add the-D parameter:
# ruby script/server webrick -e production-D
Or# Ruby/usr/local/redmine/script/Server webrick-e production-d stop service method: (The ps command finds the PID Number of the process and then kills it. Currently, it seems that this is the only way to stop it, I have read the -- Help file and there is no stop parameter .) (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
)