复习操作系统, 发现很多好的知识总结都在掘金上, 遂注册账号. 但是个人页面的域名过长, 就想能不能把域名缩短一下. 遂谷歌, 网上教程有很多.
大体思路就是先阿里云域名解析到 github pages, github pages 再跳转到掘金的域名.
网友的教程上说, 显式URL 和 隐式URL 也可以, 不过被跳转的域名也得再阿里云备案, so..
- 建github仓库, 仓库名
用户名.github.io尝试用不是这种格式的仓库, 失败了.
- 建立
CNAME和index.html, 代码分别为:jj.duckduckk.top<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Blog</title> <style media="screen"> * { margin: 0; padding: 0; } </style> </head> <body> </body> <script type="text/javascript"> //将这个地址修改成需要的博客地址 window.location.href = "https://juejin.im/user/5cbd7f37f265da039257e18a"; </script> </html> - 开启github page服务
ping jj.github.io获得 ip 地址.- 阿里云域名解析到该 IP 地址.
- done