Why is Jboss used?
1. Jboss supports hot deployment. It automatically loads and updates the archived JAR and WAR files under the deployment directory.
2. In high-concurrency access, the performance is better and more efficient than Tomcat.
3. Compared with Tomcat, Jboss optimizes the thread pool and connection pool.
4. Jboss has become an enterprise-level Web Application of Java middleware. Tomcat is a lightweight application and is widely used as a Java Development and debugging environment.
5. simple configuration and less system resources are occupied.
Jboss AS 7.1 running modes?
Dmain Mode (domain Mode): centrally manages configurations of multiple Jboss AS servers, configures and deploys them in a unified manner, and starts five processes and three Jboss AS Server instances, one Domain Controller Process and one Process Controller.
Standalone Mode: AS an independent Jboss AS server, a process is started.
Download: http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz
JDK download: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Mod_JK download: http://www.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.39-src.tar.gz
1. install Apache, PHP, and JK
1. Install YUM
[Root @ localhost ~] # Yum install-y gcc-c ++ httpd-devel php-mysql php-gd php-xml php-mbstring php-mcrypt freetype-devel libpng -devel zlib-devel libjpeg *
2. Generate and load the mod_jk Module
[Root @ localhost ~] # Tar zxvf tomcat-connectors-1.2.39-src.tar.gz
[Root @ localhost ~] # Cd tomcat-connectors-1.2.39-src
[Root@localhosttomcat-connectors-1.2.39-src] # cd native/
[Root @ localhostnative] #./configure -- with-apxs =/usr/sbin/apxs -- with-java-home =/usr/local/jdk1.7/
[Root @ localhostnative] # make
[Root @ localhostnative] # cp apache-2.0/mod_jk.so/etc/httpd/modules/
[Root @ localhost ~] # Vi/etc/httpd/conf/httpd. conf
LoadModulejk_module modules/mod_jk.so # Load jk Module
Include/etc/httpd/conf/mod_jk.conf # first load the jk configuration file
DirectoryIndex index. phpindex. jsp index.html. var # Add an index page
[Root @ localhost ~] # Service httpd restart
2. Install JDK1.7
[Root @ localhost ~] # Tar zxvf jdk-7u17-linux-x64.tar.gz
[Root @ localhost ~] # Mv jdk1.7.0 _ 17 // usr/local/jdk1.7
[Root @ localhost ~] # Vi/etc/profile
JAVA_HOME =/usr/local/jdk1.7
PATH = $ PATH: $ JAVA_HOME/bin
CLASSPATH =.: $ JAVA_HMOE/lib: $ JAVA_HOME/jre/lib
Export JAVA_HOMEPATH CLASSPATH
[Root @ localhost ~] # Source/etc/profile
[Root @ localhost ~] # Java-version
Java version "1.7.0 _ 17"
3. Install Jboss7.1
[Root @ localhost ~] # Tar zxvf jboss-as-7.1.1.Final.tar.gz
[Root @ localhost ~] # Music jboss-as-7.1.1.Final/usr/local/jboss7.1
[Root @ localhost ~] # Cd/usr/local/jboss7.1/
[Root@localhostjboss7.1] # nohup bin/standalone. sh & # Run in the background
Currently, access is not allowed. By default, jboss only listens locally. Modify the following section:
[Root@localhostjboss7.1] # vi standalone/configuration/standalone. xml
<Interfaces>
<Interfacename = "management">
<Inet-addressvalue = "$ {jboss. bind. address. management: 192.168.1.153}"/>
# Web backend management IP address. The default port is 9990.
</Interface>
<Interfacename = "public">
<Inet-addressvalue = "$ {jboss. bind. address: 0.0.0.0}"/>
# Jboss listening IP address, 0.0.0.0 for all
</Interface>
<! -- TODO-only show this if thejacorb subsystem is added -->
<Interfacename = "unsecure">
<! --
~ Used for IIOP sockets in the standard configuration.
~ To secure JacORB you need tosetup SSL
-->
<Inet-addressvalue = "$ {jboss. bind. address. unsecure: 127.0.0.1}"/>
</Interface>
</Interfaces>
Restart JBoss
# Killall java
[Root@localhostjboss7.1] # nohup bin/standalone. sh &
Log on to the management console for the first time and prompt you to create the login user and password for the background.
Create a user and password, and report an error to the file
Now you can log on to the console normally.
Apache-multi-site log analysis
Install Apache that supports SSL in Ubuntu 13.10
Disguise Apache to prevent Web Server intrusion
Compiling and installing the Apache Python module mod_wsgi
Enterprise Shell script analysis and Apache Log cutting practices
Linux website architecture series-Apache-deployment