1. 用nano打開WiFi密碼配置文件
root@raspberrypi:/home/pi# sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
GNU nano 2.2.6 File: /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="blizzard"
psk="inspur88"
key_mgmt=WPA-PSK
}
[ Read 9 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
GNU nano 2.2.6 File: /etc/wpa_supplicant/wpa_supplicant.conf Modified
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="blizzard"
psk="inspur88"
key_mgmt="WPA-PSK"
}
network={
ssid="ZZXXZX-ZWZX"
psk="zzxxzx2468"
key_mgmt="WPA-PSK"
}
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell
2.按照之前的格式添加新的連接
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
3.重啟網(wǎng)卡
pi@raspberrypi:~ $ sudo ifup wlan0
ifup: interface wlan0 already configured
pi@raspberrypi:~ $