Centos7重启apache、mysql、php-fpm及nginx命令

 时间:2026-04-22 02:48:09

1、apache常用的命令

启动


systemctl start httpd
停止
systemctl stop httpd
重启
systemctl restart httpd

2、mysql常用的命令

启动


systemctl start mysqld
停止
systemctl stop mysqld
重启
systemctl restart mysqld

3、php-fpm常用的命令

启动


systemctl start php-fpm
停止
systemctl stop php-fpm
重启
systemctl restart php-fpm

4、nginx常用的命令

启动


systemctl start nginx
停止
systemctl stop nginx
重启
systemctl restart nginx

5、总结:以上几个命令在操作centos7系统时可能经常需要用到,为此来简单整理下,注意只适用于centos7及以上版本。

  • visual studio 多核并发开发
  • MYSQL安装了不起作用怎么办
  • 10大编程语言特性
  • 如何用PYTHON正则表达式去除多余字符
  • 支付宝森林电台怎么调整声音元素音量
  • 热门搜索
    脑炎是怎么引起的 o型血为什么叫熊猫血 我的世界怎么炼药 胃疼怎么办怎么缓解 黄海波事件是怎么回事 骰子怎么玩 阴虱是怎么得的 肚子一阵一阵的痛是怎么回事 watch怎么读 土豆泥沙拉的做法