master端 绑定ip为你的IP,但是注意遵守yaml的写法,冒号用英文半角冒号,冒号后面有空格!
正确的
# The address of the interface to bind to:
interface: 192.168.2.173
以下是错误示范:
# The address of the interface to bind to:
interface:192.168.2.173
# The address of the interface to bind to:
interface: 192.168.2.173
minion端需要在hosts指定master端IP,并且确保hosts中的主机名是正确的。
正确示范
id: minion
参考资料:
https://blog.csdn.net/java_raylu/article/details/85220111