1.考虑是DNS设置错误,去控制台删除了不用的DNS解析设置
2.安装SSL证书
腾讯云教程:https://cloud.tencent.com/document/product/400/35243
阿里云教程(更合适):https://help.aliyun.com/document_detail/102450.html
3.能进网站了,但显示“Error Establishing a Database Connection”
4.设置wordpress数据库:
编辑wp-config.php,修改下列信息:
// ** MySQL settings - You can get this info from your web host ** ///** The name of the database for WordPress */define( 'DB_NAME', 'database_name_here' );/** MySQL database username */define( 'DB_USER', 'username_here' );/** MySQL database password */define( 'DB_PASSWORD', 'password_here' );/** MySQL hostname */define( 'DB_HOST', 'localhost' );
5.成功