TS是Thread Safety,代表线程安全,而NTS是None Thread Safe代表非线程安全.
Windows系统下才分线程安全与非线程安全,
windows ◆ Apache ◆ ?PHP(模块) :使用线程安全版本.
windows ◆ Apache ◆ ?PHP(FastCGI) :使用非线程安全版本.
百度搜索这个文章标题:
PHP集成环境如何自定义PHP版本,同时运行多个php版本一键开启模块.
(百度搜PHPWAMP有详细的使用教程,能同时运行多个PHP版本,一键去端口等)
方法/步骤:
Which version do I choose?
IIS
If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.
Apache
With Apache you have to use the Thread Safe (TS) versions of PHP.
TS and NTS
TS refers to multithread capable builds.NTS refers to single thread only builds. Use case for TS binaries involves interaction with a multithreaded SAPI and PHP loaded as a module into a web server. For NTSbinaries the widespread use case is interaction with a web server through the FastCGI protocol, utilizing no multithreading (but also for example CLI).
以上就是土嘎嘎小编大虾米为大家整理的相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!