How to start apache service on Mac OS system

王林
Release: 2020-07-01 17:23:02
forward
5105 people have browsed it

How to start apache service on Mac OS system

Mac OS X 10.12.6 system has Apache installed by default. To start the Apache service, you need to manually start it through the command line.

(Recommended learning:apache from entry to proficiency)

Specific steps:

Start Apache

sudo apachectl start
Copy after login

Stop Apache

sudo apachectl stop
Copy after login

After startup, it can be accessed through http://127.0.0.1.

In addition, the configuration file path is /etc/apache2/httpd.conf, and the root directory of the site is /Library/WebServer/Documents/.

The above is the detailed content of How to start apache service on Mac OS system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!