how to restart apache server in centos 7 in putty command code example
Example 1: centos stop apache
systemctl restart httpd.service
systemctl start httpd.service
systemctl stop httpd.service
Example 2: restart apache
sudo systemctl restart apache2
# or
sudo service apache2 restart