When I was building the master site these days, I could not connect to the FTP server when UPDATING wordpress

Solutions are as follows:

Find the wp-config.php file in the WordPress directory and edit it. Add the following line to the last line:

define('FS_METHOD', "direct");
Copy the code