您的位置:軟件測(cè)試 > 軟件項(xiàng)目管理 > 項(xiàng)目管理綜合 >
項(xiàng)目管理軟件?Redmine安裝配置
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2016/8/2 14:26:38 ] 推薦標(biāo)簽:項(xiàng)目管理

  redmine是一個(gè)開(kāi)源的項(xiàng)目管理軟件,其主頁(yè)是:http://www.redmine.org
  redmine是基于Ruby on Rails框架的,跨平臺(tái)和跨數(shù)據(jù)庫(kù)。
  安裝過(guò)程
  ===========================
  1. 到主頁(yè)下載redmine的源碼包并解壓
  2. 根據(jù)redmine的版本,安裝對(duì)應(yīng)的ruby版本
  3. 安裝數(shù)據(jù)庫(kù):這里選擇mysql數(shù)據(jù)庫(kù)
  4. 在數(shù)據(jù)庫(kù)中創(chuàng)建redmine所使用的用戶(hù)和庫(kù)
  CREATE DATABASE redmine CHARACTER SET utf8;
  CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
  GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
  5. 修改redmine數(shù)據(jù)庫(kù)連接配置
  到redmine解壓目錄下的:cp config/database.yml.example  config/database.yml
  配置如下:
  production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: my_password
  6. redmine依賴(lài)安裝
  redmine使用Bundler管理gems依賴(lài),所以首先安裝Bundler,執(zhí)行:
  gem install bundler
  然后安裝所有的gems依賴(lài),執(zhí)行:
  bundle install --without development test
  7. 可選依賴(lài)RMagick (操作圖片),執(zhí)行:
  bundle install --without development test rmagick
  8. 生成session加密秘鑰
  bundle exec rake generate_secret_token
  9. 生成數(shù)據(jù)庫(kù)結(jié)構(gòu)
  RAILS_ENV=production bundle exec rake db:migrate
  10. 生成數(shù)據(jù)庫(kù)數(shù)據(jù)
  RAILS_ENV=production bundle exec rake redmine:load_default_data
  11. 文件目錄及權(quán)限(根據(jù)自己實(shí)際情況修改)
  mkdir -p tmp tmp/pdf public/plugin_assets
  sudo chown -R redmine:redmine files log tmp public/plugin_assets
  sudo chmod -R 755 files log tmp public/plugin_assets
  12. 啟動(dòng)redmine
  bundle exec rails server webrick -e production -b 0.0.0.0
  13. 訪問(wèn):http://ip:3000
  用戶(hù):admin admin

軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd