026_基础篇_系统管理(三)_配置服务开机启动和关闭防火墙 命令 chkconfig 语法格式:chkconfig [参数] [服务名] chkconfig --list 显示当前已有的全部服务列表 chkconfig network off 关闭network服务开机自启 chkconfig network on 开启network服务开机自启 chkconfig --level 3 network off 关闭network服务 级别3 开机自启 chkconfig --level 3 network on 开启network服务 级别3 开机自启 命令 systemctl 语法格式:systemctl 参数 [动作] [服务名] systemctl enable network 开启network服务开机自启 systemctl disable network 关闭network服务开机自启 systemctl list-unit-files 查看自启列表命令 systemctl stop firewalld. systemctl stop firewalld.service 关闭防火墙 后面的.service敲和不敲一样