Running The Apache Tomcat 7.0 Servlet/JSP Container
Requirements:
(1) Download and Install a Java SE Runtime Environment (JRE)
(1.1) Download a Java SE Runtime Environment (JRE),release version 6 or later, from
http://www.oracle.com/technetwork/java/javase/downloads/index.html
(1.2) Install the JRE according to the instructions included with the release.
You may also use a full Java Development Kit (JDK) rather than just a JRE.
(2) Download and Install Apache Tomcat
(2.1) Download a binary distribution of Tomcat from: http://tomcat.apache.org/
renice — alter priority of running processes
Renice alters the scheduling priority of one or more running processes. The following who parameters are interpreted as process ID’s, process group ID’s, or user names. a process group causes all processes in the process group to have their scheduling priority altered. a user causes all processes owned by the user to have their scheduling priority altered. By default, the processes to be affected are specified by their process ID’s.
For example,
renice +1 987 -u daemon root -p 32
would change the priority of process ID’s 987 and 32, and all processes owned by users daemon and root.
Users other than the super-user may only alter the priority of processes they own, and can only monotonically increase their “nice value” within the range 0 to PRIO_MAX (20). (This prevents overriding administrative fiats.) The super-user may alter the priority of any process and set the priority to any value in the range PRIO_MIN (?20) to PRIO_MAX. Useful priorities are: 20 (the affected processes will run only when nothing else in the system wants to), 0 (the “base” scheduling priority), anything negative (to make things go very fast).
Determine which network interface card (NIC)Postfix is running on?
The netstat command allows querying of IP addresses and interfaces that the Postfix daemon is listening. By default, Postfix listens on TCP port 25.
By using the netstat and grep commands for port 25, IP addresses that Postfix are listening to can be found by issuing the following command:
netstat -an | grep :25 | grep tcp
Example:
$ netstat -an | grep :25 | grep tcp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
Here, Postfix is only listening on the IP address 127.0.0.1.
In order to list each interface’s assigned IP address, issue the following command as root:
Running CGI script from any directory
In order to force apache to allow cgi script to run, simply create a file called .htaccess inside the directory in which you wish to run the scripts. Inser this text into the file:
AddHandler cgi-script .cgi .pl
AddHandler maps the filename extensions extension to the handler handler-name. This mapping is added to any already in force, overriding any mappings that already exist for the same extension. For example, to activate CGI scripts with the file extension “.cgi”, you might use:
AddHandler cgi-script .cgi
Once that has been put into your srm.conf or httpd.conf file, any file containing the “.cgi” extension will be treated as a CGI program.
The extension argument is case-insensitive, and can be specified with or without a leading dot.
Running CGI script from any directory
In order to force apache to allow cgi script to run, simply create a file called .htaccess inside the directory in which you wish to run the scripts. Insert the following text into the .htaccess file:
Options +ExecCGI
AddHandler cgi-script .cgi .pl