当前位置:网站首页>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
边栏推荐
- 修复表中的名字(首字符大写,其他小写)
- Qu'est - ce que le PMP?
- [fundamentals of wireless communication-14]: illustrated mobile communication technology and application development-2-the first generation mobile analog communication big brother
- PMP是什么?
- Open source basic software companies, looking for you to create the future together (api7.ai)
- SWT / anr problem - anr/je causes SWT
- Log4j2 ThreadContext日志链路追踪
- Analysis on user behavior loss of data exploration e-commerce platform
- 对象与对象变量
- Leetcode(524)——通过删除字母匹配到字典里最长单词
猜你喜欢

How to maintain efficient collaboration in remote office and achieve stable growth of projects | community essay solicitation

软件开发中的上游和下游

Selenium classic interview question - multi window switching solution

With one-stop insight into industry hot spots, the new function "traffic market" of feigua data station B is launched!
The latest CSDN salary increase technology stack in 2022 overview of APP automated testing

最新微信ipad协议 CODE获取 公众号授权等

The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer

我的PMP学习考试心得

In the fourth week of June, the list - flying melon data up main growth ranking list (BiliBili platform) was released!

机器学习9-通用逼近器径向基函数神经网络,在新观点下审视PDA和SVM
随机推荐
SQL语句关联表 如何添加关联表的条件 [需要null值或不需要null值]
Short video platform development, relying on drawerlayout to achieve side sliding menu effect
[无线通信基础-14]:图解移动通信技术与应用发展-2-第一代移动模拟通信大哥大
URLs and URIs
P6773 [NOI2020] 命运(dp、线段树合并)
如何学习和阅读代码
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
Log4j2 threadcontext log link tracking
What are the preferential activities for stock account opening? In addition, is it safe to open a mobile account?
工厂+策略模式
AS400 large factory interview
Batch import of Excel data in applet
SWT/ANR问题--Dump时间过长导致的SWT
MYSQL 数据库查看磁盘占用情况
When facing the industrial Internet, they even use the ways and methods of consuming the Internet to land and practice the industrial Internet
Check the disk usage of MySQL database
How to learn and read code
Laravel event & Monitoring
[proteus simulation] Arduino UNO +74c922 keyboard decoding drive 4x4 matrix keyboard
删除重复的电子邮箱