Starting httpd in linux

To start httpd, you need to type following commands

<br>
[root@momo ~]# cd /etc/rc.d/init.d/<br>
[root@momo ~]# ./httpd start<br>

To test is httpd service is running, type following command

<br>
[root@momo ~]# ps -ef|grep httpd<br>

and this will give you results like

<br>
apache    2862  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd<br>
apache    2863  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd<br>
apache    2864  2860  0 Aug18 ?        00:00:00 /usr/sbin/httpd<br>

To check if your httpd is installed in the system, type below command in the console

<br>
[root@momo ~]# httpd -version<br>

Related Post

Compression using mod_deflate in Apache
Starting tomcat in debug mode – Linux
How to know which java version is installed in linux?
Forcing www in url using Apache
Installing mysql in linux

Comments

Leave a Reply




Technology