主要内容:ssh免密、jdk安装
每一行外部的是命令。----内是打开文档写在内档内的内容
视频:
1 [ssh免密] 2 3 /root]#ssh-keygen -t rsa -->masterslave1slave2 4 5 cat id_rsa.pub >> authorized_keys --->master 6 7 ssh-copy-id -i master --->slave1 8 9 ssh-copy-id -i master ---->slave2 10 11 chmod 755 authorized_keys --->master 12 13 scp /root/.ssh/authorized_keys slave1:/root/.ssh/ -->master 14 15 scp /root/.ssh/authorized_keys slave2:/root/.ssh/ --->master
1 [JDK] 2 3 mkdir -p /usr/java 4 5 tar -zxvf/opt/soft/jdk-8u201-linux-x64.gz -C /usr/java (jdk-8u201-linux-x64.gz) 6 7 vi /etc/profile 8 9 ----------------------------- 10 11 export JAVA_HOME=/usr/java/jdk1.8.0_171 12 13 export CLASSPATH=$JAVA_HOME/lib/ 14 15 export PATH=$PATH:$JAVA_HOME/bin 16 17 export PATH JAVA_HOME CLASSPATH 18 19 ------------------------------- 20 21 source /etc/profile 22 23 java -version 24 25 scp -r /usr/java/ slave1:/usr/java/ 26 27 scp -r /usr/java/ slave2:/usr/java/