[视频教程] 灵活配置多版本PHP并存运行
2024-09-05 14:04:12
经常有一些项目需要使用不同版本的PHP运行环境,比如有的老项目需要使用5.3版本,有的新项目比如laravel需要使用7.2以上版本,那么在一台机器上如何多版本PHP并存运行呢
有一种很灵活高效的方式,那就是FPM监听使用不同的端口号,nginx在反代到PHP的时候,不同的项目指定不同的端口号,这样就能够达到多版本并存的效果
比如test1.com使用5.6版本PHP , test2.com使用7.3版本PHP
nignx的配置和fpm的配置对应好端口号,就可以实现了,详细操作可以查看下面的视频
https://www.bilibili.com/video/av70709041/
最新文章
- django 第二天 制作小demo
- configuring tortoise git and vs code.
- 深入理解JVM虚拟机-7虚拟机类加载机制
- PHP 重载 __call() _callStatic方法
- Mysql--单表数据记录查询
- Spring Cloud Contract
- 小黄衫 Get
- java接口变量问题
- SpringCloud入门
- mysql命令之工作小结
- webpack vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin
- BZOJ4855 : [Jsoi2016]轻重路径
- LCA(Lowest Common Ancesor)
- python -- 字典 集合
- python 之xml.etree.ElementTree
- C/C++二叉树搜索树操作集
- oracle不小心更新了数据库中的所有内容后的恢复
- ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock 问题修改
- Codeforces Round #524 (Div. 2) C. Masha and two friends(矩形相交)
- PHP ksort() 函数
热门文章
- JS 验证
- 渗透测试学习 二十九、kali安装,信息搜集,服务器扫描
- CodeForces - 1251D (贪心+二分)
- Internet Download Manager是什么?
- Codeforces Round #584
- python直接赋值、浅拷贝、深拷贝的区别
- vue-cil3 运行报错
- 【洛谷5299】[PKUWC2018] Slay the Spire(组合数学)
- 66000][12505] Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor oracle.n et.ns.NetException: Listener refuse
- VMWare 虚拟机启动报“内部错误”的解决办法