(个人经验,仅供参考,错误之处,敬请谅解)
PHP
使用brew对php版本进行管理,具体自行查找,个人没有实现,因为无法连接github的homebrew
Apache
配置 /etc/apache2/httpd.conf 根目录 /Library/WebServer/Documents (可以自行修改)
启动 sudo apachectl -k start 停止 sudo apachectl -k stop 重启 sudo apaachectl -k restart
一定得带-k 参数,不然会报/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service 错误
Mysql
安装配置Mysql