Created
July 12, 2015 14:40
-
-
Save knasyrov/97301801733a31c60521 to your computer and use it in GitHub Desktop.
ставим bucardo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install libboolean-perl libdbd-pg-perl libdbi-perl libdbix-safe-perl postgresql-plperl-9.3 | |
cd ~ | |
wget http://bucardo.org/downloads/Bucardo-5.3.1.tar.gz | |
tar xvzf Bucardo-5.3.1.tar.gz | |
cd Bucardo-5.3.1 | |
perl Makefile.PL | |
make | |
make install | |
mkdir /var/run/bucardo | |
mkdir /var/log/bucardo | |
/etc/postgresql/9.3/main/pg_hba.conf | |
добавим временно первое правило | |
local all all trust | |
ребутнем | |
/etc/init.d/postgresql restart | |
> bucardo install | |
будет | |
Current connection settings: | |
1. Host: <none> | |
2. Port: 5432 | |
3. User: postgres | |
4. Database: bucardo | |
5. PID directory: /var/run/bucardo | |
меняем 4(Database) на postgres | |
запускаем P | |
burcado встанет | |
выставим ему пароль | |
psql -U postgres -c "ALTER USER bucardo WITH PASSWORD 'bucardo';" | |
/etc/postgresql/9.3/main/pg_hba.conf | |
убираем временное правило | |
local all all trust | |
добавим правило для bucardo | |
host all bucardo 127.0.0.1/32 trust | |
сделаем ~/.bucardorc | |
port = 5432 | |
dbhost = 127.0.0.1 | |
dbname = bucardo | |
dbuser = bucardo | |
dbpass = bucardo | |
проверим bucardo status | |
там что-то напишет - значит все ок | |
главное чтобы ошибок не было |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment