mac如何安装php呢?
mac是自带php的,但是新版本不自带。
安装:
1 | brew install php |
安装最新版本:
1 | brew reinstall php@8.2 |
注意,想要下次使用本次安装的8.2版本php,则要将其添加到环境变量中:
1 | If you need to have php@8.0 first in your PATH, run: |
然后重新启动php服务:
1 | brew services restart php |
We smile, we angry, we disappoint, we excited, we love, we hate, that’s our life.
书山有路勤为径,学海无涯苦作舟。
欢迎关注微信公众号:【程序员写书】
喜欢宠物的朋友可以关注:【电巴克宠物Pets】
一起学习,一起进步。
