原创

systemctl来重启Linux服务器的Nginx及其他服务


  1. systemctl start php-fpm
  2. service php-fpm start
  3. systemctl status php-fpm.service
  4. systemctl list-unit-files --type=service 查看目前所有的服务
  5. service php73-php-fpm restart 重启php73

命令集合

  1. systemctl is-enabled servicename.service #查询服务是否开机启动
  2. systemctl enable *.service #开机运行服务
  3. systemctl disable *.service #取消开机运行
  4. systemctl start *.service #启动服务
  5. systemctl stop *.service #停止服务
  6. systemctl restart *.service #重启服务
  7. systemctl reload *.service #重新加载服务配置文件
  8. systemctl status *.service #查询服务运行状态
  9. systemctl --failed #显示启动失败的服务

重启

  1. systemctl restart nginx.service

查看

  1. systemctl status nginx.service

启动

  1. systemctl start nginx.service

开机启动

  1. systemctl enable nginx.service
留言反馈
问题反馈渠道,如有软件无法下载或者其他问题可反馈。【由于某种原因,目前留言不展示】
用户需要登录后才能留言反馈