Last active
September 6, 2018 08:39
-
-
Save nikhilbchilwant/bd819542bf56d908d9c9b9fbd96c96b0 to your computer and use it in GitHub Desktop.
Commonlt used commands by developer working on Ubuntu 16.04 + Postgres + Java
This file contains 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
Restart postgres server : /etc/init.d/postgresql restart | |
Get connection count : SELECT sum(numbackends) FROM pg_stat_database; | |
Get databases : \l | |
Quit psql : \q | |
Edit authorization : sudo vim /etc/postgresql/9.5/main/pg_hba.conf | |
Edit connections : sudo vim /etc/postgresql/9.5/main/postgresql.conf | |
Clean mven local repository : mvn dependency:purge-local-repository |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment