& Nbsp; JBossWeb server is a new open-source project that provides an independent and high-performance deployment platform for JSP, Servlet technology, MicrosoftASP.net, PHP, and CGI. JBossWeb is built on ApacheTomcat, APR (ApachePortableRumtime) and Tomcatnative technologies to achieve stability and performance. JBossWeb server is a new open-source project, which will be JSP, Servlet, Microsoft ASP.net, PHP and CGI provide an independent and high-performance deployment platform. JBossWeb is built on Apache Tomcat, APR (Apache Portable Rumtime), and Tomcat native technologies to achieve stability and performance comparable to or even surpassing Apache Http Server. The JBoss Web server has the following features: it can process more than 10,000 concurrent connections; supports http, https, and AJP (Apache Jserv Protocol) protocols; supports OpenSSL secure sockets layer; provides a flexible URL rewriting operation engine that supports unlimited number of rules and rule conditions; supports CGI and PHP scripts, ASP. NET application in and out-of-process execution.
1. preparations
Download jdk, this example is jdk-6u23-linux-i586.bin
Download jboss-web. this example is jboss-web-2.1.4.ga.zip.
Prepare the test war package
For the purpose of centralization, assume that all files are stored in/home/user/environment.
2. install jdk
Open the terminal, enter/home/user/environment, and execute the following command:
Sudo chmod a + x jdk-6u23-linux-i586.bin
Sudo./jdk-6u23-linux-i586.bin
After the installation is complete, a jdk1.6.0 _ 23 folder appears in/home/user/environment.
3. configure jboss-web
Decompress jboss-web-2.1.4.ga.zip and run it on the terminal.
Sudo unzip jboss-web-2.1.4.GA.zip
Enter the jboss-web-2.1.4.GA/bin folder to add script execution permissions
Sudo chmod + x *. sh
Use gedit to edit the startup script and set JAVA_HOME
Sudo gedit startup. sh
Add the following at the beginning of the opened script:
# Set JAVA_HOME --- PRIVATE
JAVA_HOME = ../jdk1.6.0 _ 23
Export JAVA_HOME
Echo "Set JAVA_HOME: $ JAVA_HOME"
Save and exit. in the same way, open shutdown. sh and add the preceding commands at the beginning to save the operation.
Start jboss-web
Sudo./startup. sh
4. verify the configuration
Start firefox and enter http: // localhost: 8080 in the address bar to check the result.
Copy the test war package to the jboss-web-2.1.4.GA/webapp, and then restart jboss-web, using a stupid way
Sudo./shutdown. sh
Sudo./startup. sh
Go to firefox and check whether the war package is successfully deployed and running.