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

相關文章
相關標籤/搜索