tomcat install for Mac

mac has its own apache


1. Type in the terminal: sudo apachectl -v     will display the apach version.

 

 2. Enter the command: sudo apachectl start

 

3. Enter http: // localhost in the browser, it will show that apache has been successfully opened.

 

 

 

 

Attached:

Official website download link: https://tomcat.apache.org/  , you can download the windows

 

Apache is an ordinary server, which only supports html, that is, ordinary webpages and static webpages. It can support php through plugins, but dynamic webpages like jsp require Tomcat to handle; it can also be connected to Tomcat (Apache unidirectional connection to Tomcat, that is, through Apache Access Tomcat resources, and vice versa).  

Integrated use of Apache and Tomcat: if the client requests a static page, only the Apache server needs to respond to the request; if the client requests a dynamic page, the Tomcat server responds to the request, parsing the parsed JSP and other web code and sending it back to Apache The server is then returned to the browser via Apache. This is because jsp interprets the code on the server side. Tomcat only performs dynamic code analysis. Apache returns the parsed static code. Apache + Tomcat integration can reduce Tomcat's service overhead.

Apache is implemented in C language and supports various features and modules to extend core functions; Tomcat is written in Java and better supports Servlet and JSP.

 

Guess you like

Origin www.cnblogs.com/OFSHK/p/12760039.html