跳转到主要内容
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
  • 登录 发表评论

评论

最新内容

  • Drupal 11网站管理系统的如何安装?
    6 hours 40 minutes ago
  • 独立站创业出海之网站域名在哪里注册才安全可靠?
    6 hours 51 minutes ago
  • NVIDIA已修复申请NIM API Key时+86开头的中国手机号无法验证的问题
    6 hours 51 minutes ago
  • Drupal 11系统如何升级,drush命令怎么安装?
    1 week ago
  • Debian 12/13最新版Apache+MariaDB+PHP运行环境安装搭建
    2 weeks 2 days ago
  • Linux服务器运维常用命令大全
    1 month 1 week ago
  • Linux系统下实用的常用快捷键大全
    1 month 1 week ago
  • 关于OpenClaw小龙虾的常用命令大全
    1 month 1 week ago
  • 低配置的VPS 2核2G服务器内存总被占满老是出现502错误怎么办?
    1 month 1 week ago
  • Centos stream 10系统下搭建LAMP环境的详细步骤
    3 months 2 weeks ago

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