1. Home
  2. Support
  3. General
  4. CentOS 7 – Restart Services

CentOS 7 – Restart Services

NGINX:

Check config for config errors

nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Start/Stop/Restart

systemctl stop nginx
systemctl start nginx
systemctl restart nginx

Apache:

Start/Stop/Restart

systemctl stop httpd
systemctl start httpd
systemctl restart httpd

PHP-FPM:

Start/Stop/Restart – Change XX to your PHP-FPM version numbers. e.g. systemctl restart php73-php-fpm. May vary based on PHP-FPM configuration.

systemctl stop phpXX-php-fpm
systemctl start phpXX-php-fpm
systemctl restart phpXX-php-fpm

MySQL:

Start/Stop/Restart

systemctl start mysqld
systemctl stop mysqld
systemctl restart mysqld
Click here for full details

Classification: Public
Last saved: 2019/11/27 at 16:03 by