经常有一些项目需要使用不同版本的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/

最新文章

  1. django 第二天 制作小demo
  2. configuring tortoise git and vs code.
  3. 深入理解JVM虚拟机-7虚拟机类加载机制
  4. PHP 重载 __call() _callStatic方法
  5. Mysql--单表数据记录查询
  6. Spring Cloud Contract
  7. 小黄衫 Get
  8. java接口变量问题
  9. SpringCloud入门
  10. mysql命令之工作小结
  11. webpack vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin
  12. BZOJ4855 : [Jsoi2016]轻重路径
  13. LCA(Lowest Common Ancesor)
  14. python -- 字典 集合
  15. python 之xml.etree.ElementTree
  16. C/C++二叉树搜索树操作集
  17. oracle不小心更新了数据库中的所有内容后的恢复
  18. ubuntu 常见错误--Could not get lock /var/lib/dpkg/lock 问题修改
  19. Codeforces Round #524 (Div. 2) C. Masha and two friends(矩形相交)
  20. PHP ksort() 函数

热门文章

  1. JS 验证
  2. 渗透测试学习 二十九、kali安装,信息搜集,服务器扫描
  3. CodeForces - 1251D (贪心+二分)
  4. Internet Download Manager是什么?
  5. Codeforces Round #584
  6. python直接赋值、浅拷贝、深拷贝的区别
  7. vue-cil3 运行报错
  8. 【洛谷5299】[PKUWC2018] Slay the Spire(组合数学)
  9. 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
  10. VMWare 虚拟机启动报“内部错误”的解决办法