Linux commands: Difference between revisions

Jump to navigation Jump to search
153 bytes added ,  18 February 2013
m
Line 79: Line 79:
== apache operation ==
== apache operation ==
check apache servie is running or not
check apache servie is running or not
* {{kbd | key=<nowiki>service --status-all | grep httpd</nowiki>}}  ({{Linux}}<ref>[http://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/ Red Hat / CentOS: Check / List Running Services]</ref>)  
* {{kbd | key=<nowiki>service --status-all | grep -i httpd</nowiki>}}  ({{Linux}}<ref>[http://www.cyberciti.biz/faq/check-running-services-in-rhel-redhat-fedora-centoslinux/ Red Hat / CentOS: Check / List Running Services]</ref><ref><nowiki>-i means ignore case</nowiki>[http://www.linfo.org/grep.html How to use the grep command, by The Linux Information Project (LINFO)]</ref>)  
* {{kbd | key = <nowiki>netstat -npl | grep httpd</nowiki>}} for {{Linux}}<ref>[http://www.cyberciti.biz/faq/find-out-which-service-listening-specific-port/ Linux / UNIX Find Out What Program / Service is Listening on a Specific TCP Port]</ref>
* {{kbd | key = <nowiki>netstat -npl | grep httpd</nowiki>}} for {{Linux}}<ref>[http://www.cyberciti.biz/faq/find-out-which-service-listening-specific-port/ Linux / UNIX Find Out What Program / Service is Listening on a Specific TCP Port]</ref>
* {{kbd | key=<nowiki>netstat -an | find /i "listening"</nowiki>}}  ({{Win}}) find the local open ports & find local address TCP 0.0.0.0:80 is listening<ref>[http://technet.microsoft.com/en-us/library/bb490947.aspx Netstat]</ref>
* {{kbd | key=<nowiki>netstat -an | find /i "listening"</nowiki>}}  ({{Win}}) find the local open ports & find local address TCP 0.0.0.0:80 is listening<ref>[http://technet.microsoft.com/en-us/library/bb490947.aspx Netstat]</ref>

Navigation menu