开启php: https://jingyan.baidu.com/article/67508eb434539f9cca1ce4da.html
配置多虚拟主机: https://jingyan.baidu.com/article/c85b7a646ad2a8003bac95f5.html
安装swoole:
root 下
1.git clone https://gitee.com/swoole/swoole.git
2.phpize --> ./configure --> make
(报错[pcre.h]:
2.1 brew install pcre 继续报错
Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
2.2执行 sudo chown -R ${yourusername} /usr/local ) 报错
chown不被允许
2.3 关闭 macOS csrutil(根目录保护机制)
2.3.1 重启macbook (sudo reboot)
2.3.2 使用(command + r) 进入磁盘管理 (选择 english)
2.3.3 在左上角的下拉框中找到Terminal
2.3.4 输入 csrutil disable
2.3.5 输入 reboot
3. chown -R $(yourusername) /usr/local
4. brew install pcre
5.make && make install
finished