Welcome 微信登录

首页 / 操作系统 / Linux / RedHat Liunx 9 下面Redmin的安装手册

1、Ruby安装

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脚本库) 2、RubyGems安装# 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安装

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

4、Ruby 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.ymlproduction:  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"       //设置密码为rootpwEnter password:                 //默认密码为空,所以直接回车# /usr/local/mysql/bin/mysql –u root –pEnter 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 –dGentoo Linux下配置NFS(网络文件系统)Linux系统对IO端口和IO内存的管理相关资讯      redhat  Redmin 
  • 为什么像 RedHat 那样的开源旗手很  (12/23/2014 07:50:53)
  • 红帽目录服务RHDS(Red Hat   (11/28/2012 19:14:22)
  • RedHat 6 配置网卡team  (09/28/2012 18:52:50)
  • RedHat Linux 用户登录认证失败  (06/24/2014 19:56:55)
  • Red Hat Enterprise Linux 5.8日志  (09/29/2012 11:41:27)
  • Red Hat Enterprise Linux 5---  (09/12/2012 17:10:35)
本文评论 查看全部评论 (0)
表情: 姓名: 字数