一、運行環境
OS: ubuntu 10.10
DB: postgres
server: nginx + passenger
Redmine: 1.2
二、 安裝過程
參考: http://www.redmine.org/projects/redmine/wiki/RedmineInstall
1.安裝passenger + nginx
gem install passenger
passenger-install-nginx-module #安裝nginx
2. 安裝Postgresql
安裝資料庫 sudo apt-get install postgresql
修改Linux使用者postgres的密碼 sudo passwd postgres
修改資料庫超級使用者postgres的密碼
切換到Linux下postgres使用者 sudo su postgres
登入postgres資料庫 psql postgres
修改密碼 ALTER USER postgres with PASSWORD '新密碼';
添加自訂的使用者和資料庫
添加使用者並修改密碼
create user 使用者名稱;
ALTER USER 使用者名稱 with PASSWORD '新密碼';
建立個屬於自訂使用者的資料庫
create database 資料庫名 owner 使用者名稱
查詢資料庫和表以及使用者
select * from pg_database;
select * from pg_user;
select * from pg_tables;
\q退出
退出postgres使用者模式 exit
修改/etc/postgresql/8.4/main/pg_hba.conf 設定檔將md5為trust
sudo vi /etc/postgresql/8.4/main/pg_hba.conf
local trust
hosts trust
重啟postgres
sudo /etc/init.d/postgresql-8.4 restart
3. 其餘步驟參考
http://www.redmine.org/projects/redmine/wiki/RedmineInstall