每当我想在 mininet 中运行 sshd.py 示例或我自己编写的一些客户代码时,我都会得到
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 h3 h4 h5
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1) (h3, s1) (h4, s1) (h5, s1)
*** Configuring hosts
h1 h2 h3 h4 h5
*** Starting controller
Cannot find required executable controller.
Please make sure that it is installed and available in your $PATH:
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
虽然$ sudo mn --test pingall
工作正常!
我想我应该找到开放流控制器可执行文件并将其添加到路径中,但我不知道它在哪里。但是测试创建了一个控制器并且工作正常!
我试图重新安装 mininet
$ ~/mininet/util/install.sh -a or [-fnv]