Bandwidthd + PostgreSQL database configuration notes

Source: Internet
Author: User

I. Preparations before installation

(1) Before installation, see to learn about the installation and configuration of the Postgresql database.

(2) create a bandwidthd-pgsql account to log on to the Postgresql database

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 '123 ';
ALTER ROLE
Postgres = # \ q
Postgres @ ubuntu :~ $ Exit
Logout
Root @ ubuntu :~ #

(3) create a database

Create database bandwidthdpgsql;

Like step (2), log on with su-postgres and execute

Note:

In Ubuntu, you do not need to use the schema. postgresql script to create a table. This is a bit different from the source code installation method. It may be that Ubuntu is fully considered.

 

Ii. Install the Bandwidthd package

Apt-get install bandwidthd-pgsql

 




For more details, please continue to read the highlights on the next page:

PostgreSQL details: click here
PostgreSQL: click here

PostgreSQL cache details

Compiling PostgreSQL on Windows

Configuration and installation of LAPP (Linux + Apache + PostgreSQL + PHP) Environment in Ubuntu

Install and configure phppgAdmin on Ubuntu

  • 1
  • 2
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.