首页 > 系统相关 >CentOS 7.9 安装 Consul_1.9.14

CentOS 7.9 安装 Consul_1.9.14

时间:2022-10-13 02:11:31浏览次数:100  
标签:14 CentOS -- Consul 1.9 consul Interact

一、CentOS 7.9 安装 Consul_1.9.14

地址

 

wget 下载

wget https://releases.hashicorp.com/consul/1.9.14/consul_1.9.14_linux_amd64.zip

解压

unzip consul_1.9.14_linux_amd64.zip -d /opt/

界面说明安装成功

[root@ecs-65685 consul_1.9.14]# ./consul 
Usage: consul [--version] [--help] <command> [<args>]

Available commands are:
    acl            Interact with Consul's ACLs
    agent          Runs a Consul agent
    catalog        Interact with the catalog
    config         Interact with Consul's Centralized Configurations
    connect        Interact with Consul Connect
    debug          Records a debugging archive for operators
    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.
    intention      Interact with Connect service intentions
    join           Tell Consul agent to join cluster
    keygen         Generates a new encryption key
    keyring        Manages gossip layer encryption keys
    kv             Interact with the key-value store
    leave          Gracefully leaves the Consul cluster and shuts down
    lock           Execute a command holding a lock
    login          Login to Consul using an auth method
    logout         Destroy a Consul token created with login
    maint          Controls node or service maintenance mode
    members        Lists the members of a Consul cluster
    monitor        Stream logs from a Consul agent
    operator       Provides cluster-level tools for Consul operators
    reload         Triggers the agent to reload configuration files
    rtt            Estimates network round trip time between nodes
    services       Interact with services
    snapshot       Saves, restores and inspects snapshots of Consul server state
    tls            Builtin helpers for creating CAs and certificates
    validate       Validate config files/directories
    version        Prints the Consul version
    watch          Watch for changes in Consul

 

启动

consul 自带 UI 界面,打开网址:http://IP:8500 ,可以看到当前注册的服务界面

./consul agent -dev -ui -node=consul-dev -client=192.168.0..

 

 

 

 

关闭防火墙

# 关闭防火墙
systemctl stop firewalld

# 配置允许放行
firewall-cmd --zone=public --permanent --add-port=8500/tcp && firewall-cmd --reload

云主机需配置安全组,在入方向规则,允许8500放行

 

 

配置环境变量

vim /etc/profile
export PATH=$PATH:/opt/consul_1.9.14
# 配置生效
source /etc/profile

 

标签:14,CentOS,--,Consul,1.9,consul,Interact
From: https://www.cnblogs.com/huaxiayuyi/p/16786692.html

相关文章