To see if Apache is installed:
[[email protected] ~]# Find/-name ' httpd '
/usr/sbin/httpd
/usr/lib64/httpd
/var/run/httpd
/var/log/httpd
/var/lock/subsys/httpd
/etc/logrotate.d/httpd
/etc/httpd
/etc/sysconfig/httpd
/etc/rc.d/init.d/httpd
The place where Apache was installed was/etc/httpd.
View Apache version
First enter the directory where the httpd is located
[Email protected] ~]# CD/ETC/HTTPD
Then view the version
[Email protected] httpd]# httpd-v
Server version:apache/2.2.15 (Unix)
Server Built:mar 22 2017 06:52:55
Stop httpd
[[email protected] httpd]# service httpd Stop
stopping httpd: [OK]
Start httpd
[[email protected] httpd]# service httpd start
Starting httpd: [OK]
Try the browser access:
Apache's important profile httpd.conf is located in/etc/httpd/conf/httpd.conf
View CentOS on the Apache location, version, stop, start