天天看點

win8.1 安裝 vm 11 和 centos 7,以及git 2.9 ,ruby2.3,rubygems2.6 ;github.io前段時間因為本機使用者名為中文安裝python一些庫時報錯,是以一勞永逸删除了本機的中文使用者,導緻虛拟機也無法使用,今天抽時間重裝了一下,順便搞了一下github.io;在windows 8.1踩了不少的坑,簡單記錄一下。

前段時間因為本機使用者名為中文安裝python一些庫時報錯,是以一勞永逸删除了本機的中文使用者,導緻虛拟機也無法使用,今天抽時間重裝了一下,順便搞了一下github.io;在windows 8.1踩了不少的坑,簡單記錄一下。

一、win8.1  安裝vm11 和 centos 7

    網上教程很多,可以參考這個:

    http://blog.csdn.net/liuyanlinglanq/article/details/46272683

    需要注意的地方是,如下圖,在手動分區這裡,先将根目錄的Desired Capacity設定為空,否則可用空間太小會導緻/home等因為沒有足夠的可用空間而挂載不成功。

win8.1 安裝 vm 11 和 centos 7,以及git 2.9 ,ruby2.3,rubygems2.6 ;github.io前段時間因為本機使用者名為中文安裝python一些庫時報錯,是以一勞永逸删除了本機的中文使用者,導緻虛拟機也無法使用,今天抽時間重裝了一下,順便搞了一下github.io;在windows 8.1踩了不少的坑,簡單記錄一下。

二、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

    改動的地方為:上述連接配接中的原文:"

Dongju Seo 3y ago

I solved this problem by using the https url, 'https://github.com/geekerati/treebook.git', not with '[email protected]:geekerati/treebook.git'.it's weird .. O.o;;but Thanks!"

如此便可用順利的git push 成功了。

除了jekyllbootstrap.com,更推薦參考:http://www.myexception.cn/other/1806295.html