Devops Notes
Devops Notes
today we moved same file to /opt path using below command and extracted it using
tar command
mv jdk-8u171-linux-x64.tar.gz /opt
cd /opt
tar -xvf jdk-8u171-linux-x64.tar.gz
list them using command (ls)
cd jdk1.8.0_171
now run source command to restart the environment variables using below command
source ~/.bashrc (to restart the environment variable we are using this command)
check for java version using (java -version) to see wether java is installed or
not. If you are getting command not found then it means java is not installed in
the server
yum install java -y
check for java version and it should reflect now (java -version)