openwrt lighttpd
时间: 2023-09-13 11:02:56 浏览: 249
OpenWrt是一个嵌入式设备的Linux操作系统,而Lighttpd是一款轻量级的Web服务器。在OpenWrt中安装和配置Lighttpd可以按照以下步骤进行操作。
第一步,使用以下命令安装Lighttpd和相关模块:
opkg update
opkg install lighttpd lighttpd-mod-cgi
第二步,设置默认端口和目录以及添加额外的端口和目录:
在配置文件/etc/config/uhttpd中进行编辑。默认的端口设置为80,对应的目录为/srv/php。如果需要添加额外的端口和目录,可以在配置文件中进行相应的修改。例如,将默认端口修改为88,对应的目录为/srv/www 。
第三步,重启uhttpd和Lighttpd服务:
使用以下命令重启uhttpd和Lighttpd服务,以使修改生效:
/etc/init.d/uhttpd restart
/etc/init.d/lighttpd restart
通过上述步骤,您可以在OpenWrt中成功安装和配置Lighttpd。如果您需要更详细的移植高版本的Lighttpd到MTK7628N OpenWrt的过程和遇到的问题,可以参考以下博客文章:https://blog.csdn.net/caofengtao1314/article/details/83140841 。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [openwrt里安装php并配置lightted多端口监听](https://blog.csdn.net/king_jie0210/article/details/78928696)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [mtk7628n_openwrt_lighttpd](https://download.csdn.net/download/caofengtao1314/10728875)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![-](https://img-home.csdnimg.cn/images/20241231044833.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241226111658.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)