当前位置:网站首页>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
边栏推荐
- QT web 开发 - video -- 笔记
- What is project management?
- (翻译)实时内联验证更容易让用户犯错的原因
- SWT / anr problem - SWT caused by long execution time of native method
- Alphabet rearrange inator 3000 (dictionary tree custom sorting)
- My PMP learning test experience
- What is the difference between port number and process number?
- Qu'est - ce que le PMP?
- 机器学习9-通用逼近器径向基函数神经网络,在新观点下审视PDA和SVM
- 手机上怎么开户?还有,在线开户安全么?
猜你喜欢

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

(translation) use eyebrow shaped text to improve Title click through rate

7-2 punch in reward DP for puzzle a

How does ZABBIX configure alarm SMS? (alert SMS notification setting process)

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

Batch import of Excel data in applet

7-2 拼题A打卡奖励 dp
![Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]](/img/6e/279dbb7a8d7a5ecd240de464c5b8b2.png)
Pytoch -- foundation refers to the north_ II. What high school students can understand [back propagation and gradient descent]

Short message sending solution in medical his industry

Mathematical knowledge: finding combinatorial number III - finding combinatorial number
随机推荐
工厂+策略模式
What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
opencv -- 笔记
How do the top ten securities firms open accounts? Also, is it safe to open an account online?
What are the applications of SMS in enterprises?
Check the disk usage of MySQL database
Short message sending solution in medical his industry
Calculate special bonus
Objects and object variables
Upstream and downstream in software development
AS400 大厂面试
求两个线段公共部分的长度
修复表中的名字(首字符大写,其他小写)
手机上怎么开户?还有,在线开户安全么?
Do you write API documents or code first?
Video tutorial | Chang'an chain launched a series of video tutorial collections (Introduction)
Factory + strategy mode
(翻译)使用眉状文本提高标题点击率
Leetcode interview question 17.10 Main elements
Leetcode 面试题 17.10. 主要元素