2010年(8)
分类: LINUX
2010-08-04 01:24:35
| OS | Debian Lenny |
| IP | 192.168.1.100 |
| SVN 目录 | /opt/svn |
| SVN 仓库 | /opt/svn/repo1 /opt/svn/repo2 |
| SVN 用户 | test1 test2 |
| 用于访问认证管理的 PostgreSQL 数据库 | svn |
| PostgreSQL 用户 | svn |
# apt-get install apache2 libapache2-mod-auth-pgsql libapache2-svn\ postgresql postgresql-contrib subversion cert-ssl |
$ sudo su postgres postgres $ createdb svn CREATE DATABASE postgres $ createuser svn Shall the new role be a superuser? (y/n) n Shall the new user be allowed to create databases? (y/n) n Shall the new user be allowed to create more new users? (y/n) n CREATE USER |
postgres $ psql -d svn < /usr/share/postgresql/8.3/contrib/pgcrypto.sql SET CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION ... |
postgres $ psql -d svn svn =# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|