用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
转载请注明:神奇海域 » 解决Openwrt启动一段时间后重启无线无法开启