#安裝 php
brew install php@8.2
#安裝後要新增path
echo 'export PATH="/usr/local/opt/php@8.2/bin:$PATH"' >> /Users/bigd/.bash_profile
#source才有辦法在cmd視窗直接呼叫
source ~/.bash_profile
#確認有沒有安裝
php -v
(base) MacBook-Pro-Ken-2:8.2 bigd$ php -v
PHP 8.2.17 (cli) (built: Mar 12 2024 14:26:30) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.17, Copyright (c) Zend Technologies
with Zend OPcache v8.2.17, Copyright (c), by Zend Technologies
沒有留言:
張貼留言
留個話吧:)