macbook 一些php相关操做

开启php:    https://jingyan.baidu.com/article/67508eb434539f9cca1ce4da.htmlphp

配置多虚拟主机:  https://jingyan.baidu.com/article/c85b7a646ad2a8003bac95f5.htmlhtml

安装swoole:       git

        root 下swoole

        1.git clone https://gitee.com/swoole/swoole.gitui

        2.phpize --> ./configure  --> makehtm

        (报错[pcre.h]:ip

          2.1  brew install pcre  继续报错rem

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 )   报错get

            chown不被容许macbook

          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

相关文章
相关标签/搜索