当前位置:网站首页>Install and manage multiple versions of PHP under mac
Install and manage multiple versions of PHP under mac
2022-06-28 06:00:00 【Death Satan】
mac Many versions php management
Tools needed
- brew-php-switcher
install php
install php8.1
brew install shivammathur/php/[email protected]
install php7.4
brew install shivammathur/php/[email protected]
install brew-php-switcher
brew install brew-php-switcher
Command line multi version switching
brew-php-switcher 7.4 # Switch to 7.4
brew-php-switcher 8.0 # Switch to 8.1
I'm not sure why brew-php-switcher Provided only To 8.0 Version switching
But actually when I switch here , Appoint 8.0 Will switch to the 8.1, Maybe it's because I don't have 8.0 Code for
Install the extension
After switching versions, you can directly use pecl Command installation extends , For example, I want to php8.1 install swoole
brew-php-switcher 8.1 # Switch to 8.1
# Pay attention to opening a new one directly shell window , Because the current active window after switching is completed php The version has not changed
pecl install -D 'enable-sockets="no" enable-openssl="yes --with-openssl-dir=/usr/local/opt/openssl" enable-http2="yes" enable-mysqlnd="yes" enable-swoole-json="no" enable-swoole-curl="yes" enable-cares="yes"' swoole
Wait for the command to be installed successfully php -m | grep

ok
边栏推荐
- 基本类型和包装类的区别
- Sharing tips for efficient scripting
- Official answers to the "network security" competition questions of the 2022 national vocational college skills competition
- qtcanpool 知 07:Ribbon
- What is the e-commerce conversion rate so abstract?
- Lombok @equalsandhashcode annotation how to make objects The equals () method compares only some attributes
- Object对象转 List集合
- 5G网络整体架构
- sql及list去重操作
- Enum
猜你喜欢

Ethereum Classic的难度计算|猿创征文

开发者的时代红利在哪里?

How to add live chat in your Shopify store?

Slow content advertising: the long-term principle of brand growth

Yygh-8-appointment registration

Data middle office: six questions data middle office

The windows environment redis uses AOF persistence and cannot generate an AOF file. After generation, the content of the AOF file cannot be loaded

Difficulty calculation of Ethereum classic

Development trend of mobile advertising: Leveraging stock and fine marketing

mac下安装多个版本php并且进行管理
随机推荐
@The reason why the Autowired annotation is empty
Data middle office: an article that takes you to understand data middle office in simple terms
深度学习19种损失函数
使用SQL select count distinct查询语句统计数据库中某个字段的唯一值总数量
Qtcanpool knowledge 07:ribbon
V4L2 驱动层分析
高质量国产立体声编解码器CJC8988,Pin to Pin替代WM8988
6. graduation design temperature and humidity monitoring system (esp8266 + DHT11 +oled real-time upload temperature and humidity data to the public network server and display the real-time temperature
脚本语言和编程语言
death_satan/hyperf-validate
马赛克数据增强 mosaic
Flink 窗口机制 (两次等待, 最后兜底)
Apple MDM bypass jailfree bypass MDM configuration lock free
How popular are FB and WhatsApp mass messages in 2022?
Introduction to uicollectionviewdiffabledatasource and nsdiffabledatasourcesnapshot
密码学笔记
A full set of excellent SEO tutorials worth 300 yuan [159 lessons]
windows上安装redis并永久修改密码,及ssm框架集成redis
【无标题】
At first glance, I can see several methods used by motionlayout