[HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127.0.0.1:8000(ECONNREFUSED)(https://nodejs.org/api/errors.html#errors_common_system_errors)
这个问题主要是从端口3000映射到8000端口失败
首先查看npm错误日志,通过查看日志,参考文档
https://segmentfault.com/q/1010000041491241
缺少nvm依赖包,安装好依赖包之后重新启动 api 开发环境服务python manage.py runserver
发现代码报错,原因是centos自带的python环境是2.X版本的,而我部署的项目环境要求是3.X版本,于是就是更新python版本
升级后,yum报错,因为yum依赖于python2.X版本,修改配置文件usr/bin/yum 将python改成python2.7
使用python3启动api服务
但是127.0.0.1:3000映射到8000端口还是失败了
解决方法
查看防火墙规则iptables -nL
清空默认表Filter的所有规则iptables -F
之后就可以正常启动了,仅供参考


![[HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127 [HPM] Error occurred while trying to proxy request /account/login/ from localhost:3000 to http://127](http://www.mshxw.com/aiimages/31/1004862.png)
