Article Title: Set JDK and TOMCAT in linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories. Download the JDK liunx version in linux, preferably the bin version. In general, we put the downloaded file under/usr/local/src,
ChmodA + x jdk .... /Jdk ............
Enter yes, and wait for a while before the installation is complete.
Installing a kitten is simpler.Tar. Put the version of gz under/usr/local/src, decompress it, but set it.Environment Variable.
We need to set environment variables.
Export JAVA_HOME =/usr/local/src/jdk1. 6. 0_10
ExportPATH= $ JAVA_HOME/bin: $ PATH
Export CLASSPATH =. : $ JAVA_HOME/lib/dt. Jar: $ JAVA_HOME/lib/tools. Jar
Export CATALINA_HOME =/usr/local/src/apachE-Tomcat
Export CATALINA_BASE =/usr/local/src/apache-tomcat
In/etc/ProfileAt last, write the above content at the end. In particular, we need to note that in win, we use semicolons for isolation. in linux, we use colons for isolation. During my first time, I am suffering from this loss. I hope you will pay attention to it.
When we enter java-version and check whether the latest JDK version is installed, the installation and configuration are successful.
When we enter/usr/local/src/apacht-tomcat/bin/startup. Sh
Then you can see the following:
Using CATALINA_BASE:/usr/local/src/apache-tomcat-6. 0. 18
Using CATALINA_HOME:/usr/local/src/apache-tomcat-6. 0. 18
Using CATALINA_TMPDIR:/usr/local/src/apache-tomcat-6. 0. 18/temp
Using JRE_HOME:/usr/local/src/jdk1. 6. 0_10
It indicates that the installation is successful. You can enter http: // localhost: 8080/in the browser to view the welcome page of the kitten. At this point, the installation is complete.
This installation of JDK and TOMCAT was particularly smooth. It was previously configured several times. They all ended in failure and were very depressed. This was a success, so remember to prepare for the future and hope to make progress together with everyone.
It should be tomcat6. Version 0 has no management module, and it has not been found on the internet for a long time. Finally, I saw an article on the Internet and changed something in a file, tomcat-users in the conf subdirectory of tomcat 6 installation directory. Xml file with the following content:
In Between
The first sentence indicates adding a role named manager (Administrator); the second sentence indicates adding a user. The role (roles) of this user is manager, the username is tomcat, And the password (Password) Is tomcat.
Then we need to restart the kitten. Then we can enter the user name and password and click "OK" to go to Web management.