View CentOS on the Apache location, version, stop, start

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.