Tomcat server is a free, open-source Web application server. is a lightweight application server, and is widely used in small and medium-sized systems and concurrent access users, and is the preferred server for developing and debugging JSP programs.
There are two ways to install Tomcatserver under Windows. One is to install directly. One is the green version, after decompression can be used directly
This blog introduces you to another way
First download from http://download.csdn.net/detail/u010105970/9493219 tomcatserver
The first step is to put the Tomcatserver compressed package under the D:\develop folder (in fact it can be placed in a casual folder just I usually put my development tools in this folder, easy to manage)
Unzip and open to see the folder structure of Tomcat such as the following
File Explanation:
Bin: A script file that holds Tomcat started and closed
conf: store Various configuration files for Tomcatserver
Lib: support jar package for storing tomcatserver
logs: log file that holds Tomcat
Temp: holds temporary files generated by Tomcat execution
WebApps:the folder where Web apps reside, that is, the storage folder for Web resources for external access
Work : Tomcat's working folder
You can start the server after you finish the above operation.
Open the command line and go to the Bin folder under the Tomcat folder
Enter startup command to start Tomcatserver
When the pop-up Dos form, indicates that Tomcatserver successfully started the
then enter http://localhost:8080/in the browser when the viewer appears in the prompt box indicating that Tomcatserver successfully started
Deploy your project to Tomcatserver
As I've described earlier, webapps is the folder where the Web app is located, which is the repository for Web resources. So just deploy our own project under the WebApps folder, and when you open the WebApps folder, you can see the folder structure in the WebApps folder such as the following
The input http://localhost:8080/, which is described earlier, is actually an interview with the files in these directories of Tomcat in the WebApps directory.
Before you deploy your own web. Start by creating a new app directory in the WebApps directory to save your Web project
Then put a picture called Photo_04.jpg in the app directory
Finally open the browser and enter http://localhost:8080/app/photo_04.jpg in the browser to access the Photo_04.jpg in the app directory
Visit this image on your phone without buying a domain name
The first step: need to connect tomcatserver and mobile phone on the same LAN, my phone and computer are connected to the same router, so that the phone and the computer connected to the same LAN
Step Two: View the IP address of the server (because Tomcat is installed on the computer, so the IP address of the server is the IP address of the computer), open the command line and use the ipconfig command to view the host's IP address
IPV6 represents the IP address of the native, and also the IP address of the Tomcatserver
So enter http://192.168.1.101:8080/app/photo_04.jpg in the browser to access photo_04.jpg this picture
After sending this address to your phone, you will be able to access this image on your phone.
Installing Tomcatserver under Windows