Ubuntu12.04 postgreSQL9.1 installation

Introduce postgresql installation and configuration on ubuntu12.04.

Preparation

Install postgresql9.1 with apt-get install

$sudo apt-get install -y postgresql-9.1 postgresql-client-9.1 postgresql-contrib-9.1 postgresql-server-dev-9.1

Modify default postgres user password

Modify password for postgres in ubuntu

If you need to alter postgresql max_connection, you need to edit /etc/sysctl.d/30-postgresql-shm.conf

	kernel.shmmax = 2141943040
	kernel.shmall=524288

Cheers!

149 Words 12 November 2012 Suzhou, China