Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. root@foobar:/etc/postgresql/9.5/main# netstat -tulpen
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
  4. tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 112 44384 25831/postgres
  5. tcp 0 0 0.0.0.0:3451 0.0.0.0:* LISTEN 0 94839 15010/sshd
  6. tcp6 0 0 :::5432 :::* LISTEN 112 44385 25831/postgres
  7. tcp6 0 0 :::3451 :::* LISTEN 0 94848 15010/sshd
  8.  
  9. data_directory = '/mnt/whatever' # use data in another directory
  10. # (change requires restart)
  11. hba_file = '/etc/postgresql/9.5/main/pg_hba.conf' # host-based authentication file
  12. # (change requires restart)
  13. ident_file = '/etc/postgresql/9.5/main/pg_ident.conf' # ident configuration file
  14. # (change requires restart)
  15.  
  16. root@foobar:/# netstat -tulpen
  17. Active Internet connections (only servers)
  18. Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
  19. tcp 0 0 0.0.0.0:3451 0.0.0.0:* LISTEN 0 94839 15010/sshd
  20. tcp6 0 0 :::3451 :::* LISTEN 0 94848 15010/sshd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement