[Mac] install php7.2

在mac上安裝php7.2

[Mac] install php7.2

  • 設定路徑
    • echo 'export PATH="/usr/local/opt/php@7.2/bin:$PATH"' >> ~/.zshrc
    • echo 'export PATH="/usr/local/opt/php@7.2/sbin:$PATH"' >> ~/.zshrc
  • 讓路徑設定生效
    • exec $SHELL
  • 確認版本
    • php —version
  • 確認設定檔
    • php —ini
  • 執行php7.2-fpm
    • brew services start php@7.2
  • 確認php-fpm是誰在跑
    • ps aux | grep 'php@7.2