安装过程
1.设置NetworkManager自动启动
chkconfig NetworkManager on
2.安装NetworkManager-wifi
yum -y install NetworkManager-wifi
3.开启WiFi
nmcli r wifi on
4.测试(扫描信号)
nmcli dev wifi
5.连接
nmcli dev wifi connect SSID password <password>
Troubleshoot
树莓派2代的centos7也可以,可能会报以下异常,重启下系统就好了
Connection activation failed :(7) Secrets were required,but not provided
实在不行用下下面的:
#设置无线密码
nmcli connection modify SSID wifi-sec.key-mgmt wpa-psk
nmcli connection modify SSID wifi-sec.psk <WiFi密码>
#连接WiFi
nmcli connection up SSID