JSP Site Deployment Environment Configuration
First of all,the. JSP Web site is very different from the . HTML Web site,HTML is a static web development scripting language,JSP It is a language designed specifically for the development of dynamic Web sites on the basis of HTML. So JSP website can not open directly, must use the server.
The next step is how to configure the relevant environment:
1 . Installation of JDK:
JDK: in the folder has been downloaded, directly click on the installation can be. Installed by default in:C:\Program Files (x86) \java
2. JDK Environment configuration:
after the JDK is installed, click My Computer >>> Right-click, select Properties >>>
>>> Click Advanced Settings >>>
>>> Select environment variables >>>
>>> in the System variables module, click New java_home>>>
the value of the >>> variable is:jdk 's installation directory to the bin directory
>>> then click New , add The value of the classpath>>> variable: The period of the English.
>>>> then find the path object >>>
The value of the variable is : after the contents of the + English semicolon (; ) +JDK the installation directory to bin Catalogue
Now that the JAVA environment configuration is complete, test the configuration is correct, method:
Click win+r, enter the command line interface, enter the cmd command,
Click Enter after entering javac Click on the return, the following interface shows the configuration is complete.
3, the MySQL database installation steps:
The Mysql database has been downloaded and placed in the folder.
Mysql Installation Tutorial online has a picture and text process, give you a URL:http://www.jb51.net/article/23876.htm
Follow the above steps to install, the database user name, password are set to:root
Note: The database user name and password must be set to root
4, MySQL database management software:sqlyog has been downloaded well put in the folder, click on the installation can be, the previous default.
5, MySQL management, click on the installation of SQLyog software, access to the management interface, new connection, user name and password are filled:root
6. Import the database
The database file has been placed in the folder, Name:anfangxiehui.sql
Right-click in the left blank area of SQLyog :
Click Execute SQL script
File Execution Select anfangxiehui.sql this file. After the import is successful, a database named Aqxh will appear on the left. That's all you can do.
7. Installing the Tomcat Server (apache-tomcat-7.0.27.rar)
The compressed file has been placed in the folder, click Install after decompression.
Note: You must configure the JDK before you install tomcat .
8. Website deployment
Open the Web Site deployment folder and copy the Anquanfangfanxiehui folder inside to the webapps in the Tomcat installation directory Folder.
9. Start the Tomcat server to run
Open the Tomcat installation directory, There are two . exe files in the bin directory , click Open, do not close after opening.
10. Interface Test
In the address bar of the browser, enter: http://localhost:8080/
The above page appears to indicate that Tomcat boot is complete. Next enter in the browser address bar:http://localhost:8080/anquanfangfanxiehui/, if the presence of the site interface indicates that the configuration is complete, you can browse and manage it normally.
JSP Web Server Configuration