Tags: install tomcat restrict DAP install Tomcat user Management Add httpd password(summary) CentOS 6.x uses Yum to quickly install Apache+php+tomcat (JSP) +mysqlPS: This is lazy yum quick-install method for development and test environments is convenient for production environments with no special requirements. Specia
Encountered. net2.0ProgramThe JSP program is involved. iis7 has configured the domain name, while Tomcat port 8080 uses http: // localhost: 8080/MyApp
Inaccessible. So I found out how iis7 integrated Tomcat 6 on the Internet: refer
Slightly modified http://blog.csdn.net/liuyi1985/archive/2009/04/02/4045031.aspx
Assume that the host domain name is www.mydoma
The following content is reproduced from http://blog.csdn.net/typename/article/details/6309734
Installation and configuration of Linux Tomcat 6(1), go to the Apache official website (http://tomcat.apache.org/download-60.cgi) to download the apache-tomcat-6.0.29.tar.gz file.
(2) decompress and unpack the package
I posted on the official website
I am using a root user to log on. The specific operation steps are described below,
1. There is a commons-daemon-native.tar.gz compressed package in/usr/share/tomcat6/bin.
2nd release commons-daemon-native.tar.gz
[Root @ localhost ~] # Tar-zxvf commons-daemon-native.tar.gz
3. decompress the package and the commons-daemon-1.0.2-native-src folder (directory) appears)
1,Go to the Unix directory under the commons-daemon-1.0.2-native-src
[Root @ localhost ~] # Ls
[Ro
First, when installing 2 tomcat on a server, modify the port number of the Server.xml file in the second Tomcat's Conf directory (original 8080 to 8081, original 8005 to 8006) can be up to two tomcat can be started and the port does not conflict with each otherSecond, but this configuration will have two kinds of problems(1) Start one, and the other dies.(
If you are running Ubuntu and want to use the Tomcat ServletContainer, you shoshould not use the version from the repositories as itJust doesn't work correctly. Instead you'll need to use the manualInstallation process that I'm outlining here.
Before you install Tomcat you'll want to make sure that you 've veInstalled Java. I wowould assume if you are trying to install TomcatYou 've already installed Java
result of the final execution:Other configurationsOther configurations such as Oracle and PostgreSQL are only required for database-driven and created Jndi names that are different:For example, in Oracle, the CONTEXT.XML is configured as follows:Resourcename= "Jdbc/myoracle"Auth= "Container"type= "Javax.sql.DataSource"Driverclassname= "Oracle.jdbc.OracleDriver"URL= "Jdbc:oracle:thin:@127.0.0.1:1521:mysid"username= "Scott"Password= "Tiger"maxactive= " the"Maxidle= "Ten"maxwait= "-1"/> In Postgre
Software to be prepared before installation:
1. jdk-1.6
2. tomcat-5.5.28
3. myeclipse 7.0
If you have installed the JDK environment, you only need to install Tomcat.The software is as follows:Jdk-1.6 --: http://java.sun.com/javase/downloads/index.jspTomcat-5.5.28 --: http://apache.etoak.com/tomcat/tomcat-
Automatically start Tomcat upon startup (add to startup Service Group)
(1) first, go to the/usr/local/tomcat/bin directory and install jsvc.
Tar zxvf jsvc.tar.gz
CD jsvc-Src
Chmod + x configure
./Configure-with-Java =/usr/Java/jdk1.6.0 _ 02
Make
CP jsvc ..
(2) Add common users
# Useradd tomcat6 Add a user
# Groupadd
used to configure user information for authorization verification by certain applications.For other configurations such as the realm configuration of Web. XML there is not much to say, see how to set a global resource reference in Server.xml:XML version= "1.0" encoding= "UTF-8"?>ServerPort= "8005"shutdown= "SHUTDOWN">...globalnamingresources> ResourceAuth= "Container"Description= "User database that can be updated and saved"Factory= "Org.apache.catalina.users.MemoryUserDatabaseFactory"name=
decompressed to the current directory, and I decided to put it under/usr.
[Root @ rhel6 ~] # Mv./jdk1.6.0 _ 22/usr/
3. Configure the environment variable below. We will append the environment variable to/etc/profile.
[Root @ rhel6 ~] # Vi/etc/profile
Then let the set environment variables take effect and test whether the installation is successful.
[Root @ rhel6 ~] # Source/etc/profile
Okay. So far, JDK has been installed and configured. Next we will install
1. Download Tomcat 8.0.17 http://apache.fayea.com/tomcat/tomcat-8/v8.0.17/bin/apache-tomcat-8.0.17.tar.gz(Tomcat 8, must have JDK 1.7 support, this assumes that you have configured the JDK1.7 environment, if not configured, please self-Baidu)
Original http://docs.codehaus.org/display/BTM/Tomcat13
These instructions have been verified against BTM 1.3.1. Contents
Step 1: copy the BTM jars
Step 2: Configure BTM as the Transaction Manager
Step 3: Configure datasources that are transaction aware
Step 4: Configure Transaction Manager and datasources initialization in your META-INF/context. xml
Step 5: Configure datasources references in your web. xml
Step 1: copy the BTM
Anyone who has experience in server setup in the integration of Apache2.2 and Tomcat 6 in Ubuntu 12.04 knows the following advantages if Tomcat and Apache are integrated for J2EE development:1. Use Apache for load balancing and fault tolerance. 2. Apache focuses on static Web page parsing and
Jsvc:[RAF[email protected] local]$ CD tomcat-7.0/bin/[[email protected] bin]$ tar zxvf commons-daemon-native.tar.gz[email protected] bin]$ CD commons-daemon-1.0.15-native-src/unix/[email protected] unix]$ sudo./configure--with-java=/usr/java/default[[email protected] unix]$ sudo make[email protected] unix]$ sudo cpjsvc. /..[[email protected] unix]$ sudo cd.. /..Edit daemon.sh. Add a line at the beginning, support Chkconfig, add a look like the follow
Tomcat 6.x Perm Memory leakage
Tomcat 6.x
The last modification time of JSP files exceeds the current system time, leading to Memory leakage in the Perm zone (java Memory pool CMS Perm Gen)
Scenario:
Because the Test Service needs to simulate cross-day testing, the server implementation is usually modified to complete
in theLinuxunder DeploymentJavadeveloped byWebapplications, generally usingTomact+jreEnvironment (You do not needApache), inRHELand theCentOS, you can useYumOnline Automatic installation method installation, the specific operation is as follows:1 , Basic Environment installation configuration such as operating system (I use Centos6.3), Network and host basic configuration, etc.2 , Yum installation Tomcat :
JSP Study Notes (2): installation and configuration of Tomcat server, learning notes tomcat
1. Download and install Tomcat.
Go to the Tomcat official website to download the installation package or install the compressed package without installation. Link http://tomcat.apa
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.