如何删除FTP的详细信息

我在Linux mashine(LAMP)上安装了Wordpres

在pipe理菜单中,当我删除一个插件时,它会询问FTP的详细信息(如附图所示)。

为什么以及如何解决这个问题?

添加这个给你wp-config.php,你不需要添加FTPlogin:

define('FS_METHOD','direct'); 

http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

可以把这些在wp-config.php中

  define('FTP_USER', 'username'); define('FTP_PASS', 'password'); define('FTP_HOST', 'ftp.example.org:21'); //*If you can use a SSL connection set this to true* define('FTP_SSL', true);