Consul agent 启动参数翻译

Command Options


  -bind=<value>
     Sets the bind address for cluster communication.(设置集群通信的绑定地址。)

  -bootstrap
     Sets server to bootstrap mode.(将服务器设置为引导模式。)

  -bootstrap-expect=<value>
     Sets server to expect bootstrap mode.(将服务器设置为期望引导模式。)

  -check_output_max_size=<value>
     Sets the maximum output size for checks on this agent(设置此代理上检查的最大输出大小)

  -client=<value>
     Sets the address to bind for client access. This includes RPC, DNS,
     HTTP, HTTPS and gRPC (if configured).(为客户端访问设置要绑定的地址。这包括RPC, DNS,HTTP, HTTPS和gRPC(如果配置)。)

  -config-dir=<value>
     Path to a directory to read configuration files from. This
     will read every file ending in '.json' as configuration in this
     directory in alphabetical order. Can be specified multiple times.(配置地址 读取配置文件的目录的路径。这将读取以'.josn'结尾的所有文件。Json作为配置目录按字母顺序排列。可以多次指定。)

  -config-file=<value>
     Path to a file in JSON or HCL format with a matching file
     extension. Can be specified multiple times.(带有匹配文件的JSON或HCL格式文件的路径扩展。可以多次指定。)

  -config-format=<value>
     Config files are in this format irrespective of their extension.
     Must be 'hcl' or 'json'(配置文件格式 无论扩展名是什么,配置文件都是这种格式。必须为'hcl'或'json')

  -data-dir=<value>
     Path to a data directory to store agent state.(用于存储代理状态的数据目录的路径。)

  -default-query-time=<value>
     the amount of time a blocking query will wait before Consul will
     force a response. This value can be overridden by the 'wait' query
     parameter.(阻塞查询在Consul执行之前等待的时间 强迫对方做出回应。这个值可以被'wait'查询覆盖参数。)

  -dev
     Starts the agent in development mode.(以开发模式启动代理。)

  -disable-host-node-id
     Setting this to true will prevent Consul from using information
     from the host to generate a node ID, and will cause Consul to
     generate a random node ID instead.(将此设置为true将阻止Consul使用信息从主机生成一个节点ID,并将导致Consul到而是生成一个随机的节点ID。)

  -disable-keyring-file
     Disables the backing up of the keyring to a file.(禁用将密匙环备份到文件。)

  -dns-port=<value>
     DNS port to use.(使用dns端口)

  -domain=<value>
     Domain to use for DNS interface.(用于DNS接口的域。)

  -enable-local-script-checks
     Enables health check scripts from configuration file.(从配置文件中启用健康检查脚本。)

  -enable-script-checks
     Enables health check scripts.(启用健康检查脚本。)



  -grpc-port=<value>
     Sets the gRPC API port to listen on (currently needed for Envoy xDS
     only).(设置gRPC API端口监听(目前只需要Envoy xDS)。)

  -hcl=<value>
     hcl config fragment. Can be specified multiple times.(HCL配置片段。可以多次指定。)

  -http-port=<value>
     Sets the HTTP API port to listen on.(设置要监听的HTTP API端口。)

  -join=<value>
     Address of an agent to join at start time. Can be specified
     multiple times.(在开始时间加入的代理的地址。可以指定多次,可以设置多个-join=)

  -join-wan=<value>
     Address of an agent to join -wan at start time. Can be specified
     multiple times.(在开始时间加入-wan的代理的地址,可设置多个)

  -log-file=<value>
     Path to the file the logs get written to(写入日志的文件的路径)

  -log-json
     Output logs in JSON format.(以JSON格式输出日志。)

  -log-level=<value>
     Log level of the agent.(日志级别)

  -log-rotate-bytes=<value>
     Maximum number of bytes that should be written to a log file(应写入日志文件的最大字节数)

  -log-rotate-duration=<value>
     Time after which log rotation needs to be performed(需要执行日志旋转的时间)

  -log-rotate-max-files=<value>
     Maximum number of log file archives to keep(要保留的日志文件存档的最大数量)

  -max-query-time=<value>
     the maximum amount of time a blocking query can wait before Consul
     will force a response. Consul applies jitter to the wait time. The
     jittered time will be capped to MaxQueryTime.(在Consul强制响应之前,阻塞查询可以等待的最大时间。Consul将抖动应用于等待时间。抖动时间上限为MaxQueryTime。)

  -node=<value>
     Name of this node. Must be unique in the cluster.(节点名称。集群中必须唯一。)

  -node-id=<value>
     A unique ID for this node across space and time. Defaults to a
     randomly-generated ID that persists in the data-dir.(节点唯一id,默认随机生成)

  -node-meta=<key:value>
     An arbitrary metadata key/value pair for this node, of the format
     `key:value`. Can be specified multiple times.(此节点的任意元数据键/值对,格式如下 “键:值”。可以多次指定。)


  -rejoin
     Ignores a previous leave and attempts to rejoin the cluster.(忽略先前的请假并尝试重新加入集群。)

  -retry-interval=<value>
     Time to wait between join attempts.(在连接尝试之间等待的时间。)

  -retry-interval-wan=<value>
     Time to wait between join -wan attempts.(在加入wan尝试之间等待的时间。)

  -retry-join=<value>
     Address of an agent to join at start time with retries enabled. Can
     be specified multiple times.(在开始时间加入并启用重试的代理的地址。可以多次指定。)

  -retry-join-wan=<value>
     Address of an agent to join -wan at start time with retries
     enabled. Can be specified multiple times.(在开始时间加入-wan并重试的代理的地址启用。可以多次指定。)

  -retry-max=<value>
     Maximum number of join attempts. Defaults to 0, which will retry
     indefinitely.(最大连接尝试次数。默认值为0,将无限重试。)

  -retry-max-wan=<value>
     Maximum number of join -wan attempts. Defaults to 0, which will
     retry indefinitely.(最大加入wan尝试次数。默认为0,这将无限期重试。)

  -segment=<value>
     (Enterprise-only) Sets the network segment to join.(设置要加入的网段。)


  -server
     Switches agent to server mode.(将代理切换到服务器模式。 该agent为server模式)

  -server-port=<value>
     Sets the server port to listen on.(设置要监听的服务器端口。)

  -syslog
     Enables logging to syslog.(启用日志记录到syslog。)

  -ui
     Enables the built-in static web UI server. (启用内置的静态web UI服务器。)

  -ui-content-path=<value>
     Sets the external UI path to a string. Defaults to: /ui/(将外部UI路径设置为字符串。默认为:/ui/)

  -ui-dir=<value>
     Path to directory containing the web UI resources.(包含web UI资源的目录的路径。)

单server启动命令示范:./consul agent -server -data-dir=/usr/lib/consul/data -log-file=/usr/lib/consul/log/consul.log -node=node1 -bind=0.0.0.0 -bootstrap-expect=1 -client=0.0.0.0 -ui

以上的翻译使用 consul agent -help 即可获得官方的英文文档。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值