树莓派3Bwifi命令行连接问题

Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: deinit ifname=wlan0 disabled_11b_rates=0

        今天做个小项目,需要命令行下连接wifi,但是问题出现了,每次配置完,就是连不上,只能重启,重启后就可以连上。

但是项目要求是每次通过特定途径获取wifi 的ssid和密码,重启就没什么价值了。报错如上。

看了下,猜到大概是进程运行问题:执行

sudo killall wpa_supplicant

然后执行

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

妥妥无压力,顺利连接了wifi

----------------------------------------------------------------------------------------------------------------------------------

下面说下树莓派wifi配置吧,参考博客:

https://www.cnblogs.com/shubin/p/7746399.html 写的非常不错。




  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值