LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2012, 08:35 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 315

Rep: Reputation: 34
multiple instances of Postgres SQL are listening on port 7337


hi all,
I am using ubuntu 12.04 on my laptop and I have also metasploit framework installed on it.
I have noted that , even when I am not using the framework, I have about six instances of PGSL service listening on port 7337. The relevant extract fo output of the netstat command is as under :-
Quote:
.....
tcp 0 0 127.0.0.1:7337 0.0.0.0:* LISTEN off (0.00/0/0)
.....
tcp6 0 0 ::1:7337 :::* LISTEN off (0.00/0/0)
tcp6 0 0 ::1:39147 ::1:7337 ESTABLISHED keepalive (1170.74/0/0)
tcp6 0 0 ::1:39145 ::1:7337 ESTABLISHED keepalive (1146.16/0/0)
tcp6 0 0 ::1:39155 ::1:7337 ESTABLISHED keepalive (1232.18/0/0)
tcp6 0 0 ::1:7337 ::1:39145 ESTABLISHED keepalive (1146.16/0/0)
tcp6 0 0 ::1:39146 ::1:7337 ESTABLISHED keepalive (482.57/0/0)
tcp6 0 0 ::1:7337 ::1:39146 ESTABLISHED keepalive (482.57/0/0)
tcp6 0 0 ::1:39144 ::1:7337 ESTABLISHED keepalive (1162.54/0/0)
I understand that the last few are for tcp version 6 , but do I need them ? If not how to close these down?
Next as I understand only one service is running on port 7337 then why so many entries in the netstat output and so is in the case of conky's display ?
Lastly, should I have PGSQL running even when I donot need it, by which I mean when I am not using the metasploit framework. Surely, I donot use it always, so can't I have the PGSQL service starting only when I start metasploit framework ?

thanks in advance for your help and suggestions
bye
nkd
 
Old 11-16-2012, 01:03 AM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
Hi,

If you really think you are not using anything using postgres, you can shut it down. As for why all this, I find it amazing so much is using IPv6, but you have to understand that netstat list connections, not only LISTEN. As you can see, you only have one LISTEN per IP version, so only 1. The other are ESTABLISHED _connections_ to Postgres. So _something_ is using it after all. Most likely metasploit web gui / ruby on rails and other things like that. So before stopping PGSQL, track down what's using it and shut them down first.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat6 stops listening on port 80 when i change from port 8080 to port 80 trongthect Linux - Server 1 07-27-2012 06:41 PM
SQL (Postgres 8.3.3) And crypt Function. nukoso Programming 1 06-25-2008 02:27 PM
Hi Need Help Reg. Postgres SQL vikrambhimbar Linux - Software 3 08-18-2005 12:46 AM
Partitioning for Postgres SQL box SixCrayons Linux - General 2 01-08-2005 08:45 PM
multiple servers listening on port 80 ruprecht Linux - Networking 2 03-05-2004 08:15 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration