`

linux配置开机启动网络

阅读更多

 1. 设置关闭盖子不休眠

 vi /etc/systemd/logind.conf

 将 #HandleLidSwitch=suspend 改为 HandleLidSwitch=ignore 然后重启即可;

 

 2. 设置开机启动网络连接

 cd /etc/sysconfig/network-scripts 找到对应的网卡,如 vi ifcfg-enp0s25,将ONBOOT=no 改为yes即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics