Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
  1. Is there any particular command to find out what servers (like: apache2, mysql-server, backup-server etc) are running inside a dedicated server?

  2. If I will reboot my dedicated server will they all start automatically?

  3. What is the safe way of reboot a dedicated server with all its applications server running inside it?

Note: I am in a dedicated Debian server.

share|improve this question
"curl -I your-URL" will give you the output as, on which server the application s running. – user92748 Nov 25 '14 at 12:24
up vote 3 down vote accepted

I assume that application servers are using ports [Apache, Mysql do] If so you can use netstat -lepunt to find out the services running in your server.

If you want to know the services are started at boot time check for init scripts in /etc/init.d/.

Most of the time services like Apache and MySQL servers are started at boot time if they are installed using a package manager. If not you can create an init script to start them at the boot time.

share|improve this answer
Please let me know the command with extension to safely reboot the dedicated server. – Subhransu Mishra Aug 30 '12 at 11:29
to reboot gracefully: shutdown -r now – cas Aug 30 '12 at 11:32

ps aux will also list all the processes running on the server. You can look for the related services there.

share|improve this answer

htop gives a nice overview of the processes that are running and the resources that are in use.

share|improve this answer

Your Answer


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.