Java-web -- tomcat, java-webtomcat
1. Go to www.apache.org
Apache is the world's No. 1 Web server software.
It can run on almost all widely used computer platforms,
Because of its wide use of cross-platform and security, it is one of the most popular Web server software.
2. select Projects)
3. Select Tomcat
Tomcat server is a free open-source Web application server.
4. Select Tomcat suitable for your jdk
5. Download suitable files for you
6. Download ing
7. decompressed directory
8. start Tomcat
Prerequisites: It must be compatible with jdk.
A.
B.
C. Double-click startup. bat
If a flash passes,
Check whether your task manager has java-related programs.
Or if the JAVA_HOME path is incorrect when you configure jdk.
D. the java Process is displayed on the task manager, and other program items can access the java
E. Enter the following URL on the webpage to check whether your Tomcat has been started successfully.
Tips
Accelerate startup time
1.
2.
3.
Start
After completion
4. The webpage is a little ugly at this time.
5. We can add a home page.
6. You can set the homepage based on your preferences.
9. Disable the firewall to allow others to access you.
A. Right-click "network" and choose "properties ".
B.
C.
D.
E.
F.
G. All three configuration files must be set to disabled.
10. Get the IP address of the Local Machine
A. Enter ipconfig
B. view your own broadband or local ip Address
C. Then, let your colleagues or colleagues access your Tomcat.
11. Configure Tomcat in eclipse
A. Switch to java ee
B. Select window --> prefereces
C. Add a running service
D. Select the appropriate service
E. Set attributes and information
F. A service will appear after completion.
12. prerequisites for creating the first dynamic web page
A. Create a dynamic webpage
B. Set attributes
C. You do not need to modify the settings. Go to the next step.
D. Check and select finish.
E. The dynamic web page is created successfully.
13. Run the first dynamic web page
1. Right-click the project run as -- run on server
2. Select a service
3. Add a project
4. This interface will appear when running, indicating that the operation is successful.
5. Create a dynamic web page
6. Create settings
7. write code
Note: I created the index. jsp file.
So by default
If you have created a web page
Simply add the webpage name to the end of the webpage.
For example
8. The running result is as follows: