Start, Stop, Restart And Check The Status Apache / MySQL On Centos

In this tutorial we'll cowl the best way to begin, cease, and restart Apache and MySQL on CentOS. Since CentOS is used principally for a server we'll do these steps all on the command line (terminal). We will even use one other command to examine the standing of the providers to ensure they're actually up or down. Let’s get began!


How to Start Apache

/etc/init.d/httpd begin

CentOS command Start Apache Web Server - /etc/init.d/httpd start

How to Stop Apache

/etc/init.d/httpd cease

CentOS - Command to Stop Apache Web Server /etc/init.d/httpd stop

How to Restart Apache

/etc/init.d/httpd restart

CentOS command restart Apache Web Server /etc/init.d/httpd restart

How to View Apache Status

/etc/init.d/httpd standing

(Example of Apache being stopped)

Centos - View Apache Status - Stopped example - /etc/init.d/httpd status

(Example of Apache Running)

CentOS command to view apache web server status - Example Running - /etc/init.d/httpd status


How to Start MySQL

/etc/init.d/mysqld begin

CentOS command Start MySQL server - /etc/init.d/mysqld start

How to Stop MySQL

/etc/init.d/mysqld cease

CentOS command  - Stop MySQL server - /etc/init.d/mysqld stop

How to Restart MySQL

/etc/init.d/mysqld restart

CentOS Command to Restart MySQL -  /etc/init.d/mysqld restart

How to View MySQL Status

(Tell whether it is operating)


blockquote>/etc/init.d/mysqld standing Example: Running" />

(Example of MySQL stopped)

CentOS Command to View MySQL server status - /etc/init.d/mysqld status

Recommended:  How To Disable Pocket In Firefox 38 And Above

Leave a Reply