Linux Java

java

tar -zxvf jdk-8u121-linux-x64.tar.gz 
export JAVA_HOME=/home/app/jdk1.8.0_121
export JAVA_BIN=$JAVA_HOME/bin
export JAVA_LIB=$JAVA_HOME/lib
export CLASSPATH=.:$JAVA_LIB/tools.jar:$JAVA_LIB/dt.jar
export PATH=$JAVA_BIN:$PATH

redis

port 16379
bind 10.169.4.34
dir /home/app_adm/red/tmp
sentinel monitor mymaster 10.169.4.34 6379 2

# sentinel auth-pass  
sentinel down-after-milliseconds mymaster 30000
sentinel parallel-syncs mymaster 1
sentinel failover-timeout mymaster 180000


daemonize yes
pidfile /home/app_adm/run/redis-63790.pid
port 63790
bind 10.169.4.34
requirepass password


port 63791
bind 10.169.4.34
daemonize yes
dir /home/app_adm/red/tmp
sentinel myid d2b644b3131544b8332bf89d6543fb912bffccd6
sentinel monitor mymaster 10.169.4.34 63790 2
sentinel down-after-milliseconds mymaster 15000
sentinel failover-timeout mymaster 900000
sentinel auth-pass mymaster password 
sentinel config-epoch mymaster 0
sentinel leader-epoch mymaster 0
sentinel current-epoch 0
sentinel announce-ip "10.169.4.34"

你可能感兴趣的:(Linux Java)