環境:Ubuntu Server 10.04
【快速安裝】
編輯 apt 來源:
sudo vim /etc/apt/source.list
在檔案最後加上:
deb http://ppa.launchpad.net/ondrej/redmine/ubuntu lucid main
deb-src http://ppa.launchpad.net/ondrej/redmine/ubuntu lucid main
執行:
sudo apt-get install apache2 sqlite3
sudo apt-get install redmine
sudo ln -s /usr/share/redmine/public /var/www/redmine
移除:
sudo apt-get autoremove redmine
【環境設定】
如果需要設定 apt-get 的 proxy:
vim /etc/apt/apt.conf.d/70debconf 加入: Acquire::http::Proxy "http://YOUR_PROXY_SERVER:YOUR_PROXY_PROT";
先把 Redmine 的 PPA 加入 apt-get sources.list:
sudo add-apt-repository ppa:ondrej/redmine如果以上步驟有問題,則手動 import GPG Public Key。
下載 Redmine PPA 的 Public Key。
(http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4F4EA0AAE5267A6C)
把內容復制存成文字檔 redmine.public.key,然後:
sudo apt-key add redmine.public.key
sudo apt-get install python-software-properties sudo apt-get update sudo apt-get upgrade sudo apt-get install apparmor-profiles sudo apt-get install tasksel sudo tasksel install lamp-server sudo aa-complain /usr/sbin/mysqld sudo apt-get install redmine redmine-mysql subversion sudo aa-enforce /usr/sbin/mysqld sudo ln -s /usr/share/redmine/public /var/www/redmine sudo apt-get install libapache2-mod-passenger
vim /etc/apache2/mods-available/passenger.conf 加入:
PassengerDefaultUser www-data
vim /etc/apache2/sites-available/redmine
<directory/var/www/redmine> RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory>
sudo chmod a+x /usr/share/redmine/public sudo a2enmod passenger sudo a2ensite redmine sudo /etc/init.d/apache2 restart
檢查 http://localhost/redmine
預設的資料庫名稱:redmine_default
預設的資料庫帳號:redmine
預設的資料庫密碼:安裝過程中使用者設定
預設的資料庫設定:/etc/redmine/default/database.yml
預設檔案儲存路徑:/var/lib/redmine/default/files/
Redmine 安裝路徑:/usr/share/redmine
Reference:
http://zx-1986.blogspot.com/2011/02/redmind.html
https://help.ubuntu.com/community/AppArmor
https://help.ubuntu.com/community/Tasksel
www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu