Welcom ,I hope yo will enjoy here!

Ubuntu+Redmine+postgres+passenger+nginx环境搭建

一、运行环境

    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

posted on 2011-09-21 14:20  北国的雨  阅读(1118)  评论(0编辑  收藏  举报

导航