习惯centos 7的服务管理

来源:互联网 发布:程序员薪资调查报告 编辑:程序博客网 时间:2024/06/05 16:43
  • sshd
# 启动systemctl restart sshd.service# 开机自启动systemctl enable sshd.service
  • mariadb
# 启动systemctl restart mariadb.service# 开机自启动systemctl enable mariadb.service
  • 防火墙(最操蛋的一个)
# 关闭systemctl stop firewalld.service# 开机也关闭systemctl disable firewalld.service
  • 列出所有服务
systemctl list-unit-files --type=service

这里写图片描述

  • 图片欣赏

这里写图片描述

这里写图片描述

0 0
原创粉丝点击