CentOS5 安裝 redmine 1.0.2 筆記
1 增加RubyWorks 的Repo, 把以下內容存成 /etc/yum.repos.d/rubyworks.repo
# Link file for RubyWorks yum repository
# Place this file in /etc/yum.repos.d
[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1
2 安裝 Ruby on Rails
yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql
3 下載 Ruby Gems 並安裝
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar xvfz rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb
4 安裝 Rails
gem update -–system
gem install rails -v=2.3.5
5 下載 RedMine 主程式
wget http://rubyforge.org/frs/download.php/72627/redmine-1.0.2.tar.gz
tar xvzf redmine-1.0.2.tar.gz
6 建立redmine使用者
useradd redmine
passwd redmine
7 建立redmine資料庫
mysql -u root -p
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';
8 建立 RedMine 的 database.yml 檔案
cp config/database.yml.example config/database.yml
9 修改 database.yml 內容
vim /usr/local/redmine-0.8/config/database.yml
production:
adapter: mysql
database: redmine
host: localhostuser
name: redmine
password: **你的redmine密碼**
socket: /var/lib/mysql/mysql.sock
10 設定 RedMine
RAILS_ENV=production rake config/initializers/session_store.rb
11 建立資料庫
rake db:migrate RAILS_ENV=production
rake redmine:load_default_data RAILS_ENV=production
12 啟動 WebBrick Server
ruby script/server -e production &
13 開啟瀏覽器輸入 http://localhost:3000
帳號:admin
密碼:admin
即可登入使用.
延伸閱讀:
CentOS 安裝 RedMine 專案管理程式 - 備忘錄
http://shyam.blog127.fc2.com/blog-entry-6.html
Redmine official install guide
http://www.redmine.org/wiki/redmine/RedmineInstall
Redmine LDAP啟用認證
http://www.redmine.org/wiki/1/RedmineLDAP
# Link file for RubyWorks yum repository
# Place this file in /etc/yum.repos.d
[rubyworks]
name=RubyWorks
baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch
enabled=1
gpgcheck=1
gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key
priority=1
2 安裝 Ruby on Rails
yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql
3 下載 Ruby Gems 並安裝
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar xvfz rubygems-1.3.7.tgz
cd rubygems-1.3.7
ruby setup.rb
4 安裝 Rails
gem update -–system
gem install rails -v=2.3.5
5 下載 RedMine 主程式
wget http://rubyforge.org/frs/download.php/72627/redmine-1.0.2.tar.gz
tar xvzf redmine-1.0.2.tar.gz
6 建立redmine使用者
useradd redmine
passwd redmine
7 建立redmine資料庫
mysql -u root -p
create database redmine character set utf8;
create user 'redmine'@'localhost' identified by 'my_password';
grant all privileges on redmine.* to 'redmine'@'localhost';
8 建立 RedMine 的 database.yml 檔案
cp config/database.yml.example config/database.yml
9 修改 database.yml 內容
vim /usr/local/redmine-0.8/config/database.yml
production:
adapter: mysql
database: redmine
host: localhostuser
name: redmine
password: **你的redmine密碼**
socket: /var/lib/mysql/mysql.sock
10 設定 RedMine
RAILS_ENV=production rake config/initializers/session_store.rb
11 建立資料庫
rake db:migrate RAILS_ENV=production
rake redmine:load_default_data RAILS_ENV=production
12 啟動 WebBrick Server
ruby script/server -e production &
13 開啟瀏覽器輸入 http://localhost:3000
帳號:admin
密碼:admin
即可登入使用.
延伸閱讀:
CentOS 安裝 RedMine 專案管理程式 - 備忘錄
http://shyam.blog127.fc2.com/blog-entry-6.html
Redmine official install guide
http://www.redmine.org/wiki/redmine/RedmineInstall
Redmine LDAP啟用認證
http://www.redmine.org/wiki/1/RedmineLDAP
留言