開源項目管理工具redmine windows下安裝步驟

<!-- /* Font Definitions */ @font-face {font-family:宋體; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:-1610611985 1073750139 0 0 159 0;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:536871559 0 0 0 415 0;} @font-face {font-family:"/@宋體"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:宋體; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-font-kerning:1.0pt;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple; mso-themecolor:followedhyperlink; text-decoration:underline; text-underline:single;} p {mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:宋體; mso-bidi-font-family:宋體;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page WordSection1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:15.6pt;} div.WordSection1 {page:WordSection1;} -->

步驟一:下載Redminehttp://www.redmine.org/wiki/redmine/Download


步驟二:下載Ruby 1.8.7 。目前Redmine 的版本還不支持1.9Ruby.http://www.ruby-lang.org/en/downloads/

安裝完畢後,設置環境變量。Path 中加入ruby 的安裝目錄/bin ,。例如C:/Ruby187/bin.


步驟三:安裝Rails ,打開Ruby 的命令行,輸入gem install rails -v=2.3.5gem install rack -v=1.01 自動安裝,這個根據網速,時間不等。


步驟四: 安裝mysql (mysql-essential-5.1.40-win32) 運行gem install mysql ,安裝MySQLC 語言庫,rails 2.3 以後已經將MySQLC 語言庫移出,所以要另外安裝。對於MySQL ,創建數據庫。create database redmine character set utf8;


步驟五:解壓下載的 Redmine( 例如解壓後放到 c:) ,拷貝 config/database.yml.example config/database.yml 裏面,並編輯 production 環境對應的數據配置信息。如下:  

 production:

  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: my_password

步驟六:在命令行進入到 redmine 的解壓目錄,運行命令 rake generate_session_store ,生成 Session 密鑰。

步驟七:運行命令 rake db:migrate RAILS_ENV="production" 創建數據庫。

Remark: 如果遇到問題錯誤,syntax error on line 14, col 2: `  encoding: utf8' ;這是因爲password 前面要有一個空格。
如果出現:Mysql::Error: query: not connected: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB 
這是因爲MySQL 的版本不匹配的問題,使用低版本的MySQLlibmySQL.dll( 下載地址
http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/ 將其保存到rubybin 目錄下面

步驟八: rake redmine:load_default_data RAILS_ENV="production" 該命令將填充默認的配置數據。該命令運行過程中需要選擇語言,一般輸入 zh   簡體中文)


步驟九:由於默認的環境是使用的webrick 的服務器,性能很低。所以更換爲mongrel 的服務器,運行如下命令

gem install mongrel


步驟十:命令行下,進入到redmine 安裝目錄,運行mongrel_rails start -e production

步驟十一:瀏覽器打開redmine ,地址如下

http://131.252.85.200:3000

超級管理員 u:admin p:admin

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章