摘要: ps -aux | grep 指定的名称 阅读全文
posted @ 2020-12-01 17:30 mhly 阅读(276) 评论(0) 推荐(0) 编辑
摘要: # 将8080修改为你需要查看的端口号 netstat -nlp | grep 8080 阅读全文
posted @ 2020-12-01 10:56 mhly 阅读(963) 评论(0) 推荐(0) 编辑
摘要: 编写智能合约保存为test.sol # 返回输入的平方 pragma solidity ^0.7.5; contract test{ function multiply(uint256 input) public returns(uint256 res){ return input * input; 阅读全文
posted @ 2020-11-23 16:00 mhly 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 127.0.0.1/16 表示前16位不变,用1表示,后16位表示网络主机范围 相应的掩码表示为:11111111 11111111 00000000 00000000 即该CIDR的掩码为:255.255.0.0 阅读全文
posted @ 2020-11-20 15:47 mhly 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 安装Geth 通过PPA在Ubuntu上安装 在基于Ubuntu的发行版上安装go-ethereum的最简单方法是使用内置的启动板PPA(个人软件包档案)。我们提供的是包含了我们的稳定和开发版本的Ubuntu版本的单PPA仓库trusty,xenial,zesty和artful。 要启用我们的启动板 阅读全文
posted @ 2020-11-19 17:31 mhly 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 一个节点上安装了某个版本的智能合约,实例化这个版本的智能合约是可以成功,如果其它节点没有安装同版本的智能合约,这时进行查询的时候就会出现问题。 阅读全文
posted @ 2020-09-08 15:44 mhly 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 将用户添加进sudo的附加组 若上面的方法不行 则进入root用户 执行命令 visudo 在"root ALL=(ALL) ALL“下面新增 username ALL=(ALL) ALL 阅读全文
posted @ 2020-08-26 11:38 mhly 阅读(146) 评论(0) 推荐(0) 编辑
摘要: fatal: could not create work tree dir ‘xxxx’: Permission denied 原因:没有权限 解决: # 回退到当前目录的上一级 cd .. # dirname为当前目录的名字 sudo chmod o+w dirname 阅读全文
posted @ 2020-08-26 11:36 mhly 阅读(5860) 评论(0) 推荐(0) 编辑
摘要: 修改用户附加组 usermod -G 附加组名 用户名 # 更改附加组三种方法(保持原有附加组) usermod -aG 组名 用户名 groupmems -a 用户名 -g 组名 gpasswd -a 用户名 组名 增加新用户 # 创建用户username useradd username # 给 阅读全文
posted @ 2020-08-26 11:08 mhly 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 首先参考之前的博文进入first-network目录下启动网络 创建一个应用通道的配置交易 设置环境变量CHANNEL_NAME export CHANNEL_NAME=mychannel2 指定使用 configtx.yaml 配置文件中的 TwoOrgsChannel 模板,来生成新建通道的配置 阅读全文
posted @ 2020-07-30 20:42 mhly 阅读(353) 评论(0) 推荐(0) 编辑