root@router:/www# /etc/init.d/uhttpd status // 并没有status这个子命令
Syntax: /etc/init.d/uhttpd [command]
Available commands:
start Start the service
stop Stop the service
restart Restart the service
reload Reload configuration files (or restart if that fails)
enable Enable service autostart
disable Disable service autostart
root@router:/www# /etc/init.d/uhttpd reload // 重新加载配置
/etc/init.d/uhttpd // uhttpd执行脚本,该文件很值得一看
/etc/config/uhttpd // uhttpd运行相关配置
uhttpd可以同时监听多个端口
// 在/etc/config/uhttpd加入如下配置,即可通过http://ip:81/访问到/tmp目录
config 'uhttpd' 'tmp'
list 'listen_http' '0.0.0.0:81'
option 'home' '/tmp'
option