2019-12-05

2019-12-06  本文已影响0人  我就是我2017

如何让你的scratch运行起来

1、centos下nodejs只监听ipv6的8333接口,要修改scratch-www/dev-server/index.js文件

在app.listen(post, function(){这句改为 app.listen(post,'0,0,0,0',function(){才能监听ipv4下的8333端口

2、关闭firewalld的服务:

(1)查看防火墙状态

firewall-cmd --state

(2)停止firewall

systemctl stop firewalld.service

(3)禁止firewall开机启动

systemctl disable firewalld.service

3、然后使用hup npm start &后台运行或者使用forever运行

forever start -c “npm start” 

上一篇 下一篇

猜你喜欢

热点阅读