소스파일 경로 : home/tungsten-replicator 참고사이트 https://blog.naver.com/hanajava/220387849939 https://code.google.com/archive/p/tungsten-replicator/wikis/TRCBasicInstallation.wiki https://www.continuent.com/products/tungsten-replicator https://code.google.com/archive/p/tungsten-replicator/downloads 116(dev1서버) 소스압축 파일 위치 home/tungsten 압축푼 소스경로 home/tungsten-replicator 디비계정 생성해 두었음(tungsten / secret) ruby, jdk 설치 되어있음 --net-ssh-option=port=116 \ 마스터 설치 명령어 ./tools/tpm install alpha \ --topology=master-slave \ --master=192.168.7.20 \ --net-ssh-option=port=116 \ --install-directory=/opt/continuent \ --replication-user=tungsten \ --replication-password=secret \ --java-file-encoding=UTF8 \ --mysql-enable-enumtostring=true \ --mysql-enable-settostring=true \ --mysql-use-bytes-for-string=false \ --svc-extractor-filters=colnames,pkey \ --start-and-report 위 명렁어 실행시 아래 에러남 /home/tungsten-replicator/cluster-home/lib/ruby/net/ssh/transport/algorithms.rb:296:in `negotiate': could not settle on kex algorithm (Net::SSH::Exception) ERROR >> Unable to find any host configurations for the data service specified. Check the list of configured data services by running 'tools/tpm query dataservices'. /etc/mysql/mariadb.conf.d 다른 명령어로 같은 에러남 ./tools/tungsten-installer \ --master-slave \ --master-host=192.168.7.20 \ --net-ssh-option=port=116 \ --datasource-user=tungsten \ --datasource-password=secret \ --datasource-port=33060 \ --service-name=tungsten \ --home-directory=/opt/continuent \ --cluster-hosts=192.168.7.20 \ --start-and-report ./tools/tungsten-installer \ --master-slave \ --service-name=mysql-replicator \ --datasource-type=mysql \ --master-host=210.175.73.116 \ --datasource-port=33060 \ --datasource-user=tungsten \ --datasource-password=secret \ --home-directory=/opt/continuent \ --datasource-cnf=/etc/mysql/mariadb.conf.d/50-server.cnf \ --skip-validation-check=MySQLPermissionsCheck,MySQLApplierPermissionsCheck mysql -h 210.175.73.116 -u tungsten -P 33060 -p secret 서비스 확인 /opt/continuent/tungsten/tungsten-replicator/bin/trepctl services 모든 매개변수 datasource-user 및 비밀번호 보기 ./tools/tungsten-install --help-all # mysql account create grant all on *.* to tungsten@'%' identified by 'secret' with grant option; # ruby apt-get install -y ruby libopenssl-ruby $ echo "p 'hello'" | ruby -ropensslcd # JDK install install apt-get install openjdk-11-jdk bash settings vi /etc/bash.bashrc JAVA_HOME=/usr/lib/jvm/java-11-openjdk source /etc/bash.bashrc export JAVA_HOME