How To Start, Stop, Restart And Check The Status Of Apache And MySQL On Centos
http://mixeduperic.com/centos/how-to-start-stop-restart-and-check-the-status-apache-and-mysql-on-centos.html
In this tutorial we will cover how to start, stop, and restart Apache and MySQL on CentOS. Since CentOS is used mostly for a server we will do these steps all at the command line (terminal). We will also use another command to check the status of the services to make sure they are really up or down. Let's get started!
Apache:
How to Start Apache
/etc/init.d/httpd start
How to Stop Apache
/etc/init.d/httpd stop
How to Restart Apache
/etc/init.d/httpd restart
How to View Apache Status
(Tell if it is running)/etc/init.d/httpd status
(Example of Apache being stopped)

(Example of Apache Running)

MySQL
How to Start MySQL
/etc/init.d/mysqld start
How to Stop MySQL
/etc/init.d/mysqld stop
How to Restart MySQL
/etc/init.d/mysqld restart
How to View MySQL Status
(Tell if it is running)/etc/init.d/mysqld status
(Example of MySQL Server Running)

(Example of MySQL stopped)

Hope you found this helpful!
No hay comentarios:
Publicar un comentario