Home > Java > javaTutorial > hadoop installation and maintenance 01--JDK environment deployment

hadoop installation and maintenance 01--JDK environment deployment

黄舟
Release: 2017-02-24 09:46:23
Original
1615 people have browsed it

1. JDK environment deployment (perform operations on all servers)

  Download jdk:

jdk-7u79-linux-x64.rpm
Copy after login
Copy after login

  Install jdk:

rpm -ivh jdk-7u79-linux-x64.rpm
Copy after login
Copy after login

  Configure java environment variables, edit /etc/profile:

#使用 rpm -ql 文件名 查询安装的路径vi /etc/profile 
#添加以下配置:export JAVA_HOME=/usr/java/jkd1.7.9_79export JAVA_BIN=$JAVA_HOME/binexport PATH=$PATH:$JAVA_BINexport 
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Copy after login
Copy after login

Execute the following:, make the java environment variables take effect immediately

source /etc/profile
Copy after login
Copy after login

Query the jdk version:

[root@rhel1 ~]# java -versionjava version "1.7.0_45"OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Copy after login
Copy after login

1. JDK environment deployment (perform operations on all servers)

  Download jdk:

jdk-7u79-linux-x64.rpm
Copy after login
Copy after login

  Install jdk:

rpm -ivh jdk-7u79-linux-x64.rpm
Copy after login
Copy after login

  Configure java environment variables, edit /etc /profile:

#使用 rpm -ql 文件名 查询安装的路径vi /etc/profile 
#添加以下配置:export JAVA_HOME=/usr/java/jkd1.7.9_79export JAVA_BIN=$JAVA_HOME/binexport PATH=$PATH:$JAVA_BINexport 
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
Copy after login
Copy after login

Execute the following: to make the java environment variable take effect immediately

source /etc/profile
Copy after login
Copy after login

Query the jdk version:

[root@rhel1 ~]# java -versionjava version "1.7.0_45"OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Copy after login
Copy after login

The above is the hadoop installation and maintenance 01--JDK environment Deployment content, please pay attention to the PHP Chinese website (www.php.cn) for more related content!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template