??? yum -y list java*
??? 或
??? yum search jdk
??? yum install java-11-openjdk.x86_64
??? yum install java-11-openjdk-devel.x86_64
??? java -version
/usr/lib/jvm
??? vi /etc/profile
?? 在文件最后加入:
??? ############################################################################
??? #set java environment
??? JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk.x86_64
??? PATH=$PATH:$JAVA_HOME/bin
??? CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
??? export JAVA_HOME CLASSPATH PATH
??? #############################################################################
??? 修改/etc/profile之后让其生效
?? ?
??? . /etc/profile (注意 . 之后应有一个空格)
??? ::
??? #错误修改了/etc/profile文件导致常用命令(ls、vi等)都无法使用
??? #解决方案:
??? #[root@localhost ~]#? export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin
安装 python 运行环境
??? # 如 当前为 Python3,则应为 sudo wget https://bootstrap.pypa.io/get-pip.py
??? sudo wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
?? ?
??? # 在线安装 pip
??? sudo python get-pip.py
?? ?
??? # 在线安装安装 networkx
??? pip install networkx??? # 在线安装安装 pandas
??? pip install pandas??? # 安装 flask
??? pip install flask
? """
??? [root@hadoop100 ~]$ ssh-keygen -t rsa?????????????????????? #指定加密算法为rsa ?
??? Generating public/private rsa key pair.
??? Enter file in which to save the key (/root/.ssh/id_rsa):??? #保存密钥文件的全路径????? 默认(/home/usera/.ssh/id_rsa)
??? Created directory '/home/usera/.ssh'.
??? Enter passphrase (empty for no passphrase):???????????????? #密码可以为空
??? Enter same passphrase again:
??? Your identification has been saved in /root/.ssh/id_rsa.??? #生成私钥
??? Your public key has been saved in /root/.ssh/id_rsa.pub.??? #生成公钥
??? The key fingerprint is:
??? 39:f2:fc:70:ef:e9:bd:05:40:6e:64:b0:99:56:6e:01 root@hadoop100
??? The key's randomart image is:
??? +--[ RSA 2048]----+
??? |????????? Eo*??? |
??? |?????????? @ .?? |
??? |????????? = *??? |
??? |???????? o o .?? |
??? |????? . S???? .? |
??? |?????? + .???? . |
??? |??????? + .???? .|
??? |???????? + . o . |
??? |????????? .o= o. |
??? +-----------------+
??? """
??? ssh-copy-id -i /root/.ssh/id_rsa.pub root@192.168.79.128(IP或主机名)
??? cd ~/.ssh
??? vim authorized_keys
??? ssh root@192.168.79.128(IP或主机名)