习惯centos 7的服务管理

前端之家收集整理的这篇文章主要介绍了习惯centos 7的服务管理前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
  • sshd
  1. # 启动
  2. systemctl restart sshd.service
  3.  
  4. # 开机自启动
  5. systemctl enable sshd.service
  • mariadb
  1. # 启动
  2. systemctl restart mariadb.service
  3.  
  4. # 开机自启动
  5. systemctl enable mariadb.service
  • 防火墙(最操蛋的一个)
  1. # 关闭
  2. systemctl stop firewalld.service
  3.  
  4. # 开机也关闭
  5. systemctl disable firewalld.service
  • 列出所有服务
  1. systemctl list-unit-files --type=service

猜你在找的CentOS相关文章