解决ubuntu出现的std::exception::what: bind: Address already in use问题 (FISCO BCOS区块链节点启动地址占用问题)

1、首先问题是这样的

  Exceed waiting time. Please try again to start node2
  Exceed waiting time. Please try again to start node3

[2022-11-07 01:37:47] Initializing...
[INITIALIZER][P2PInitializer]initConfig for P2PInitializer failed,check Port=30302,EINFO=Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: boost::exception_detail::clone_impl >
std::exception::what: bind: Address already in use

最后一行是地址已经在使用了。

解决办法:

1、使用命令

netstat -tunlp

截图如下,因为我这个是启动fisco区块链节点出现这样的问题,所以杀掉所有fisco节点。

解决ubuntu出现的std::exception::what: bind: Address already in use问题 (FISCO BCOS区块链节点启动地址占用问题)_第1张图片

2、杀掉PID(上图箭头指的就是PID)

kill -9 9558

解决ubuntu出现的std::exception::what: bind: Address already in use问题 (FISCO BCOS区块链节点启动地址占用问题)_第2张图片

 如图进行杀死PID,再次启动问题解决

解决ubuntu出现的std::exception::what: bind: Address already in use问题 (FISCO BCOS区块链节点启动地址占用问题)_第3张图片

 

你可能感兴趣的:(ubuntu,FISCO,BCOS,区块链,ubuntu)