curl: (35) Encountered end of file
时间: 2024-01-19 17:02:28 浏览: 279
回答: 当遇到curl错误 "curl: (35) Encountered end of file"时,通常是因为没有开启443端口。解决方法是通过以下命令来开启443端口和重新加载配置使其生效:
```
# systemctl start firewalld [1][2][3]
# firewall-cmd --zone=public --add-port=443/tcp --permanent
# firewall-cmd --reload
```
这些命令将会开启防火墙并添加443端口的访问权限,然后重新加载配置使其生效。这样应该能解决curl错误。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [docker(四、容器编排docker compose)](https://blog.csdn.net/youaremyalllove/article/details/125880635)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [使用curl命令出现错误curl: (35) Encountered end of file的解决方法](https://blog.csdn.net/qq_34383510/article/details/131414042)[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^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [curl --- curl: (35) Encountered end of file](https://blog.csdn.net/my_miuye/article/details/125033072)[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^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文