Open the host file with Notepad (file location, under Windows General under Path C:\Windows\System32\drivers\etc)
Find #127.0.0.1 localhost This sentence to remove the previous #
Database address when installing the database localhost or 127.0.0.1
If you do this, you will not have a slow running problem when you run it locally.
1. Modify the host file. Location: C:\Windows\System32\drivers\etc.
Find #127.0.0.1 localhost This sentence to remove the previous #
2, when the database is installed, the database address is filled 127.0.0.1.
I use the phpstudy environment, and not only phpcms this site, so it is a bit of a hassle to modify the host file. So I only used the following, directly opened the database.php file, said ' hostname ' modified to: 127.0.0.1. File location: Installation directory \caches\configs\database.php
<? PHP return Array ( array ( ' hostname ' = ' 127.0.0.1 ', ' port ' = = 3306, ' database ' = > ' phpcmsv9 ', ' username ' + ' root ', ' password ' + ' root ', ' tablepre ' = ' v9_ ', ' CharSet ' = ' utf8 ', ' type ' = ' mysqli ', true, ' pconnect ' = 0, ' autoconnect ' = 0 ),);? >
After the adjustment, the background refresh speed, a lot faster. At least not wait for the system backstage response time.
PHPCMS Local environment debugging slow solution