Graphite: Instalasi: Difference between revisions
From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs) No edit summary |
Onnowpurbo (talk | contribs) |
||
| Line 16: | Line 16: | ||
==Buat Database User dan Database== | |||
sudo -u postgres psql | |||
Buat database graphite, user graphite dengan password graphite | |||
CREATE USER graphite WITH PASSWORD 'graphite'; | |||
CREATE DATABASE graphite WITH OWNER graphite; | |||
\q | |||
==Referensi== | ==Referensi== | ||
* https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server | * https://www.digitalocean.com/community/tutorials/how-to-install-and-use-graphite-on-an-ubuntu-14-04-server | ||
Revision as of 01:09, 23 February 2016
Instalasi
sudo apt-get update sudo apt-get install graphite-web graphite-carbon
Jika di tanya "Carbon to remove the database files" bisa jawab "No" jika kita tidak ingin data yang sudah ada hilang. Jika ini merupakan instalasi yang fresh / baru, kita bisa jawab "Yes".
Install PostgreSQL
sudo apt-get install postgresql libpq-dev python-psycopg2
Buat Database User dan Database
sudo -u postgres psql
Buat database graphite, user graphite dengan password graphite
CREATE USER graphite WITH PASSWORD 'graphite'; CREATE DATABASE graphite WITH OWNER graphite; \q