我正在学习松露metmask,有一个步骤开始testpc。该命令testrpc.但当我运行它时,我得到以下错误。
错误:listen EADDRINUSE:::8545 at Object。_errnoException (util.js:1022:11)在服务器的_exceptionWithHostPort (util.js:1044:20)。setupListenHandle [as _listen2] (net.js:1367:14) at listener (net.js:1408:12) at Server。listen (net.js:1492:7) at Server.server.listen (/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:106030:17)<匿名> (/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js: 50240:8)在__webpack_require__ (/usr/local/lib/node_modules/ethereumjs-testrpc/build/ node.js:21:30)在/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:64:18 at Object。<匿名> (/ usr /地方/ lib / node_modules / ethereumjs-testrpc /构建/ cli.node.js: 67:10)
什么好主意吗?
看起来你已经让testrpc运行了。使用ps命令检查它:
$ps PID TTY TIME CMD 4195 pts/0 00:00:00 bash 5551 pts/0 00:00:01节点5627 pts/0 00:00:00 ps
这里,进程节点(5551)是testrpc。使用这个命令杀死它,你将能够很好地启动testrpc:
kill - 9 < pid >
对我来说,就是这样
kill - 9 5551