How do you know if a lamp is running?

How do you know if a lamp is running?
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.
 

Tìm kiếm

Back
Top