Maison  >  Article  >  base de données  >  Bandwidthd+PostgreSQL数据库配置笔记

Bandwidthd+PostgreSQL数据库配置笔记

WBOY
WBOYoriginal
2016-06-07 17:33:251184parcourir

一、安装前的准备工作 (1)安装前请参考,了解Postgresql数据库的安装配置。 (2)创建 bandwidthd-pgsql 账号,该账户用来让Ba

一、安装前的准备工作

(1)安装前请参考,了解Postgresql数据库的安装配置。

(2)创建 bandwidthd-pgsql 账号,该账户用来让Bandwidthd登录Postgresql数据库的

root@Ubuntu:~# su - postgres
postgres@ubuntu:~$ psql
psql (9.1.9)
Type "help" for help.

postgres=# CREATE USER bandwidthdpgsql;
CREATE ROLE
postgres=# ALTER USER bandwidthdpgsql PASSWORD '123456';
ALTER ROLE
postgres=# \q
postgres@ubuntu:~$ exit
logout
root@ubuntu:~#

(3)创建数据库

create database bandwidthdpgsql;

和第(2)步一样,,还是用 su - postgres登录后执行

说明:

在Ubuntu下,不需要用 schema.postgresql 这个脚本创建表了。这一点和用源码安装方式有点不一样,可能是Ubuntu实在是考虑的比较周全把。

 

二、安装Bandwidthd软件包

apt-get install bandwidthd-pgsql

 




更多详情见请继续阅读下一页的精彩内容:

PostgreSQL 的详细介绍:请点这里
PostgreSQL 的下载地址:请点这里

PostgreSQL缓存详述

Windows平台编译 PostgreSQL

Ubuntu下LAPP(Linux+Apache+PostgreSQL+PHP)环境的配置与安装

Ubuntu上的phppgAdmin安装及配置

linux

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Article précédent:详解Oracle rowid之来龙去脉Article suivant:细说ORA-01450错误