当前位置:网站首页>CentOS installs multiple versions of PHP and switches
CentOS installs multiple versions of PHP and switches
2022-07-01 02:11:00 【A Huang Junhui a】
The same linux Multiple can be installed in the system php Version of , Installation is the usual installation
After the installation is complete , We can go to php Installation directory 
I'd like to say goodbye Installed , 7.4 Version of , and 8 Version of
php The default listening port is 9000 , If both versions are enabled , Then it will definitely conflict , therefore , I let 8 Version listening 9001 port 
stay There is one in this directory www.conf
So it was modified php8 The listening port of is 9001
When it's done , We are going to put php 8 Of bin The directory is placed in the environment variable 

stay End of file At the end of Add... At the end The upper two paragraphs
And then run source /etc/profile Make the document effective
After I finished running , Something's wrong , When I use php -v When , It's still for me php 7.4.28 Result , The problem has been solved for a long time , Just found out my /usr/bin/ There is a php The order of , It was before php7.4.28 Of , Every time it looks, it finds /usr/bin/php The order of , therefore , I put /usr/bin/php The file group was deleted , Run again srouce /etc/profile complete
after , Reuse php -v Got it. The desired result
边栏推荐
- Rocketqa: cross batch negatives, de noised hard negative sampling and data augmentation
- SWT/ANR问题--AMS/WMS
- SWT / anr problem - SWT caused by long execution time of native method
- URL和URI
- The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
- SWT / anr problem - storagemanagerservice stuck
- Template: globally balanced binary tree
- 最新微信ipad协议 CODE获取 公众号授权等
- There is no future to be expected. It is just the last fantasy of a migrant worker before he dies
- SWT/ANR问题--ANR/JE引发SWT
猜你喜欢

機器學習10-信念貝葉斯分類器

Delete duplicate email

The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
![[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE](/img/22/1efa444220131359b06005f597c9db.png)
[fundamentals of wireless communication-15]: illustrated mobile communication technology and application development-3-overview of digital communication 2G GSM, CDMA, 3G wdcma/cdma200/td-scdma, 4G LTE

项目管理是什么?

Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.

Short message sending solution in medical his industry

Selenium classic interview question - multi window switching solution

SWT / anr problem - binder stuck

int和位数组互转
随机推荐
[JS adds attributes to elements: setAttribute; classlist.remove; classlist.add;]
centos 安装多个版本的php并切换
Alphabet-Rearrange-Inator 3000(字典树自定义排序)
CorelDRAW 2022中文精简64位直装版下载
FL Studio20.9水果软件高级中文版电音编曲
@The difference between configurationproperties and @value
How to add a condition for an associated table in an SQL statement [null value required or not required]
Short message sending solution in medical his industry
【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
Machine learning 10 belief Bayesian classifier
Check the disk usage of MySQL database
Analysis on user behavior loss of data exploration e-commerce platform
Log4j2 ThreadContext日志链路追踪
正向代理和反向代理快速理解
Mathematical knowledge: finding combinatorial number III - finding combinatorial number
House change for agricultural products? "Disguised" house purchase subsidy!
机器学习10-信念贝叶斯分类器
【做题打卡】集成每日5题分享(第一期)
With one-stop insight into industry hot spots, the new function "traffic market" of feigua data station B is launched!
手机上怎么开户?还有,在线开户安全么?