How can I tell if httpd is running on Linux?

How can I tell if httpd is running on Linux?
Answer
How to check running status of LAMP stack
  1. For Ubuntu: # service apache2 status.
  2. For CentOS: # /etc/init.d/httpd status.
  3. For Ubuntu: # service apache2 restart.
  4. For CentOS: # /etc/init.d/httpd restart.
  5. You can use mysqladmin command to find out whether mysql is running or not.
3 февр. 2017 г.
 

Tìm kiếm

Back
Top