最新消息:数据恢复成功,博主又回来啦,和你们同在!

解决Openwrt启动一段时间后重启无线无法开启

Linux ZmmFly 1141浏览 0评论

用LAN连接上SSH重启Network后,再连接上时Putty时出现下面红色的一段时则表示打开的文件数达到限制

root@Router:~# /etc/init.d/network restart
command failed: Too many open files in system (-23)
command failed: Too many open files in system (-23)
command failed: Device or resource busy (-16)
Configuration file: /var/run/hostapd-phy0.conf
nl80211: Could not configure driver to use managed mode
nl80211: Driver does not support authentication/association or connect commands
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
Failed to start hostapd for phy0
Configuration file: /var/run/hostapd-phy1.conf
Using interface wlan1 with hwaddr XX:XX:XX:XX:XX:XX and ssid "XXX"
Configuration file: /var/run/hostapd-phy2.conf
Using interface wlan2 with hwaddr XX:XX:XX:XX:XX:XX and ssid "XXX"

扩大文件句柄限制:

vi /etc/sysctl.conf
#插入
fs.file-max = 8192
#生效执行
sysctl -p

转载请注明:SH自留地 » 解决Openwrt启动一段时间后重启无线无法开启

发表我的评论
取消评论

Protected by WP Anti Spam

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址