Heim  >  Artikel  >  Datenbank  >  Bandwidthd+PostgreSQL数据库配置笔记

Bandwidthd+PostgreSQL数据库配置笔记

WBOY
WBOYOriginal
2016-06-07 17:33:251186Durchsuche

一、安装前的准备工作 (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

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:详解Oracle rowid之来龙去脉Nächster Artikel:细说ORA-01450错误