首页 > 解决方案 > connect 不能作为 consul 的命令使用

问题描述

询问

~$ consul connect proxy -sidecar-for socat

输出:

usage: consul [--version] [--help] <command> [<args>]

可用的命令有:

agent          Runs a Consul agent
configtest     Validate config file
event          Fire a new event
exec           Executes a command on Consul nodes
force-leave    Forces a member of the cluster to enter the "left" state
info           Provides debugging information for operators
join           Tell Consul agent to join cluster
keygen         Generates a new encryption key
keyring        Manages gossip layer encryption keys
leave          Gracefully leaves the Consul cluster and shuts down
lock           Execute a command holding a lock
maint          Controls node or service maintenance mode
members        Lists the members of a Consul cluster
monitor        Stream logs from a Consul agent
reload         Triggers the agent to reload configuration files
rtt            Estimates network round trip time between nodes
version        Prints the Consul version
watch          Watch for changes in Consul

标签: consul

解决方案


你使用的是哪个版本的领事?您可以使用consul --version.

这些consul kv命令是在0.7.1版本中引入的。Consul Connect 是在1.2.0版本中添加的。

如果您使用的是最新版本,则两者都应该可用。


推荐阅读