问题描述
本人在构建接口后,访问 localhost 比访问 IP 慢得多,前者需要3s,后者仅需0.06s
解决方案
方法一
治标不治本:
localhost
改为 127.0.0.1
或 本机IP
方法二
彻底解决:
使用PHPCUSTOM的localhost优化
本人在构建接口后,访问 localhost 比访问 IP 慢得多,前者需要3s,后者仅需0.06s
治标不治本:
localhost
改为 127.0.0.1
或 本机IP
彻底解决:
使用PHPCUSTOM的localhost优化