Linux环境下 Redmine 的安装
Redmine 的安装(Linux环境下)
参考 :http://www.oschina.net/bbs/thread/8357
?
参考:
http://xiwi.org/index.php/Redmine/%E5%AE%89%E8%A3%85redmine
?
[1]首先安装 Ruby
?
-
tar?xzvf?ruby-xxx.tar.gz??
-
cd?ruby-xxx??
-
./configure?-?prefix=/usr/local/ruby??
-
make??
-
make?install???
tar xzvf ruby-xxx.tar.gz
cd ruby-xxx
./configure - prefix=/usr/local/ruby
make
make install
?其中xxx是版本号。
需要将Ruby的安装路径追加进系统PATH
将下列内容追加进/etc/profile中
?
-
export
?PATH=/usr/local/ruby/bin:$PATH 【我重启了服务器才生效】
export PATH=/usr/local/ruby/bin:$PATH
?
[2]然后安装gem
下载rubygems
http://rubyforge.org/projects/rubygems/
? 我下载的是1.6.2
[3]安装Rails
?
通过gem来安装Rails
-
$gem?install?rails?--include-dependencies??
$gem install rails --include-dependencies
?
[4]初始化数据库
-
mysql>?create?database?redminedb??
-
??
-
?default
?character?set?UTF8;??
mysql> create database redminedb
default character set UTF8;
[5]安装Remind
?
http://rubyforge.org/frs/?group_id=1850&release_id=43474
这里要下载你redmine对应支持的版本
大家如果不清楚关系,可以到官网查看 http://www.redmine.org/wiki/redmine/RedmineInstall
Redmine
安装
?
# wget http://rubyforge.org/frs/download.php/56909/redmine-0.9.4.tar.gz
# tar zxvf redmine-0.9.4.tar.gz
# mv redmine-0.9.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: redmi