ubuntu server 开机自动启动dhclient
不知道为啥我的ubuntu server启动后一直不联网,我以为网口或者网线坏了,执行 sudo /sbin/dhclient 结果自动连上了。应该是没有启动这个服务。重启后依旧不连,执行这条命令就连。于是sudo nano /etc/rc.local
输入
#!/bin/bash
dhclient
exit 0
保存退出
sudo chmod 755 /etc/rc.local 回车
sudo systemctl enable rc-local 回车
sudo systemctl restart rc-local 回车
sudo systemctl status rc-loca 回车
reboot 回车
嗯,好了。不知道别人是不是这样,我的这样了。
呵呵 不懂。绕过!
页:
[1]