Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I know if my machine (Ubuntu) is using some local server? Like wampp, xampp or lampp? And also how do I know my Ubuntu version something like that?

share|improve this question

2 Answers 2

Try nmap localhost in terminal. It will list all the ports that are being used by some services. Example output:

ORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh
80/tcp   open  http
5432/tcp open  postgresql

How to check version in terminal:

  • Apache2: apache2 -v
  • PHP: php -v
  • MySQL: mysql --version
  • Ubuntu: lsb_release -a
share|improve this answer
    
no i dont see any server running. But im sure there is at least one server installed. –  belmark Jun 7 '13 at 4:51
    
What's the output of nmap? –  llt Jun 7 '13 at 5:17

you can use netstat -atup

here

-t : Select all TCP services
-u : Select all UDP services
-a : Display all listening and non-listening sockets.
-p : Display the PID and name of the program to which each socket belongs

you will get all the services along with the PID.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.