2015-06-03 89 views
0

我想在兩臺不同的機器上配置兩個Opendj實例之間的多主複製:第一個在localhost上,第二個在virtualbox上。 我在兩臺機器上都安裝了Opendj。我無法啓用複製,因爲我不知道如何連接到虛擬站。命令:無法啓用複製

./bin/dsreplication enable --host1 work_station --port1 4444 --bindDN1 \ 
"cn=Directory Manager" --bindPassword1 password --replicationPort1 8989 \ 
--host2 virtual_station --port2 4444 --bindDN2 "cn=Directory Manager" \ 
--bindPassword2 password --replicationPort2 8989 --adminUID admin \ 
--adminPassword password --baseDN "dc=example,dc=com" -X -n 

給我的輸出:

Establishing connections ..... 
Could not connect to virtual_station:4444. Check that the server is running and 
that it is accessible from the local machine. Details: virtual_station:4444 

回答

0

爲了能夠2臺(物理或虛擬),則OpenDJ服務必須能夠解決這兩個名字之間啓用複製(無論是從DNS或本地主機文件)並連接到不同的機器和端口。 確保可以從每臺計算機上解析兩個名稱,並確保您沒有防火牆或其他阻塞端口的配置。