前段时间因为本机用户名为中文安装python一些库时报错,所以一劳永逸删除了本机的中文用户,导致虚拟机也无法使用,今天抽时间重装了一下,顺便搞了一下github.io;在windows 8.1踩了不少的坑,简单记录一下。
一、win8.1 安装vm11 和 centos 7
网上教程很多,可以参考这个:
http://blog.csdn.net/liuyanlinglanq/article/details/46272683
需要注意的地方是,如下图,在手动分区这里,先将根目录的Desired Capacity设置为空,否则可用空间太小会导致/home等因为没有足够的可用空间而挂载不成功。
二、git 2.9 安装
下载路径:https://git-scm.com/downloads,安装即可。
三、ruby2.3,rubygems2.6安装
请参考文章http://www.cnblogs.com/Sophiawow/p/4522429.html
这里需要注意的是,在安装rails时:gem install actionmailer-5.0.0.gem,多次下载失败,报错: (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Failed to open TCP connection to rubygems.global.ssl.fastly.net:443 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because con……
这是网络不稳定造成的,重新执行安装即可。
四、创建github.io
参考:http://jekyllbootstrap.com/usage/jekyll-quick-start.html
没有能够在3分钟搞定,搞了好久,原因在于执行 git push origin master时报错,permission denied(publickey)
原因在于jekyll-quick-start 这里所讲的方法需要稍微改动一下,参考:
https://teamtreehouse.com/community/i-got-permission-deniedpublickey-when-i-typed-git-push-origin-master
改动的地方为:上述连接中的原文:"
I solved this problem by using the https url, 'https://github.com/geekerati/treebook.git', not with 'git@github.com:geekerati/treebook.git'.it's weird .. O.o;;but Thanks!"
如此便可用顺利的git push 成功了。
除了jekyllbootstrap.com,更推荐参考:http://www.myexception.cn/other/1806295.html