Plasm简介:Plasm Network旨在提供一个可拓展,可互操作的去中心化应用平台——定义在崭新的网络形式Web 3.0之上。
Plasm部署智能合约(2)——nginx反代转发plasm节点服务
★★★文章链接
Plasm部署智能合约(1)——搭建Plasm节点
Plasm部署智能合约(2)——nginx反代转发plasm节点服务
Plasm部署智能合约(3)——配置MetaMask-PRC网络
Plasm部署智能合约(4)——配置Remix并部署合约
一丶说明
1.如果你是在mac系统配置的请跳过本章
2.如果你是在云端服务器安装的Plasm节点请继续
注:安装的Plasm节点tcp服务的local是127.0.0.1,所以我们需要nginx转发0.0.0.0,外部客户端才能接入,而mac可以直接用127.0.0.1本地访问
二丶Plasm节点搭建
三丶nginx配置与安装
四丶配置nginx
(1)netstat -tunpl查看plasm节点信息
netstat -tunpl
(2)进入/etc/nginx/conf.d目录并创建plasm.conf文件
cd /etc/nginx/conf.d
touch plasm.conf
vim plasm.conf
server {
listen 9900;
location / {
proxy_pass http://127.0.0.1:9933;
}
}
(3)重置并启动nginx
nginx -s reload #重新读取配置
nginx # 启动
# nginx -s stop 停止nginx