systemctl控制
– 负责掌控整个Linux的运行/服务资源组合
– 服务目录:/lib/systemd/system/
服务管理:
systemctl restart httpd #重起服务
systemctl status httpd #查看服务状态
systemctl start httpd #服务启动
systemctl stop httpd #服务停止
systemctl enable httpd #设置服务开机自起
systemctl is-enabled httpd #查看服务是否是开机自起
systemctl disable httpd #设置服务禁止开机自起
管理运行级别:
RHEL6:200个服务
0:关机 0个服务
1:单用户模式(修复模式 破解密码模式) 50个服务
2:字符界面(不支持网络) 80个服务
3:字符界面(支持网络) 120个服务
4:未定义
5:图形界面 180个服务
6:重起 0个服务
切换级别 : init 0
RHEL7:
multi-user.target :字符模式/文本模式
graphical.targe
systemctl控制
最新推荐文章于 2024-02-28 14:09:41 发布