如何在linux中设置/查找ftp用户名,密码,连接类型

问题描述 投票:0回答:2

我在我的linux服务器上设置了wordpress,当我尝试在wordpress上安装插件时,它请求ftp用户名,密码,连接类型和连接类型FTP FTPS。我设法使用apt-get install ftp在我的linux服务器上安装ftp。但我如何找到其他信息?

提前致谢

wordpress ftp
2个回答
1
投票

您的用户名和密码将是您用于登录linux mahine的用户名和密码。您可能会使用FTP连接类型,但应该使用FTPS,因为这是安全的,并且不会通过网络以明文形式发送您的用户名/密码。有了这个,你应该考虑使用一个没有很多权限的用户帐户,如果使用FTP来最大限度地减少黑客在你的凭据被嗅探时可以做的事情。


0
投票

推荐的:

如果您使用的是linux:

//Set www to 777
# chmod -R 777 /var/www/html
// Change the owner to apache (centos)
# chown -R apache:apache /var/www/html
// Change the owner to apache (ubuntu)
# chown -R apache:apache /var/www/html
// Restart httpd
# systemctl restart httpd

不推荐但有效:

在wp-config.php中添加此行

define( 'FS_METHOD', 'direct' );
© www.soinside.com 2019 - 2024. All rights reserved.