在 ec2 上更新 wordpress 主题 [英] Update wordpress theme on ec2
问题描述
我在 ec2 上托管了一个 wordpress 网站,我正在尝试通过管理屏幕更新我的主题.它问我主机名和 ftp 用户名和密码.ec2-xxx.compute-1.amazonaws.com:22 是我的主机名吗?我为我的 ftp 用户名尝试了 ec2user 和 root,但没有运气.我做错了什么?
I'm hosting a wordpress site on ec2 and I'm trying to update my theme through the admin screen. Its asking me for Hostname and ftp username and password. Is ec2-xxx.compute-1.amazonaws.com:22 my hostname? I tried along with ec2user and root for my ftp username but no luck. What am I doing wrong?
推荐答案
您的主机名将是 ec2-107-20-192-98.compute-1.amazonaws.com
.
您的用户名将是您通常用于 SFTP 到实例的用户名 - ec2user 用于某些实例类型,ubuntu 用于 Ubuntu AMI 等.EC2 通常不使用密码,更喜欢 SSH 密钥,因此您必须设置通过在命令行上执行 passwd
为您的帐户设置密码.
Your username will be the username you use to SFTP to the instance normally - ec2user for some instance types, ubuntu for Ubuntu AMIs, etc. EC2 generally doesn't use passwords, preferring SSH keys, so you'll have to set a password for your account by doing passwd
on the commandline.
这篇关于在 ec2 上更新 wordpress 主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!