Alibabacloud.com offers a wide variety of articles about apache tomcat default password, easily find your apache tomcat default password information here online.
improve security, but also set the user's permissions. If you do not use a password authentication method, you cannot restrict the permissions of the user.
Apache:
httpd.conf
Extendedstatus on
SetHandler Server-status
Order Allow,deny
Allow from all
Http://192.168.2.8/server-status
Monitor Tomcat Another way:
In
: localhost: 8009]Port = 8009Host = 127.0.0.1
[Ajp13: localhost: 8009]Channel = channel. Socket: localhost: 8009
[URI:/examples /*. JSP] # examples represents a virtual path in Tomcat. You can write any virtual path, and each virtual path can match any extension that can be forwarded to Tomcat.[URI:/task4/*. jsp] # Another virtual path that instructs Apache to
path,
Add in field
2. integrate Apache + Tomcat + MySQL This step is relatively simple, but it is also the most difficult part to succeed. the MySQL driver of JSP has been put in the corresponding directory, and the environment variables are also set, therefore, we only test whether JSP can connect to the MySQL database.1. test 1. write the following content in the editor:
Java. SQL. Connection
case.
It seems that Apache and OA Tomcat will conflict, directly caused the Tomcat server paralysis, and then OA can not access. So I thought about simply giving up Apache. Well, configure IIS to parse the php,php resolution successfully with IIS. But OA's MySQL password t
noted that Tomcat 5.5.12 is similar to the previous 4. the architecture of X is a bit different. I checked the information, as if it was a support for jsp2.0 or something. To tell the truth, I am not very familiar with it... there seems to be an extra Catalina and I don't know what it is for. Well, it's just a little bit of work to complete the task... it's really painful!
Next, we need to set up the next mod_jk2.so file for
. Install JDK, I install jdk5.0 here, install to c:/jdk5.0 directory2. Install Apache, to http://www.apache.org download Apache stable version of the server, I use is apache_2.0.49, download after the installation program double-click to start installation, very simple, according to the prompts to install, After the default installation
exist in the "/etc/apache2/mod-enabled" directory.
If not, modify the manual Creation
The command is as follows:
Ln-s/etc/apache2/mod-available/jk. conf/ete/apache2/mod-enabled/jk. conf
Ln-s/etc/apache2/mod-available/jk. load/ete/apache2/mod-enabled/jk. load2.3 interface module configuration
Edit File '/etc/libapache2-mod-jk/httpd-jk.conf"
Do not proxy static resources (just remove the comments below)
3. Deploy the application
Here, we use the "Zrlog personal blog program" as an example;3.1 c
In linux, use mod-jk to integrate apache and tomcat-Linux Enterprise Application-Linux server application information. The following is a detailed description. See clearly, this is mod-jk, not outdated mod-jk2, the following take ubuntu6.10 version as an example to illustrate the simple installation process.
1. install java or jre and configure the path.
2. install ap
tomcat, then remove the web-inf-- The LIC under resources (in the case of already registered), is registered through the Localhost:8080/webreport/reportserver Access decision system. (each server corresponds to a different. Lic)11. Modify the following Web. XML (Seventh Step) below Web-inf in the Tomcat Webreport project under each server, as follows:"1.0"encoding="UTF-8"? >app xmlns="HTTP://JAVA.SUN.COM/X
setting is editable state), you can right-tomcat-->open, or directly double-click Open, into the Tomcat Overview interface, such as:Modify the Server Locations, select Use Tomcat installation (takes control of Tomcat installation)Server Path:web Servers Tomcat pathD:\DevToo
*************************************************************************Unpackwars= "true" autodeploy= "true" >Documentation at:/docs/config/valve.html---Documentation at:/docs/config/valve.htmlNote:the pattern used is equivalent to using pattern= "common"-prefix= "Localhost_access_log" suffix= ". txt"pattern= "%h%l%u%t quot;%rquot; %s%b "/>Add this sentence to modify the default directory for the site2-3 According to the situation, add a index.html
/catalina.sh#netstat-LNP |grep 80 discovers 80 port opening, that is, Tomcat boot success#/usr/local/tomcat/bin/catalina.sh Stop/restart#/usr/local/tomcat/bin/shutdown.sh can also close TomcatSetting up the Systemctl boot service#vim/lib/systemd/system/tomcat.service[Unit]Description=tomcatAfter=network.target[Service]Type=forkingexecstart=/usr/local/
In the actual development test, Access path plus engineering name is a bit troublesome, for example, there is a Web project named: SUNMOJD, then the configuration in Tomcat Server.xml is as follows:Find Tags:Xmlvalidation= "false" Xmlnamespaceaware= "false"Just add the following to the content:Where F:\apache-tomcat-6.0.30\ap
Apache-tomcat is a free and open source Web server, which is an international popular server for Web development. It is a lightweight application server and is widely used in small and medium sized systems and concurrent access users, and is the first choice for developing and debugging JSP programs. For a beginner, it can be argued that when you configure the Apache
folder.
6. Restart the Apache Tomcat server.
Note:To access the crystal report, you also need to configure the "Report directory" option of RAS based on the Report storage location.Use Ras Configuration Manager for configuration.By default, this option is '../program files/crystal decisions/Report Application Server 9/reports', and any reports in this directory
1. Open Tomcat's server.xml find
Unpackwars= "true" autodeploy= "true" >
Documentation at:/docs/config/valve.html---Documentation at:/docs/config/valve.htmlNote:the pattern used is equivalent to using pattern= "common"-prefix= "Localhost_access_log" suffix= ". txt"pattern= "%h%l%u%t quot;%rquot; %s%b "/>
2. Add
such as:
3. Note: One problem with the above setting is that the item will be reloaded two times.
Cause analysis
Unpackwars= "true" autodeploy= "true"Xmlvalidation= "false" Xmlnames
To modify the default work path for Tomcat
I installed the Tomcat installation version, not directly extract the green version, because the personal feeling to use to open the DOS box, so ugly, so find the installation version, and the day-to-day installation of software, execution has been clicked "next" but, note that midway need to specify your own machine Ja
/MyProject/pages/login.jsp
[Note:] The name of the red part must be the same, that is, it must be the same as the project name under tomcat.
Modify Tomcat files
1. add ROOT. xml under tomcat
My directory is like this:/opt/tomcat/conf/Catalina/localhost
Create ROOT. xml
The code is as follows:
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.