跳转到主要内容
OKXUN
靠谱的创业资讯

主导航

  • 首页
  • 科技IT
  • 网络营销
  • 创业财经
用户帐户菜单
  • 登录

面包屑

  1. 首页
  2. 科技IT

Centos系统服务器重启apache/nginx/mysql/php-fpm的命令

由 okxun , 1 一月 2026

Centos新的系统跟原来Centos 6有所不同,重启apache服务器、nginx服务器、mysql、php-fpm的命令不一样,服务器运维人员需要注意一下了。

apache服务器

启动

systemctl start httpd

停止

systemctl stop httpd

重启

systemctl restart httpd

nginx服务器

启动

systemctl start nginx

停止

systemctl stop nginx

重启

systemctl restart nginx

mysql数据库

启动

systemctl start mysqld

停止

systemctl stop mysqld

重启

systemctl restart mysqld

php-fpm

启动

systemctl start php-fpm

停止

systemctl stop php-fpm

重启

systemctl restart php-fpm

标签

  • centos
  • 登录 发表评论

评论

最新内容

  • Linux服务器运维常用命令大全
    20 hours 19 minutes ago
  • Linux系统下实用的常用快捷键大全
    1 day ago
  • 关于OpenClaw小龙虾的常用命令大全
    2 days ago
  • 低配置的VPS 2核2G服务器内存总被占满老是出现502错误怎么办?
    2 days ago
  • Centos stream 10系统下搭建LAMP环境的详细步骤
    2 months 1 week ago
  • 商标注册成功后的9大注意事项
    2 months 1 week ago
  • 企业网站这样布局才有商业价值!
    2 months 1 week ago
  • 3个命令让你快速搞定Linux/Centos系统下的网站数据迁移
    2 months 1 week ago
  • 创业者注册商标应该用什么字体?
    2 months 1 week ago
  • Linux/Centos服务器如何开启BBR网络加速?
    2 months 1 week ago

© 2008-2026 www.okxun.com All Rights Reserved.