--JDK installation of server Building
Plan to do a site from scratch I will come to write, there are insufficient places, I hope you point, there are questions can also leave a message.
jdk-7u75-linux-x64.tar.gz Download the package, go find it yourself, the official website is easy to find
Upload the compressed package to the server to decompress
Copy it to the path, I'm/soft/jdk1.7.0_75 here.
Configuring Environment variables
# Vi/etc/profile
Press I to enter edit mode to add
Press the ESC key to jump to command mode, and then:
: W saves the file but does not exit vi:w. File to save the modification to file without exiting vi:w! Force save, do not eject Vi:wq save file and exit vi:wq! Force save file, and exit Viq: do not save file, exit vi:q! do not save file, Force quit vi:e! Discard all changes, start editing from last save file
Restart the machine, of course, do not restart the machine, in order to be safe we will restart the machine
Input Java-version
Show
Java Version "1.7.0_75"
Java (TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot (TM) 64-bit Server VM (build 24.75-b04, Mixed mode)
Configuration succeeded
--JDK installation of server Building