Configure the jsp development environment in linux

Source: Internet
Author: User
In linux, configure the jsp development environment-general Linux technology-Linux programming and kernel information. The following is a detailed description. Note: The system environment is linux 5.0 AS 64-bit. Different systems may also be different.

The procedure is as follows:
1: Download apache-tomcat-5.5.23.tar and the jdk-1_5_0_12-linux-i586.bin are stored in the/usr/local folder;

2: Install jdk
[Root @ localhost local] # chmod 775 jdk-1_5_0_12-linux-i586.bin 'is not required, if the run directly prompts that the permission is not enough to change the permission;
[Root @ localhost local] #./jdk-1_5_0_12-linux-i586.bin 'to start the installation, the default installation can be;

3: install Tomcat
[Root @ localhost local] # tar xzvf apache-tomcat-5.5.23.tar ''can be installed by default
[Root @ localhost local] # mv apache-tomcat-5.5.23 atat5.5 'modify the default installed folder name to facilitate the subsequent configuration of Environment Variables

4: Set jdk and Tomcat Environment Variables
[Root @ localhost local] # vi/etc/profile 'requires you to know how to use the vi command. See the appendix.

Enter the following content at the end of the file:
Export JAVA_HOME =/usr/local/jdk1.5.0 _ 12

Export CLASS_PATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/jre/lib/rt. jar

Export CATALINA_BASE =/usr/local/tomcat5.5

Export CATALINA_HOME =/usr/local/tomcat5.5

PATH = $ JAVA_HOME/bin: $ PATH: $ CATALINA_HOME/bin

[Root @ localhost local] # source/etc/profile 're-edit the profile file;

5. Test whether jdk is successfully installed.
[Root @ localhost local] # java 'If the command runs normally, the installation is successful.
[Root @ localhost local] # javac' if the command runs normally, the installation is successful.
[Root @ localhost local] # java-version' check whether the jdk version is the version we have installed. For details, see the appendix.

6. Tomcat startup and Configuration
[Root @ localhost local] #/usr/local/tomcat5.5/bin/startup. sh 'start tomcat. If no error message is displayed, the startup is successful. You can also access port 8080 of the Local Machine to check whether the port is normal (enter 127.0.0.1: 8080)

7: Other Tomcat settings
A: Create a new admin user for Tomcat. To do this, edit jakarta/conf/tomcat-users.xml and add a line similar to the following:



In this way, you can click the "Tomcat Administration" link on the left of the Tomcat home page to go to a logon page. Enter the user you just created to further configure the server.

B: view the Tomcat log file:
[Root @ localhost local] # tail-f/usr/local/tomcat5.5/logs/catalina. out

Appendix:
1: java version issues. If you select the java Server when installing the system, jdk1.4.2 is installed by default. We recommend that you uninstall JDK by default;

2: vi commands start to enter the editing status by pressing 'I. to exit the editing status, press the 'esc' key, press the ':' sign, and then press ': run the 'wq' command to save and exit.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.