Centos上Apache重启,mysql重启, nginx 重启方法
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 成功)