当前位置:网站首页>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
边栏推荐
- (translation) use eyebrow shaped text to improve Title click through rate
- 运算符重载的初识
- 522. Longest special sequence II
- 数学知识:求组合数 III—求组合数
- AS400 entretien d'usine
- What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss
- (翻译)实时内联验证更容易让用户犯错的原因
- 修复表中的名字(首字符大写,其他小写)
- 项目管理是什么?
- AS400 large factory interview
猜你喜欢

Leetcode interview question 17.10 Main elements

QML控件类型:ToolTip

@ConfigurationProperties和@Value的区别

项目管理是什么?

SWT/ANR问题--StorageManagerService卡住

【JS】【掘金】获取关注了里不在关注者里的人

Ernie-gram, 显式、完备的 n-gram 掩码语言模型,实现了显式的 n-gram 语义单元知识建模。

There is no future to be expected. It is just the last fantasy of a migrant worker before he dies

思特奇加入openGauss开源社区,共同推动数据库产业生态发展

(总结一)Halcon基础之寻找目标特征+转正
随机推荐
Is there any discount for opening an account now? In addition, is it safe to open a mobile account?
软件开发中的上游和下游
先写API文档还是先写代码?
(translation) reasons why real-time inline verification is easier for users to make mistakes
522. Longest special sequence II
[graduation season · advanced technology Er] - summary from graduation to work
Electron pit Addon
Qu'est - ce que le PMP?
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
如何选择券商?另外,手机开户安全么?
Calculate special bonus
The latest CSDN salary increase technology stack in 2022 overview of APP automated testing
How does the property send a text message to the owner?
C#生成putty格式的ppk文件(支持passphrase)
【JS给元素添加属性:setAttribute;classList.remove;classList.add;】
【2022年】江西省研究生数学建模方案、代码
Short message sending solution in medical his industry
Laravel event & subscription
Clickhouse eliminates the gap caused by group by
开源基础软件公司,寻找一起创造未来的你(API7.ai)