Posts Tagged ‘Linux’

How to check apache httpd process in linux

February 7th, 2011

To check all the apache httpd processes in linux

ps -ef | grep httpd

To Count No of httpd processes

ps -ef | grep http | wc -l

To check no of incoming requests

netstat -anp | grep :80

How to disable the iptables firewall in Linux

November 2nd, 2010

while doing the MySQL Cluster Set up I needed to disable the firewall on the linux  so sharing how to do that

To Disable Firewall (Red hat/CentOS/Fedora Core)

/etc/init.d/iptables save
/etc/init.d/iptables stop

To Enable  Firewall (Red hat/CentOS/Fedora Core)

Type the following command to turn on iptables firewall:
/etc/init.d/iptables start

Tomcat 6 installation on CentOS 5/RHEL

August 25th, 2010

We can add repository under /etc/yum.repos.d/
wget ‘http://www.jpackage.org/jpackage50.repo’

#rpm -Uvh ‘http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm

#yum update
# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
# service tomcat6 start