search

Home  >  Q&A  >  body text

Why is the running interface of nginx + php-fpm particularly slow when running on the new MacBook Pro?

I didn’t think about the machine at first, but later I found out that my colleague also encountered the same problem. Mine was a 15-inch black high-end version, and his was a 13-inch black. They both encountered it after buying new machines for development. The problem is that when running PHP, the CPU load and memory usage are not high, but requesting a local interface takes anywhere from a few seconds to more than ten or twenty seconds, which is very troublesome. The following are nginx and php versions:

nginx version: nginx/1.10.3
PHP 5.6.29 (cli) (built: Dec 9 2016 07:03:56)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies

Later, he replaced nginx with apache that comes with mac, and the situation improved, but I still want to find out what the cause is. Has anyone encountered the same problem as me? ?

阿神阿神2818 days ago382

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:09:38

    No, I haven’t encountered it

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 13:09:38

    I used the 15-inch space gray with bar, and I didn’t encounter any problems with the original poster. . . Try reinstalling the environment.

    reply
    0
  • Cancelreply