uhttpd使用

本文介绍了如何管理和配置uhttpd服务,包括启动、停止、重启和重新加载配置文件。通过修改/uetc/config/uhttpd配置,可以监听多个端口,并允许通过http://ip:81/访问到特定目录。此外,还提到了CGI脚本的配置,如cgi_prefix和lua_prefix,以及/home、/key和/crt选项的作用。提供了多个相关脚本和资源链接供进一步学习。
摘要由CSDN通过智能技术生成

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

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值