Recently, an Apache + Tomcat environment needs to be created for some reasons. But the trouble is that you do not have a Linux machine on hand, but you do not want to use Windows or install Linux. Therefore, I chose a solution like Apache + Tomcat + cygwin. The following is my detailed installation and configuration pr
Server Load balancer and cluster configuration for Apache + Tomcat
Experiment topology:
I. Matching Environment
(1 ). Tomcat installation and configuration
Tomcat_a's IP Address: 192.168.55.229
Tomcat_ B IP: 192.168.55.231
Tomcat installation of JDK and tomcat package (such
When Tomcat starts, the first line reports the message: The APR based Apache Tomcat Native Library which allows optimal performance in production environments W As not found on the Java.library.path:c:\program files\java\jre1.6.0_05\bin;d:\java\apache-tomcat-6.0.16\ Bin is a
to find support for other EE APIs, Finding an application server or using Tomcat as an application server is a good solution, and the third Way is to find a separate Java EE API implementation and then combine them with Tomcat. Although consolidation can bring about problems, this approach is most effective.Ii. Tomcat vs. Web serverTomcat is a container that pro
First, integrating Apache and TomcatAlthough Tomcat can run independently as a Web server, Tomcat's web capabilities are far from Apache, so in practice, Apache and Tomcat are integrated with the service through the MOD_JK Connector (connectors),
A cotton E-commerce site, daily trading at the same time online people line of 2500 people on average, mainly online to watch real-time quotes. At the same time, the site provides a large number of information publishing, forums, online e-commerce and other functions. Ready to apply Java EE to implement, the way to apply apache+tomcat, whether can support 3000 people at the same time online access. If not,
The relationship between Apache and Tomcat has been confusing before, and is now recorded here by querying information and understanding.Apache and TomcatLocate both: Apache is an HTTP Web server, and Tomcat is a Web container.There is a very figurative analogy: Apache is a
The combination of apache and tomcat is still quite large. To use jsp, most companies adopt apache + tomcat:
I. System Version: Centos 5.3 64-bit System
Nginx version: httpd-2.2.13.tar.bz2
Jdk version: 1.6.0 _ 18_64
Tomcat version:
Tomcat Modify Configurationcatalina.sh file Join
Export catalina_opts= "-dcom.sun.management.jmxremote-dcom.sun.management.jmxremote.authenticate=false- dcom.sun.management.jmxremote.ssl=false-djava.rmi.server.hostname=192.168.100.42- dcom.sun.management.jmxremote.port=12345 "2.tomcat/lib Join Catalina-jmx-remote.jar3. Restart Tomcat4. To detect if the client jmx is successful, enter the following comm
want to access it without shutting down the firewall. The 1099 ports need to be published in the Iptables.Shutdown Firewall command: Service iptables stop[[Email protected] sysconfig]# service iptables stopflushing Firewall rules: [ OK ]setting chains to policy A Ccept:filter [ OK ]unloading iptables modules: [ OK ]Add in Etc/sysconfig/iptables:-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 1
Monitoring Application Interface: News interface, weather interface Processing method: Automatically restart Tomcat when application interface is not available, and send alert email to relevant people
#!/bin/bash #---------------------------------------------------------# function Description: # MONITOR Specifies whether the HTTP service is available, and if not available, restart
Environment descriptionThe online environment deploys the application in the form of Apache+tomcat, with Apache listening on 80 ports on the front and the backend using Tomcat to deploy the app. Tomcat's static resource responsiveness and concurrent processing capabilities are not as good as
One, Apache HTTP Server and Tomcat four ways to connectJK http_proxy Ajp_proxy Mod_cluster
Four comparisons:
The Http_proxy, Ajp_proxy, and Mod_cluster are relatively simple and flexible in their configuration relative to JK's connection method. But in terms of stability it's not as well-tried as JK, but over time, there are more and more Internet sites using Mod_cluster. Ii. Benefits of using Mod_cluster
H
IApache supports static pages. Tomcat supports dynamic pages, such as servlets,
If Apache + Tomcat is used, Apache is only used as a forward object, and JSP processing is handled by Tomcat.
Apache supports PHP \ cgi \ Perl, but to
The main reference to this man's article http://elf8848.iteye.com/blog/471676
Do not find after doing, the original Linux server configured a number of network cards, after setting the Djava.rmi.server.hostname property for the current server's IP, you can connect to.Please edit the tomcat/bin/catalina.sh and add the next parameter below the java_opts.java_opts= "-dcom.sun.management.jmxremote.port=port -djava.rmi.server.hostname=XX.XX.XX.XXX - Dcom
Apache has two ways to run PHP, one to use the module, and two to use the fastcgiNginx can also handle dynamic requests via fastcgi, and can also be forwarded to TomcatTomcat monitoring is primarily the monitoring JVM, optimized primarily externally and internally, with maximum idle, minimum idle, etc.J2ee:java's Enterprise Edition and EmbeddedStandard version of
Apache Tomcat Information Disclosure vulnerability exists in all versions
CVE (CAN) id:cve-2016-8745
Renew Date: 2017-1-5
Degree of importance: Important
Affected version:
Apache Tomcat 9.0.0.m1 to 9.0.0.m13
Apache Tomcat 8.5.0 to
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.