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? ?
No, I haven’t encountered it
I used the 15-inch space gray with bar, and I didn’t encounter any problems with the original poster. . . Try reinstalling the environment.