我电脑能ping通阿里云服务器,启动下面app.js 以后用电脑访问不到资源 我没有配置防护墙
来源:6-1 搭建服务器的 Nodejs 环境

慕UI5749660
2017-11-25
const http = require('http')
http.createServer(function(req,res){
res.writeHead(200, {'Content-Type': 'text/plain'})
res.end('鸡肉卷爱花生米')
}).listen(8089)
console.log('server running on http://106.14.144.165:8089')
~
写回答
1回答
-
Scott
2017-11-25
ssh 到服务器上
通过 curl -L http://106.14.144.165:8089 试试呢,或者 http://127.0.0.1:8089
如果可以访问,外面不能访问,应该阿里云的后台安全组这里也要配置下 8089 的端口访问权限
00
相似问题