备份配置文件 cd /etc/network/ cp interfaces interfaces.bak 修改配置文件 # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet dhcp wpa-ssid TP-LINK wpa-psk 12345678 重启网络 sudo /etc/init.d/networking restart