跳至主要內容

Chapter8 - systemctl

Change Lee...小于 1 分钟LinuxRHEL124

systemctl

systemctl is-active firewalld
systemctl is-enabled firewalld
systemctl status firewalld
systemctl stop firewalld
systemctl start firewalld
systemctl restart firewalld
systemctl reload firewalld
systemctl enable firewalld
systemctl disable firewalld
systemctl --type=service    == systemctl -t service
systemctl --type=service --faild
systemctl list-units --type=service --all  #显示所有服务,包括未激活的
systemctl list-unit-files --type=service  #显示服务文件
systemctl list-dependencies UNIT     #查看进程依赖关系
systemctl list-dependencies cups.socket --reverse   #查看需要启动的依赖
systemctl mask firewalld     #停用/屏蔽firewalld服务
systemctl unmask firewalld    #开启/显示firewalld服务
rhel124-8-1.png

systemctl type 类型

[root@client ~]# systemctl -t help
Available unit types:
	service
	socket
	busname
	target
	snapshot
	device
	mount
	automount
	swap
	timer
	path
	slice
	scope
上次编辑于:
贡献者: change,lichangyangccm@163.com
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v3.1.3