redmine3.3安裝筆記
本筆記是記錄redmine在linux centos6.8 x86_64下的安裝過程。redmine 是ruby寫的專案管理工具,中間需要用到web伺服器webrick,其中webrick在redmine已經有了,另外需要安裝的是mysql、ruby、bundler。
1.在官網下載redmine3.3.1到linux下。解壓後目錄:
[root@wiki redmine-3.3.1]# ls
app bin config.ru db extra Gemfile lib plugins Rakefile script tmp
appveyor.yml config CONTRIBUTING.md doc files Gemfile.lock log public README.rdoc test vendor
2.檢視安裝檔案install ,$redmine_home/doc/install檔案:
告訴我們,至少要ruby1.9版本以上,mysql5.1以上。ruby1.9以上gem.
rubygems,bundler是ruby的打包安裝器,類似rpm和yum。
3.安裝ruby ,請網上百度搜尋關鍵字:“ruby 2.2 安裝”。這裡我只說下重點:ruby安裝有依賴包,請先安裝ruby依賴包,否則會出現如下錯誤:
4.ruby 安裝好後,有個源要更改,否則gem 安裝東西的時候,特別慢。gem是什麼玩意?就是從遠端伺服器搜尋ruby包,下載本地安裝的工具,類似yum,rpm。
gem sources --add http://gems.ruby-china.org/ --remove https://rubygems.org/
5.ruby安裝好後,安裝bundler. bundler的官網是http://bundler.io/
==================分割線=======================
以上軟體都準備好之後,可以按照install,往下安裝。
以下是摘錄redmine軟體解壓,找到安裝檔案install:
3. Configure the database parameters in config/database.yml
在config中copy一份database.yml.example,然後根據情況更改。
在這裡,你可能會疑惑mysql2是什麼意思?其實這是ruby連線mysql的一種驅動程式。如下
[root@wiki config]# gem list |grep mysql
mysql2 (0.4.5, 0.3.21)
驗證:你需要在本地驗證測試一下,看看能不能連線上資料庫,mysql -uredmine -predmine123.
4. Install the required gems by running:
bundle install --without development test
在這個步驟,你會看到bundle 在刷刷的安裝程式,把相互依賴的程式都安裝了,類似yum,類似perl的cpanm。是不是很爽?
你還會看到,ruby通過mysql2連線程式連線到mysql資料庫,然後插入了很多表,很多資料。看下都有哪些表:
5. Generate a session store secret
bundle exec rake generate_secret_token
在這個步驟我報錯,不過我忽略了
7. Setting up permissions (Windows users have to skip this section)
我跳過,因為我全部都是在root下執行
8. Test the installation by running the WEBrick web server
Under the main application directory run:
ruby bin/rails server -e production
在這個步驟,請在redmine的安裝目錄下執行。就是ruby啟動了自動的web伺服器:webrick,可以看到,這個werick只是繫結在127.0.0.1 IP上監聽的,其他機器訪問不到,需要把上面命令稍微改造下:
nohup ruby bin/rails server -e production --binding=172.16.0.200 &
加引數--binding
好啦,大功告成,用瀏覽器登入看看:

最後在總結下:redmine是用ruby寫的,不熟悉ruby的朋友 ,能花個半天時間熟悉ruby,gem,bundler,安裝定能事半功倍。
1.在官網下載redmine3.3.1到linux下。解壓後目錄:
[root@wiki redmine-3.3.1]# ls
app bin config.ru db extra Gemfile lib plugins Rakefile script tmp
appveyor.yml config CONTRIBUTING.md doc files Gemfile.lock log public README.rdoc test vendor
2.檢視安裝檔案install ,$redmine_home/doc/install檔案:
點選(此處)摺疊或開啟
-
== Redmine installation
-
Redmine - project management software
-
Copyright (C) 2006-2016 Jean-Philippe Lang
-
http://www.redmine.org/
-
== Requirements
-
* Ruby >= 1.9.3
-
* RubyGems
-
* Bundler >= 1.5.0
-
* A database:
-
* MySQL (tested with MySQL 5.1)
-
* PostgreSQL (tested with PostgreSQL 9.1)
-
* SQLite3 (tested with SQLite 3.7)
-
* SQLServer (tested with SQLServer 2012)
-
Optional:
-
* SCM binaries (e.g. svn, git...), for repository browsing (must be
-
available in PATH)
- * ImageMagick (to enable Gantt export to png images)
rubygems,bundler是ruby的打包安裝器,類似rpm和yum。
3.安裝ruby ,請網上百度搜尋關鍵字:“ruby 2.2 安裝”。這裡我只說下重點:ruby安裝有依賴包,請先安裝ruby依賴包,否則會出現如下錯誤:
- ERROR: Loading command: install (LoadError)
- no such file to load — zlib
- ERROR: While executing gem … (NameError)
- uninitialized constant Gem::Commands::InstallCommand
4.ruby 安裝好後,有個源要更改,否則gem 安裝東西的時候,特別慢。gem是什麼玩意?就是從遠端伺服器搜尋ruby包,下載本地安裝的工具,類似yum,rpm。
gem sources --add http://gems.ruby-china.org/ --remove https://rubygems.org/
5.ruby安裝好後,安裝bundler. bundler的官網是http://bundler.io/
==================分割線=======================
以上軟體都準備好之後,可以按照install,往下安裝。
以下是摘錄redmine軟體解壓,找到安裝檔案install:
3. Configure the database parameters in config/database.yml
在config中copy一份database.yml.example,然後根據情況更改。
點選(此處)摺疊或開啟
-
production:
-
adapter: mysql2
-
database: redmine
-
host: localhost
-
username: redmine
-
password: "redmine123"
- encoding: utf8
[root@wiki config]# gem list |grep mysql
mysql2 (0.4.5, 0.3.21)
驗證:你需要在本地驗證測試一下,看看能不能連線上資料庫,mysql -uredmine -predmine123.
4. Install the required gems by running:
bundle install --without development test
在這個步驟,你會看到bundle 在刷刷的安裝程式,把相互依賴的程式都安裝了,類似yum,類似perl的cpanm。是不是很爽?
你還會看到,ruby通過mysql2連線程式連線到mysql資料庫,然後插入了很多表,很多資料。看下都有哪些表:
點選(此處)摺疊或開啟
-
mysql> show tables;
-
+-------------------------------------+
-
| Tables_in_redmine |
-
+-------------------------------------+
-
| attachments |
-
| auth_sources |
-
| boards |
-
| changes |
-
| changeset_parents |
-
| changesets |
-
| changesets_issues |
-
| comments |
-
| custom_field_enumerations |
-
| custom_fields |
-
| custom_fields_projects |
-
| custom_fields_roles |
-
| custom_fields_trackers |
-
| custom_values |
-
| documents |
-
| email_addresses |
-
| enabled_modules |
-
| enumerations |
-
| groups_users |
-
| import_items |
-
| imports |
-
| issue_categories |
-
| issue_relations |
-
| issue_statuses |
-
| issues |
-
| journal_details |
-
| journals |
-
| member_roles |
-
| members |
-
| messages |
- | news |
5. Generate a session store secret
bundle exec rake generate_secret_token
在這個步驟我報錯,不過我忽略了
7. Setting up permissions (Windows users have to skip this section)
我跳過,因為我全部都是在root下執行
8. Test the installation by running the WEBrick web server
Under the main application directory run:
ruby bin/rails server -e production
在這個步驟,請在redmine的安裝目錄下執行。就是ruby啟動了自動的web伺服器:webrick,可以看到,這個werick只是繫結在127.0.0.1 IP上監聽的,其他機器訪問不到,需要把上面命令稍微改造下:
nohup ruby bin/rails server -e production --binding=172.16.0.200 &
加引數--binding
好啦,大功告成,用瀏覽器登入看看:

最後在總結下:redmine是用ruby寫的,不熟悉ruby的朋友 ,能花個半天時間熟悉ruby,gem,bundler,安裝定能事半功倍。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30393770/viewspace-2128287/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Manjaro安裝筆記JAR筆記
- 【安裝】安裝centos79的筆記CentOS筆記
- Ubuntu安裝docker筆記UbuntuDocker筆記
- python 包安裝筆記Python筆記
- 安裝PHP ImageMagick筆記PHP筆記
- fabric 鏈碼安裝筆記筆記
- ROS筆記[3]-安裝mavrosROS筆記VR
- Git筆記(3) 安裝配置Git筆記
- 筆記本固態安裝筆記
- RabbitMQ學習筆記-安裝MQ筆記
- 黑蘋果安裝筆記蘋果筆記
- Debian 11 “bullseye” 安裝筆記筆記
- harbor安裝實操筆記筆記
- Docker安裝(學習筆記一)Docker筆記
- Mysql學習筆記(安裝篇)MySql筆記
- VisualStudio(Mac)安裝過程筆記Mac筆記
- matlab學習筆記一:安裝Matlab筆記
- monocle2安裝筆記【技巧】Mono筆記
- 在 Debian 上安裝 IntelliJ IDEA 筆記(含 JDK 的安裝)IntelliJIdea筆記JDK
- Flutter學習筆記 - 安裝,映象,配置Flutter筆記
- Golang學習筆記-IDE安裝指南Golang筆記IDE
- docker筆記3-docker的安裝Docker筆記
- docker筆記18-案例-安裝mysqlDocker筆記MySql
- 使用pip安裝selenium過程筆記筆記
- Docker筆記(三):Docker安裝與配置Docker筆記
- Linux 學習筆記 - 軟體安裝Linux筆記
- Java開發環境安裝筆記Java開發環境筆記
- Linux下Oracle 11.2.0.1 RAC安裝筆記LinuxOracle筆記
- HP筆記本驅動安裝教程筆記
- Redis學習筆記【01】 - 安裝RedisRedis筆記
- golang學習筆記(1):安裝&helloworldGolang筆記
- Linux 筆記分享十四:YUM 線上安裝Linux筆記
- Linux 筆記分享十五:原始碼包安裝Linux筆記原始碼
- Linux 筆記分享十六:指令碼安裝包Linux筆記指令碼
- Ubuntu 18.04安裝搜狗輸入法筆記Ubuntu筆記
- Redis安裝與配置(學習筆記一)Redis筆記
- PVE(Proxmox Virtual Environment) 安裝配置iStoreOS筆記筆記
- 小米筆記本 pro 安裝黑蘋果筆記蘋果
- 筆記: 環境 - Postgre從安裝到使用筆記