2种方式,1,在程序入口用 ini_set 改变 namespance 的值2,启动2个php-fpm, 用 -c 参数指定要加载的php.ini , -y参数指定php-fpm.conf,启用不同的监听端口, 就是你说的2种方式。
-c
-y