八.系统服务控制
1.常用方式及控制类型

2.查看系统的运行级别

使用init命令切换运行级别


4.使用systemctl工具
命令systemctl isolate graphical.target 相当于 init 5

命令systemctl isolate multi.user.target 相当于 init 3

5.查看开机系统默认的运行级别
systemctl get-default

6.修改开机默认运行级别
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target

7.查看当前网络正在运行的服务端口
netstat -ntap

8.伪终端查看服务
命令ntsysv 进入,用空格控制是否勾选 TAB转到下方确认取消按钮

9.查看系统服务的启动状态
systemctl is-enabled

10.修改服务运行状态
systemctl enable/disable 服务
