当前位置:网站首页>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
边栏推荐
- 7-2 拼题A打卡奖励 dp
- Leetcode interview question 17.10 Main elements
- Rocketqa: cross batch negatives, de noised hard negative sampling and data augmentation
- Leetcode 面试题 17.10. 主要元素
- centos 安装多个版本的php并切换
- 数学知识:求组合数 III—求组合数
- (summary I) Halcon Foundation's target finding features + becoming a regular
- The whole process of AS400 API from zero to one
- 机器学习10-信念贝叶斯分类器
- A preliminary understanding of operator overloading
猜你喜欢

Delete duplicate email

聚焦绿色低碳,数据中心散热进入“智能冷却”新时代

运算符重载的初识

7-2 拼题A打卡奖励 dp
![Pytorch - - Basic Reference North Deux élèves du secondaire peuvent comprendre [Rétropropagation et Gradient descendant]](/img/6e/279dbb7a8d7a5ecd240de464c5b8b2.png)
Pytorch - - Basic Reference North Deux élèves du secondaire peuvent comprendre [Rétropropagation et Gradient descendant]

Leetcode 面试题 17.10. 主要元素

What other hot spots are hidden under 1500W playback? Station B 2 future trends you can't miss

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

我的PMP学习考试心得

手机edge浏览器无法打开三方应用
随机推荐
[punch in questions] integrated daily 5 questions sharing (phase I)
Analysis on user behavior loss of data exploration e-commerce platform
(translation) reasons why real-time inline verification is easier for users to make mistakes
Laravel event & Monitoring
halcon数组的一些使用
The latest CSDN salary increase technology stack in 2022 overview of APP automated testing
electron之坑addon
How does the property send a text message to the owner?
Video tutorial | Chang'an chain launched a series of video tutorial collections (Introduction)
Mathematical knowledge: finding combinatorial number IV - finding combinatorial number
int和位数组互转
[content of content type request header]
[JS adds attributes to elements: setAttribute; classlist.remove; classlist.add;]
What are the applications of SMS in enterprises?
SWT/ANR问题--ANR/JE引发SWT
SWT / anr problem - SWT caused by long execution time of native method
Int and bit group turn to each other
Qu'est - ce que le PMP?
How to add a condition for an associated table in an SQL statement [null value required or not required]
MySQL insert \ pre update + judgment condition