1.重啟 apache
service httpd restrat
/etc/init.d/httpd stop
/etc/init.d/httpd start
2.重啟 mysql
service mysql restart
/etc/init.d/mysqld stop
/etc/init.d/mysqld start
3.重啟Nginx
service nginx restart
/etc/init.d/nginx stop
/etc/init.d/nginx start
各linux版本重啟apache命令
Slackware Linux命令:
/etc/rc.d/rc.httpd restart
ubuntu、Debian 系統命令:
/etc/init.d/apache2 restart
Fedora 、Redhat、CentOS系統重啟Apache命令:
/etc/init.d/httpd restart
或
service httpd restart(CentOS 成功)