chmod 777 a.sh
给a.sh文件设置全部读写执行权限
脚本文件以.sh结尾
linux下的NetworkManager服务,解决service network restart 闲置网卡报错问题,前面两个命令基本能解决
重启网卡:service NetworkManager.service restart
nmcli n on 开启网卡信息
停止服务:service NetworkManager stop
移除开机启动:chkconfig NetworkManager off 设置开机启动:chkconfig NetworkManager on
重启网卡服务 service NetworkManager.service restart