第一次使用ap-hotspot里面的configure配置了一个叫mywifitest的ssid
启用之后手机能成功连接上网络
但是这个ssid只是测试用的我想修改这个ssid
于是又重新用configure模块设置ssid
但是重新start之后手机搜索到的还是原来的ssid而且还连不上网了
hotspotconfig="/etc/ap-hotspot.conf"
dnsmasqconfig="/etc/dnsmasq.d/ap-hotspot.rules"
这个里面的文件我cat了一下发现确实是修改过的了
有没有大神知道这是怎么一回事
修改了以下log文件的路径发现问题是这个样子:
Configuration file: /home/wangyifan/wifitest/ap-hotspot.conf
Failed to create interface mon.wlp2s0: -23 (Too many open files in system)
Try to remove and re-create mon.wlp2s0
Using interface wlp2s0 with hwaddr 18:cf:5e:65:cb:25 and ssid 'myhotspot'
Failed to set beacon parameters
有没有人知道这是什么原因阿
source 一下这俩文件
Try to remove and re-create mon.wlp2s0
Using interface wlp2s0 with hwaddr 18:cf:5e:65:cb:25 and ssid 'myhotspot'
Failed to set beacon parameters
你可以先试一试不用配置文件,直接用命令行
create_ap wlp5s0 enp4s0 SSID password
具体参数怎么写记不清了,但是我记得用命令行是可以的。你的网卡可以用ifconfig来查看,执行完这个创建热点的命令之后用ifconfig也可以看到新
创建的网卡接口,一般叫什么ath0,ath1啥的。。。太久不用了
或者删除文件重新创建一次。应该是你的网卡接口和SSID不匹配吧。你之前创建的已经用wlp2s0了,然后你再魔改SSID,肯定匹配不上啊。可以新
创建一个热点试试,应该重新搞一次就没问题了。
。可以新
创建一个热点试试,应该重新搞一次就没问题了。