Skip to content

Instantly share code, notes, and snippets.

@icyleaf
Last active December 28, 2015 18:19
Show Gist options
  • Save icyleaf/7542222 to your computer and use it in GitHub Desktop.
Save icyleaf/7542222 to your computer and use it in GitHub Desktop.

Postgresql

$ sudo rpm -i http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm
$ sudo yum update
$ sudo yum install -y postgresql93-server postgresql93-contrib postgresql93-client

postgresql contrib path: /usr/pgsql-9.3/share/extension/

$ psql -d {database_name} -f /usr/pgsql-9.3/share/extension/hstore.sql

or in sql shell: create extension hstore;

listen all address

$ vim /var/lib/pgsql/9.3/data/postgresql.conf

change listen_address = '*'

user remote access

$ vim /var/lib/pgsql/9.3/data/pg_hbd.conf

add one line:

host all all <source_ip>.1/32 password

Virtualbox

cd /etc/yum.repos.d/ wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo sudo yum update sudo yum install -y VirtualBox-4.3

Run

/etc/init.d/vboxdrv setup

OR

service vboxdrv setup

Vagrant

sudo rpm -ivh http://files.vagrantup.com/packages/a40522f5fabccb9ddabad03d836e120ff5d14093/vagrant_1.3.5_i686.rpm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment