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 成功)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM