Ubuntu postgresql 9.3 installation for RoR
Add repository and install Postgresql:
Then make yourself a Postgresql superuser:
After that you can run postgresql console with command:
Setup postgres for RoR: setup postgres for RoR
COPY
sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
COPY
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
COPY
sudo apt-get update
COPY
sudo apt-get install postgresql-common
COPY
sudo apt-get install postgresql-9.3 libpq-dev
COPYsudo su postgres
COPYcreateuser your_system_login
COPYpsql
COPY
ALTER ROLE your_system_login WITH SUPERUSER;
COPY\q
COPY
exit
COPYpsql postgres
Tidak ada komentar:
Posting Komentar