美文网首页
2019-12-05

2019-12-05

作者: 我就是我2017 | 来源:发表于2019-12-06 10:08 被阅读0次

如何让你的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” 

相关文章

网友评论

      本文标题:2019-12-05

      本文链接:https://www.haomeiwen.com/subject/gwzdgctx.html