Some commands in Centos 7 are difference with Centos 6. In this post, i will show you how to restart and stop Nginx ,Php-FPM, MariaDB in Centos 7.
Restart and stop Nginx ,Php-FPM, MariaDB in Centos 6
Nginx in Centos 6
Start:
1 |
service nginx start |
Restart:
1 |
service nginx restart |
Stop :
1 |
service nginx stop |
PHP-FPM in Centos 6
Restart:
1 |
service php-fpm restart |
Stop :
1 |
service php-fpm stop |
Start:
1 |
service php-fpm start |
MariaDB (MySQL) in Centos 6
Restart:
1 |
service mysql restart |
Stop :
1 |
service mysql stop |
Start:
1 |
service mysql start |
Restart and stop Nginx ,Php-FPM, MariaDB in Centos 7
Restart:
1 |
systemctl restart nginx.service |
Stop:
1 |
systemctl stop nginx.service |
Start:
1 |
systemctl start nginx.service |
PHP-FPM in centos 7:
Restart:
1 |
systemctl restart php-fpm.service |
Stop:
1 |
systemctl stop php-fpm.service |
Start:
1 |
systemctl start php-fpm.service |
MariaDB (MySQL) in Centos 7
Restart:
1 |
systemctl restart mariadb.service |
Stop:
1 |
systemctl stop mariadb.service |
Start:
1 |
systemctl start mariadb.service |
We hope that this article can help you. If you have any trouble, please add a comment bellow.