Prepare a USB to TTL serial module. The GND, TX, and RX of the TTL module are connected to the GND, TX, and RX of the relay module respectively. Pull out the ESP-01 module, select mode 1, and turn the green light into 2S slow flash and open the serial debug software on the computer (such as SSCOM32), and choose the baud rate of 115200.
eBay