mac os x 10.12.6 系统默认是安装了 apache 的,要启动 apache 服务需要手动通过命令行开启。
(推荐学习:apache从入门到精通)
具体步骤:
启动Apache
sudo apachectl start
停止Apache
sudo apachectl stop
启动后可以通过 http://127.0.0.1 访问了。
另外,配置文件路径为/etc/apache2/httpd.conf,站点的根目录为/Library/WebServer/Documents/。
以上就是如何在Mac OS系统上启动apache服务的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号