0

i run into a problem:my apache listening on port 80 works fine,i can access it throug the browser,and i see the log in this apache print info regarding to my access.----so i can guareentee i access the right server,and the server is working for me.and telnet xxxx 80 ,it is ok.(xxxx is my server ip) but when i use netstat -nap|grep 80,i can not see any thing.

i suspect that the 80 port is somewhat sensitive so my system may screen it from the netstat tool.so i change http.conf by set the port to 81 and start my apache, it works fine but still with the netstat being fooled to not display the info about 81 port.

any help? tks i guess i can get the right state by restarting my machine,but i do not want to do this,i just want to know why!

Xavier Holt
  • 14,471
  • 4
  • 43
  • 56
basketballnewbie
  • 1,713
  • 3
  • 15
  • 18
  • Works fine here on Ubuntu 12.04. What os is this on? – Marc B Jun 14 '12 at 03:52
  • 1
    Are you sure your `netstat` binary hasn't been replaced with one from a root kit? Also why is this flagged C and C++ when it's about Apache httpd? – tadman Jun 14 '12 at 03:52
  • uname -a Linux rd_server 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux – basketballnewbie Jun 15 '12 at 03:30
  • uname -a Linux rd_server 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux – basketballnewbie Jun 15 '12 at 03:30
  • Also why is this flagged C and C++ when it's about Apache httpd? – tadman 23 hours ago------------because i am reading the sourcecode of apache2,and it is in c. sorry if some impropriate flag – basketballnewbie Jun 15 '12 at 03:32

1 Answers1

0

THe nap options don't show anything about processes listening on ports. Use something like netstat -lt to show ports you are listening on.

kjw0188
  • 3,625
  • 16
  • 28