Liunx RedHat 9 下面Redmin的安装手册 RedHatMySQLRubyRailsrubygems
Liunx RedHat 9 下面Redmin的安装手册
1、Ruby安装
# wget http://download.mysql.cn/download_file/gz/5.0/mysql-5.0.22.tar.gz
2、RubyGems安装
# cd rubygems-1.3.5
# ruby setup.rb
3、Rake安装
4、Ruby on Rails
5、Redmine安装
# tar zxvf redmine-0.8.4.tar.gz
# mv redmine-0.8.4 /usr/local/redmine
# cd /usr/local/redmine/config
设置数据库参数
6. 创建mysql数据库
# 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 # /usr/local/mysql/bin/mysql -u root -p
create database redmine default character set utf8;
redmine
.* to root;
redmine
.* to root@localhost;
redmine
.* to redmineuser;
redmine
.* to redmineuser @localhost;
Remine设定
(注意此时的目录一定要在
redmine/config
里,不然会出错,本文后面有错误信息。)
# rake db:migrate RAILS_ENV="production" //
创建表
rake redmine:load_default_data RAILS_ENV="production" /
/
加
载默认配置
启
动
WEB
服
务
ruby script/server
webrick -e production
或
# ruby /usr/local/redmine/script/server webrick -e production
# ruby script/server webrick -e production
-d
或
# ruby /usr/local/redmine/script/server webrick -e production –d
)
上一篇: Xlua之简单热更新
下一篇: 腾讯 Bugly热更新技术