First, install the JDK
① the JDK extract to opt directory (opt is the Folder)
② configuration environment variable vim / etc / profile
JAVA_HOME=/opt/jdk1.8.0_152 PATH=/opt/jdk1.8.0_152/bin:$PATH export JAVA_HOME PATH
After performing the following operations ③ configuration
- After the installation log off at source / etc / profile again
- Reboot the system (recommended)
Second, install Tomcat
① decompression to / opt
② into the bin directory under the Tomcat directory, then start Tomcat ./startup.sh (note yo, preceded by ./)
Third, install Eclipse
① decompression to / opt
② start eclipse, and server configuration jre
③ write Hello world
④ write jsp page