当前位置:网站首页>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
边栏推荐
- halcon数组的一些使用
- (translation) reasons why real-time inline verification is easier for users to make mistakes
- VirtualBox 安装增强功能
- Leetcode interview question 17.10 Main elements
- Clickhouse eliminates the gap caused by group by
- @The difference between configurationproperties and @value
- How do the top ten securities firms open accounts? Also, is it safe to open an account online?
- Machine learning 10 belief Bayesian classifier
- QT web 开发 - video -- 笔记
- 522. Longest special sequence II
猜你喜欢
![How to add a condition for an associated table in an SQL statement [null value required or not required]](/img/91/0efbc13597be4dba5b9cf4e8644e35.png)
How to add a condition for an associated table in an SQL statement [null value required or not required]

Electron pit Addon

QML控件类型:ToolTip

Rocketqa: cross batch negatives, de noised hard negative sampling and data augmentation

House change for agricultural products? "Disguised" house purchase subsidy!

修复表中的名字(首字符大写,其他小写)

数学知识:求组合数 III—求组合数

QML control type: tooltip

Fast understanding of forward proxy and reverse proxy
The latest CSDN salary increase technology stack in 2022 overview of APP automated testing
随机推荐
In the fourth week of June, the list - flying melon data up main growth ranking list (BiliBili platform) was released!
Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.
【毕业季·进击的技术er】--毕业到工作小结
How to learn and read code
Objects and object variables
数学知识:满足条件的01序列—求组合数
求两个线段公共部分的长度
7-2 拼题A打卡奖励 dp
Upstream and downstream in software development
最新微信ipad协议 CODE获取 公众号授权等
How to add a condition for an associated table in an SQL statement [null value required or not required]
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
静态域与静态方法
Do you write API documents or code first?
[Agora] user management
[graduation season · advanced technology Er] - summary from graduation to work
(translation) reasons why real-time inline verification is easier for users to make mistakes
QML控件类型:ToolTip
Fix names in the table (first character uppercase, other lowercase)
Check the disk usage of MySQL database