Mac本地安装PHP@7.4版本 - 2024

为什么要安装v7.4版本的php?

业务的需求,需要使用php@7.4版本;

Mac本地默认是php@8,且brew install php@7.4,提示,具体看下如下图:

Warning: shivammathur/php/php@7.4 has been deprecated because it is a versioned formula!

如何安装在Mac上安装php@7.4版本?

在网上找到一个大家都提到的一个GItHub项目:https://github.com/shivammathur/homebrew-php/

支持全部的PHP版本:

安装教程如下:

For example, to install PHP 7.4:

bash 复制代码
brew install shivammathur/php/php@7.4

After installing you have to link it:

bash 复制代码
brew link --overwrite --force shivammathur/php/php@7.4

Restart the terminal and test your PHP version:

bash 复制代码
php -v
相关推荐
qq_12498707531 天前
基于Java Web的城市花园小区维修管理系统的设计与实现(源码+论文+部署+安装)
java·开发语言·前端·spring boot·spring·毕业设计·计算机毕业设计
froginwe111 天前
Python 条件语句
开发语言
七夜zippoe1 天前
Python统计分析实战:从描述统计到假设检验的完整指南
开发语言·python·统计分析·置信区间·概率分布
2601_949146531 天前
Python语音通知API示例代码汇总:基于Requests库的语音接口调用实战
开发语言·python
3GPP仿真实验室1 天前
【Matlab源码】6G候选波形:OFDM-IM 索引调制仿真平台
开发语言·matlab
Coder_Boy_1 天前
基于SpringAI的在线考试系统-企业级教育考试系统核心架构(完善版)
开发语言·人工智能·spring boot·python·架构·领域驱动
2301_765703141 天前
C++中的代理模式变体
开发语言·c++·算法
咚为1 天前
Rust tokio:Task ≠ Thread:Tokio 调度模型中的“假并发”与真实代价
开发语言·后端·rust
灰子学技术1 天前
性能分析工具比较pprof、perf、valgrind、asan
java·开发语言
Minilinux20181 天前
Google ProtoBuf 简介
开发语言·google·protobuf·protobuf介绍