Building redis in a windows environment is generally for testing. The official redis does not provide a windows version of redis, but Microsoft does.
Windows version download address: https://github.com/MSOpenTech/redis/releases
Download Redis-***.mis directly and install it
After the environment is installed, modify the appache configuration file and add the php extension name as: extension=php_redis.dll
php extension download address: https://github.com/phpredis/phpredis/downloads
Place the dll file in the ext directory of PHP~~ Done