个人博客搭建经验记录
🎲搭建🎮注册GitHub博主用的是hexo框架+butterfly主题然后放到githubpage上,所以你首先得要注册一个github账号
参考: GitHub账号注册教程
🎮安装Node.js
参考:Node.js安装详细步骤教程
🎮安装Git
参考:Git 详细安装教程
🎮关联GitHub关联GitHub你才能把文件上传到GitHub上面,所以首先得关联GitHub,现在基本上都是用SSH登录的,想了解SSH是什么可以看这篇文章 详述SSH的原理及其应用。下面讲下具体该怎么做
新建一个文件夹(博主建的叫Blog,这个文件夹用来后面存放你自己的博客,所以我不建议随便放),然后在里面右键Git Bash.输入 ssh-keygen -t rsa 命令然后按3下回车输入 cd ~/.ssh 将目录改到ssh的目录(注意红框位置变成这样才说明改盘成功),然后输入ls可以看到目录下有三个文件,其中我们需要把 id_rsa.pub 的内容添加到你的GitHub里面。再输入 cat id_rsa.pub 就可以查看 id_rsa.pub 里的内容。选中然后右键 Co ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1hexo new "My New Post"
More info: Writing
Run server1hexo server
More info: Server
Generate static files1hexo generate
More info: Generating
Deploy to remote sites1hexo deploy
More info: Deployment
鑫史
认识鑫哥