Newcomers join, everyone take care
I recently started learning Linux, first deploying a java web service, and first installing JDK.
Software version
- Virtual machine: Click to download VMware VMware-workstation-full-10.0.7-2844087 access password ca95
- Linux: Click to download CentOS-6.7-i386-bin-DVD1 access password 1ec5
- Remote tools: Click to download Xshell_V5.0.0.24_setup.1438162236 access password a4d8
- JDK: Click to download jdk-8u65-linux-i586 access password e765
1. Check whether the system comes with JDK java -version
2. View all installed java rpm -qa | grep java
3. Delete the installed java rpm -e --nodeps java filename
4. Install the transfer file plugin yum install lrzsz
5. Transfer directory, transfer to the current directory rz
6. Install the JDK file rpm -ivh where the jdk file is located
7. Modify the configuration file vi /etc/profile and insert the following content
export JAVA_HOME = /usr/java/jdk1.8.0_65 export CLASSPATH = .:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/tools.jar export PATH = $PATH:$JAVA_HOME/bin
:wq save and exit
8. Check if the environment variable is configured successfully javac