完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
创建了多个httpd服务器。80、81和89三个端口
I (5207) app_httpd: Starting stream server on port: '81' D (5217) httpd: httpd_thread: web server started D (5217) httpd_uri: httpd_register_uri_handler: [0] installed /stream D (5217) httpd: httpd_server: doing select maxfd+1 = 59 I (5227) app_httpd: [1605]:Starting OTA server on port: '89' D (5237) httpd: httpd_thread: web server started D (5237) httpd_uri: httpd_register_uri_handler: [0] installed /ota D (5237) httpd: httpd_server: doing select maxfd+1 = 62 D (5257) httpd_uri: httpd_find_uri_handler: [0] = /ota 访问80,可以打开web,访问81也可以。 但是访问89打不开,为什么呢? D (43277) httpd: httpd_server: processing listen socket 60 W (43287) httpd: httpd_accept_conn: error in accept (23) W (43287) httpd: httpd_server: error accepting new connection D (43287) httpd: httpd_server: doing select maxfd+1 = 62 D (43897) httpd: httpd_server: processing listen socket 60 W (43897) httpd: httpd_accept_conn: error in accept (23) W (43897) httpd: httpd_server: error accepting new connection D (43897) httpd: httpd_server: doing select maxfd+1 = 62 D (43967) httpd: httpd_server: processing listen socket 60 W (43967) httpd: httpd_accept_conn: error in accept (23) W (43967) httpd: httpd_server: error accepting new connection D (43977) httpd: httpd_server: doing select maxfd+1 = 62 D (43987) httpd: httpd_server: processing listen socket 54 D (43987) httpd_sess: httpd_sess_close_lru: Closing session with fd 63 D (43997) httpd: httpd_server: doing select maxfd+1 = 64 D (43997) httpd: httpd_server: processing ctrl message D (43997) httpd: httpd_process_ctrl_msg: work D (44007) httpd_sess: httpd_sess_delete: fd = 63 D (44017) httpd_sess: httpd_sess_delete: active sockets: 0 D (44017) httpd: httpd_server: processing listen socket 54 D (44027) httpd: httpd_accept_conn: newfd = 63 D (44027) httpd_sess: httpd_sess_new: fd = 63 D (44027) httpd_sess: httpd_sess_new: active sockets: 1 D (44037) httpd: httpd_accept_conn: complete D (44037) httpd: httpd_server: doing select maxfd+1 = 64 D (44977) httpd: httpd_server: processing listen socket 60 W (44987) httpd: httpd_accept_conn: error in accept (23) W (44987) httpd: httpd_server: error accepting new connection D (44987) httpd: httpd_server: doing select maxfd+1 = 62 |
|
相关推荐
1个回答
|
|
|
在这种情况下,可能有以下几个原因导致第二个HTTP服务器无法访问:
1. **端口冲突**:请确保没有其他应用程序正在使用端口81或89。可以使用`netstat -tuln | grep 2. **防火墙限制**:检查您的防火墙设置,确保端口81和89没有被阻止。您可以使用`iptables`或`ufw`等工具来管理防火墙规则。 3. **网络配置问题**:确保您的网络配置允许多个HTTP服务器在同一台设备上运行。检查您的路由器和交换机设置,确保它们没有阻止端口81和89的流量。 4. **服务器配置问题**:检查您的HTTP服务器配置文件,确保没有错误或冲突。例如,Apache和Nginx等服务器可能需要不同的配置来支持多个虚拟主机。 5. **操作系统限制**:某些操作系统可能对同时运行的HTTP服务器数量有限制。请查阅您的操作系统文档,了解是否有此类限制。 6. **资源限制**:确保您的设备有足够的资源(如CPU、内存和网络带宽)来支持多个HTTP服务器。如果资源不足,可能导致某些服务器无法正常运行。 7. **代码问题**:检查您的HTTP服务器代码,确保没有错误或逻辑问题导致第二个服务器无法启动或响应请求。 要解决这个问题,您可以尝试以下步骤: 1. 检查端口使用情况,确保没有其他应用程序占用端口81和89。 2. 检查防火墙设置,允许端口81和89的流量。 3. 检查网络配置,确保没有阻止端口81和89的流量。 4. 检查HTTP服务器配置文件,确保没有错误或冲突。 5. 查阅操作系统文档,了解是否有同时运行多个HTTP服务器的限制。 6. 检查设备资源,确保有足够的资源支持多个HTTP服务器。 7. 检查HTTP服务器代码,修复任何错误或逻辑问题。 希望这些建议能帮助您解决问题。如果问题仍然存在,请提供更多详细信息,以便我们能够提供更具体的帮助。 |
|
|
|
|
只有小组成员才能发言,加入小组>>
944 浏览 0 评论
1671 浏览 0 评论
请问一下我想用ESP8685直接替换ESP8266而不用写程序,可以让ESP8685直接通过之前ESP8266的外挂的flash运行程序吗
1330 浏览 1 评论
1233 浏览 1 评论
5015 浏览 2 评论
为blufi_device设置自定义名称,但是无法修改,为什么?
1250浏览 4评论
请问ESP32-S2-WROOM怎么获得ESP32-S2外接FLASH的唯一序列号?
927浏览 3评论
2330浏览 3评论
ESP-IDF的VScode插件的build按钮点击会报错的原因?
2526浏览 3评论
ESP-Jumpstart例程中第5个工程:5_cloud连接报错是哪里的问题?
1051浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 22:22 , Processed in 0.746497 second(s), Total 73, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
366
