redhat72系统重启后网络系统失败难题解决

1、使用以下命令查看两个关键服务是否是开机启动状态:

systemctl list-unit-files

à该服务启动后,会导致network启动失败;

à该服务启动后,会屏蔽普通应用端口

2、systemctl禁用服务

启动一个服务:systemctl start postfix.service
关闭一个服务:
systemctl stop postfix.service
重启一个服务:
systemctl restart postfix.service
显示一个服务的状态:
systemctl status postfix.service
在开机时启用一个服务:
systemctl enable postfix.service
在开机时禁用一个服务:
systemctl disable postfix.service
查看服务是否开机启动:
systemctl is-enabled postfix.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled
查看启动失败的服务列表:
systemctl –failed

比如:我们要在开机时禁用NetworkManager.service服务

systemctl disable NetworkManager.service

systemctl disable firewalld.service

这样下一次开机网络服务启动就不会有问题;

posted @ 2018-01-17 15:00  Mr.R123  阅读(474)  评论(0编辑  收藏  举报