영사 때 새로운데 서버 클라이언트 환경을 설정하려고합니다. 다음영사 - 클라이언트를 서버에 연결
consul.exe agent -ui -config-dir=P:\Consule\config
설정 파일이 보인다 : 나는 다음과 같은 명령과 구성으로 내 서버를 시작했다 ("P : \ Consule \ 설정 \ server.json") 내가 시작
{
"bootstrap": false,
"server": true,
"datacenter": "MyServices",
"data_dir": "P:\\Consule\\data",
"log_level": "INFO"
}
출력 명령 줄에서 위의 명령으로 영사 :
==> Starting Consul agent...
==> Consul agent running!
Version: 'v0.8.3'
Node ID: '1a244456-e725-44be-0549-33603ea7087d'
Node name: 'MYCOMPUTERNAMEA'
Datacenter: 'myservices'
Server: true (bootstrap: false)
Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600)
Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
Atlas: <disabled>
이제 내 도메인의 다른 컴퓨터에서 나는 커맨드와 설정 파일 때라도와 함께 영사 클라이언트를 실행하려고 :
,consul.exe agent -config-dir C:\Consul -bind=127.0.0.1
구성 파일 ("C : 영사 \의 client.json을 \") :
==> Starting Consul agent...
==> Joining cluster...
==> 1 error(s) occurred:
* Failed to join <IP_OF_MYCOMPUTERNAMEA>: dial tcp <IP_OF_MYCOMPUTERNAMEA>:8301: connectex: No connection could be made because the target machine actively refused it.
사람이 내가 '무엇을 알고 있나요
{
"server": false,
"datacenter": "MyServices",
"data_dir": "C:\\TEMP",
"log_level": "INFO",
"start_join": ["MYCOMPUTERNAMEA"]
}
하지만 항상 출력/오류 메시지 follwing을 얻을 잘못하고있는거야?
감사와 안부
에이전트를 시작할 때'-client = 0.0.0.0'을 추가하면 트릭이 생겼습니다. – Anders