Vultr+WordPress搭建个人博客
1. Deploy Vultr VPS & Install WordPress Application
在 https://www.vultr.com/ 上购买Vultr云服务器。选择Vultr的好处:
- 价格感人:充10$送50$,低配服务器只要5$/month(最低2.5,但现在这个价的好像只剩ipv6 only的了)
- 地域:国外,你懂的
我选的是东京的服务器,在选择OS的时候直接选择了WordPress Application,事实证明确实挺one-click的。
除了直接安装Application之外,也可以选Ubuntu,网上也有LNMP一键安装包什么的。
注意:进行下一步之前一定要确认:新部署的VPS的IP是否已经被墙了。果然如此,那就销毁&重新部署,多试几次,换个能用的IP。
2. 购买域名
我上阿里云买了个1元/年的域名哈哈哈,挺便宜。
3. Follow the Instructions to Complete the Installation
在Vultr的页面上直接可以看到的步骤:
- Log into the WP admin panel using your credentials
- Point your domain name "A record" to your IP address
- Edit your "WordPress Address (URL)" and "Site Address (URL)" to match your domain name. This is located in: WordPress Admin, Settings, General.
除此之外,https://www.vultr.com/docs/one-click-wordpress 这儿的后续步骤也要完成。
坑:我一开始用浏览器死活进不去它给我的地址 https://xxx.xx.xx.xx/wp-admin/
,求助liangmx,弄了半天才知道是没有SSL证书,Chrome跟Safari都莫名其妙把连接给断了?总之,第一次登录记得用http://xxx.xx.xx.xx/wp-admin/
4. (选做)购买SSL证书 & 安装证书
这个我也是在阿里云买的,有免费DV版,free/年。
安装的话follow https://www.vultr.com/docs/one-click-wordpress 就行了:
- Obtain a certificate from a certificate authority for your domain.
- Login to your server using
ssh
as root. - Replace the
server.crt
andserver.key
files in/etc/nginx/ssl/
with the updated certificate. Details on converting certificate formats are outside of the scope of this article. - Restart the web server:
systemctl restart nginx.service && systemctl restart php7.2-fpm.service
( PHP version may vary )
5. Select WordPress Theme & Decorate the Blog
我挑来挑去发现还是官配主题「二零一九」性冷淡风比较合我胃口。
相关文章