感谢支持
我们一直在努力

RedHat Liunx 9 下面Redmin的安装手册

1Ruby安装
Ruby on Rails网站推荐使用1.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
Ruby
# cd ~
# vi .bash_profile
添加下面一行
export PATH=$PATH:/usr/local/ruby/bin
保存退出:wq
# . .bash_profile
(注意:如果make不成功,可能是红帽子没有安装GCC脚本库)
 
2RubyGems安装
# 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
 

3Rake安装
# gem install rake   //直接使用gem命令安装rake.
//也可以下载安装地址:http://rubyforge.org/frs/download.php/56872/rake-0.8.7.tgz
 

4Ruby on Rails
# gem install rails
(注意:如果安装不成功,可能是RubyGems版本太低,可以用gem -v update 升级)
 

5、Redmine安装
# 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

置数据参数
# cp database.yml.example database.yml
# vi database.yml
production:
  adapter: mysql
  database:redmine
  host: localhost
  username: redmineuser
  password: redminepw
  encoding: utf8
保存退出:wq
 

6. 创mysql数据

# 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-assembler –with-pthread –enable-thread-safe-client –with-client-ldflags=-all-static
配置成功出现“Thank you for choosing MySQL!”提示。
# make && make install   


 


Mysql配置
# cp ./support-files/mysql.server /etc/init.d/mysql
# groupadd mysql
# useradd –g mysql mysql
# chmod 777 /etc/init.d/mysql
# /usr/local/mysql/bin/mysql_install_db
# chown -R mysql:mysql /usr/local/mysql/data/
启动Mysql
# service mysql start
# /usr/local/mysql/bin/mysqladmin –u root –p password ‘rootpw’       //设置密码为rootpw
Enter password:                 //默认密码为空,所以直接回车
# /usr/local/mysql/bin/mysql –u root –p
Enter password:                 //输入新密码后,登录成功

# /usr/local/mysql/bin/mysql -u root -p
Mysql> 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
(注意此时的目录一定要在redmine/config里,不然会出错,本文后面有错误信息。)
# rake db:migrate RAILS_ENV=”production”         //
# rake redmine:load_default_data RAILS_ENV=”production”        //配置
这里会要求选择默认语言,我选的中文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] zh
这个默认设置只是在未登录时的界面语言,当用户登录后,默认语言还是英语,在My account里可以修改成其它语言。
WEB
# ruby script/server webrick -e production
# ruby /usr/local/redmine/script/server webrick -e production
停止web服务方法:在当前启动窗口按ctrl+C
访问http://ip:3000/

初始/admin/admin
这样启动后,启动窗口是不能关闭的,所以要使Redmine启动需添加-d参数:
# ruby script/server webrick -e production -d
# ruby /usr/local/redmine/script/server webrick -e production –d
停止服务方法:(ps命令查出此进程的pid号,再杀掉,目前好像只能这样,我看了–help里面,还没有停止的参数。)

(注意:如果你使用SSH这类工具远程登录Liunx, 你必须用以下命令启动服务,然后CTRL+D断开SSH
./UACenterSvr & ruby /usr/local/redmine/script/server webrick -e production –d

赞(0) 打赏
转载请注明出处:服务器评测 » RedHat Liunx 9 下面Redmin的安装手册
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏