The solution to the slow running of the external network website built with phpstudy

Modify the configuration file localhost for connecting to the database to 127.0.0.1

 

PHP5.3 and above, if it is linked to localhost, it will detect whether it is IPV4 or IPV6, so it will be slower. The solution is: when linking data, do not fill in localhost, change to 127.0.0.1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325964264&siteId=291194637