为什么我的hexo d的时候访问共享提示没有权限限

Hexo 我的博客 - 简书
下载简书移动应用
写了6969字,被1人关注,获得了3个喜欢
Hexo 我的博客
为什么选择Hexo
为什么要写博客
我以前都是写在本子上的,后来发现随着成长,本子上是远远不够的,为了记录技术成长的点滴,才开始写博客,后来发现还可以锻炼口才,梳理思路,让脑子变得更清晰,还有备忘和交朋友的大用。何乐而不为呢?
说起我的博客选择之路,可能要追溯到年了,那时还是在CSDN上写博客一年多,每篇文章几百到几千甚至上万的访问量,对当时的我很有满足感,可是后来为什么不在上面写了呢?我记得当时博客访问量增加到30w以后,CSDN在没有告知我的情况下在博文侧边栏挂载了广告,我跟CSDN的管理人员联系过,我说你们可以把广告挂载在博文最底下,不要影响了用户的阅读心情,他们说是在进行测试,后来过了很久发现都没有撤销的迹象,于是我一气之下把博文删了个精光,全部放到草稿箱了,准备迁移到别的博客。
探索第一阶段
然后我试用了新浪博客,网易博客,点点网,准备转移到博客园,但是觉得博客园有点太啰嗦了,什么随笔、文章、日记,把我搞晕了,直接抛弃了。
没想到这就成了我将近一年没有写博客的开始,一直到14年7月份,基本没有再写过博客,这段时间也比较忙,复习、校招、工作、毕设、毕业。基本上没有闲下来的时候(其实就是懒,也有一部分没有合适的博客平台原因),这段时间,我也研究过wordpress和静态博客Octopress。但是觉得wordpress实在是速度太慢了,Octopress基本完全就是自己折腾了,搞得我心力憔悴,有段时间就写在本地的word文档上。
探索第二阶段
又重新开始工作以后,14念10月份吧,觉得这样下去不行,必须写博客记录一下,不然知识学了忘,忘了学,太浪费时间,有博客就可以有备忘的功能。我又准备开始折腾了,买了现在的域名,十月一那段时间就试用了各种博客系统discuz x,wordpress,z-blogphp,boblog,typecho,反复体验,测试,后来不知道在哪个人的友链的文章里面看到Emlog和
我自己体验了以后,就下定决定用Emlog博客。最初买的是Emlog官方的美国空间(为了不备案),速度一点都不快,后来,Emlog官方出了一次事故(被黑了一次),美国空间全部被删光了,而且他们没有在额外的机器备份,也就是说:我的博客的内容全部被删光了。Fuck!还好当时我本地有Emlog博客,而且基本是一天一备份。才将我的损失降低到了最低。Emlog官方马上联系我说赠送我额外两年使用期,已经给我开通了。那感觉就像是,如果我银行卡里面的钱全部被盗了,然后银行告诉我给我升级为VIP会员来弥补损失。我说:我以后再也不会用你们的空间了。后来就把域名和空间全部搬家到阿里云万网,还备案了,不得不说阿里云确实稳定且NB,我试用过他们的很多产品,都很不错,没遇到过一次宕机的时候。不过,觉得对于个人博客来说,没有必要买云主机,虚拟主机或者ACE足够。
PS:个人推荐使用阿里云ACE,相当于SVN,等这个到期了,我就换成ACE
对它只有一个字「爱」,在我需要记录的时候,它出现了。它优点太多了,直到现在我都深深的爱着它,为了它我还自己编写了一个精简主题。这段时间也是我慢慢开始沉淀的一个过程,平常遇到的一些算法题目,听过的好听的歌曲,优美又有意义的句子,遇到的技术问题,基本都放在上面了,15年一年大概写了60篇博客。我觉得一星期整理出一篇博客就足够了。
探索第三阶段
诚然Emlog有很多好处,快且小,但是写作的过程中,还得排版之类的,实在是挺累的。不支持Markdown可愁坏了我,我还想过要不自己从头到尾写个支持Markdown的博客系统或者写个插件,后来发现、。后来试用Ghost,Leanote,farbox,Jekyll,gitblog,MWeb,简书。我觉得不错的有:Leanote、MWeb和简书。再后来,不知道怎么就碰到了Hexo,静态博客,还能永久托管在github,优秀主题也不少,让我一下子就动心了。
在博客整体迁移到Hexo之前,我也想了很多,自己到底想要一个什么样的博客呢?遇到Hexo之前,我没有想明白,遇到Hexo后,我终于想明白了!
支持markdown
支持归档、分类、标签、友链、关于、目录
支持自定义域名
备份(注意站点配置文件不要泄露)
Hexo默认是push /public 到Github,生成静态博客。
自定义push /sources 到 Github,文章源文件托管。
本地备份到云端
站内搜索?整成固定连接,交给搜索引擎吧,或者用Swiftype,我只想安静的写博客
最热文章?评论最多文章?你搜到的就是你所需要的,其他都是浮云
好看?要那么多图片干什么,白白耗费流量!简单的就是最好看的,比如水、白纸和空气。
代码高亮?无所谓,能看到是代码块就行。
支持评论?无所谓,我的博客我做主,有人建议很好,没人建议也得走路。
支持访问量统计?无所谓,固然是一种激励,但也不能为了写博客而写博客。
A fast, simple & powerful blog framework
以后准备定居Hexo了,总的来说就是:生命在于折腾
安装Homebrew
/usr/bin/ruby -e "$(curl -fsSL /Homebrew/install/master/install)"
方法一:使用Homebrew安装brew install git
方法二:安装器安装:
方法三:如果已经安装了Xcode则相当于已经安装了git
安装Node.js
方法一:执行brew install node
1. cURL:curl /creationix/nvm/master/install.sh | sh
2. Wget:wget -qO- /creationix/nvm/master/install.sh | sh
安装完成后,重启终端并执行nvm install 4即可安装Node.js。
方法三:安装程序。
安装Hexo 3.0
npm install -g hexo-cli
hexo init &folder&
cd &folder&
npm install
hexo server -p 3333
浏览器中打开localhost:3333查看是否成功
Push到Github
创建Repository
必须跟用户名一致:yuchao-wang.github.io
设置SSH Key
检验是否已存在key
执行如下命令
查看是否已有key文件,
存在key的话都会显示id_rsa.pub和id_dsa.pub这两个文件
没有key什么都不会显示
添加一个SSH Key
ssh-keygen -t rsa -C "your_"
这里会提示输入一个文件名来保存ssh key
也可以什么都不输入,使用默认的id_rsa.pub和id_dsa.pub
回车之后需要输入两次密码:你自己平常Push到Github的密码
Github 设置 SSH key
1.登录Github-&Settings-&SSH keys-&Add SSH key
2.打开本地id_rsa.pub文件(注意:不是id_rsa文件),复制所有内容
3.将复制的内容粘贴到刚刚那个页面的key对应的文本框里面,title随便
4.最后输入:ssh -T
回车输入密码,会提示是否设置成功!
站点配置Github
1. 执行 npm install hexo-deployer-git --save
2. 修改站点_config.xml文件,如下:
repository: :yuchao-wang/yuchao-wang.github.io.git
branch: master
执行 hexo generate -d 直接生成并部署到Github上,浏览器中输入yuchao-wang.github.io就能看到效果啦!
Hexo常用命令
hexo clan (清理)
hexo g (生成)
hexo d (Push到github)
hexo server -p 3333(运行服务)
hexo new post 新文章(新建一个文章)
一声不「坑」
yaml语法严格,冒号后面一定要加空格
hexo:ERROR Deployer not found: github
执行hexo d没反应
1. 执行 npm install hexo-deployer-git --save
2. 修改站点_config.xml文件,如下:
repository: :yuchao-wang/yuchao-wang.github.io.git
branch: master
技术类图片压缩后,保存在本地uploads文件夹中;生活类图片,保存在微博
七牛云存储
yilia,next,Maupassant
git clone /heroicyang/hexo-theme-modernist.git themes/modernist
Hexo admin插件
npm install --save hexo-admin hexo server -d
完成以后输入:http://localhost:4000/admin
Next主题中添加文章统计
申请Leancloud
控制台-&创建应用-&应用数据配置界面-&点击左侧的齿轮图标-&新建Class-&名字为Counter-&点击设置-&点击应用key-&得到app_id和app_key
打开主题配置文件_config.xml配置
leancloud_visitors:
enable: true
app_id: your_app_id
app_key: your_app_key
点击设置-&在Web安全域名中输入我们的博客域名,用来保证数据调用的安全
官方文档:
主题Next文档:
Homebrew:
极客学院:
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
选择支付方式:为什么我的hexo d的时候提示没有权限_百度知道新手小白,能够在本地打开,但是部署不到github上去 = = hexo d的时候报错,向大家求助一下本问题。&br&$ hexo d&br&INFO
Deploying: git&br&INFO
Clearing .deploy folder...&br&INFO
Copying files from public folder...&br&warning: LF will be replaced by CRLF in /hello-world/index.html.&br&The file will have its original line endings in your working directory.&br&……&br&warning: LF will be replaced by CRLF in index.html.&br&The file will have its original line endings in your working directory.&br&warning: LF will be replaced by CRLF in js/script.js.&br&The file will have its original line endings in your working directory.&br&On branch master&br&nothing to commit, working directory clean&br&bash: /dev/tty: No such device or address&br&error: failed to execute prompt script (exit code 1)&br&fatal: could not read Username for '&a href=&///?target=https%3A//& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&GitHub · Where software is built&i class=&icon-external&&&/i&&/a&': No error&br&FATAL Something's wrong. Maybe you can find the solution here: &a href=&///?target=http%3A//hexo.io/docs/troubleshooting.html& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&Troubleshooting&i class=&icon-external&&&/i&&/a&&br&Error: bash: /dev/tty: No such device or address&br&error: failed to execute prompt script (exit code 1)&br&fatal: could not read Username for '&a href=&///?target=https%3A//& class=& wrap external& target=&_blank& rel=&nofollow noreferrer&&GitHub · Where software is built&i class=&icon-external&&&/i&&/a&': No error&br&&br&
at ChildProcess.&anonymous& (E:\SwuComputer\HTML5\hexo\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:42:17)&br&
at emitTwo (events.js:87:13)&br&
at ChildProcess.emit (events.js:172:7)&br&
at maybeClose (internal/child_process.js:818:16)&br&
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)&br&&br&我创建username的指令是 &br&git config --global user.name &ddariusliu&&br&username是指的github的用户名吧
新手小白,能够在本地打开,但是部署不到github上去 = = hexo d的时候报错,向大家求助一下本问题。$ hexo dINFO
Deploying: gitINFO
Clearing .deploy folder...INFO
Copying files from public folder...warning: LF will be replaced by CRLF in /hello-world/index.html.The file will have its original line endings in your working directory.……warning: LF will be replaced by CRLF in index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/script.js.The file will have its original line endings in your working directory.On branch masternothing to commit, working directory cleanbash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for '': No errorFATAL Something's wrong. Maybe you can find the solution here: Error: bash: /dev/tty: No such device or address…
我也遇到同样问题$ hexo dINFO
Deploying: gitINFO
Clearing .deploy_git folder...INFO
Copying files from public folder...warning: LF will be replaced by CRLF in /hello-world/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/07/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in css/style.css.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.css.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.css.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in js/script.js.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in /hello-world/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/07/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in /hello-world/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/07/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/2016/index.html.The file will have its original line endings in your working directory.warning: LF will be replaced by CRLF in archives/index.html.The file will have its original line endings in your working directory.[master faade2d] Site updated:
16:50:48 5 files changed, 22 insertions(+), 22 deletions(-)warning: LF will be replaced by CRLF in index.html.The file will have its original line endings in your working directory.bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for '': Invalid argumentFATAL Something's wrong. Maybe you can find the solution here: Error: bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for '': Invalid argument
at ChildProcess.&anonymous& (F:\andybroker\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (F:\andybroker\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)FATAL bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for '': Invalid argumentError: bash: /dev/tty: No such device or addresserror: failed to execute prompt script (exit code 1)fatal: could not read Username for '': Invalid argument
at ChildProcess.&anonymous& (F:\andybroker\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at ChildProcess.cp.emit (F:\andybroker\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:852:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
遇到了同样的问题&br&我觉得原因可能是用了windows 的cmd来操作&br&我换成git bash 后,就没有问题了&br&在之前报错的地方会弹出对话框,让你输入github的账号和密码&br&正如所有其他你要git push的时候一样&br&&img src=&/28b47425fafb0f961e1bbbb33f67b883_b.png& data-rawwidth=&515& data-rawheight=&328& class=&origin_image zh-lightbox-thumb& width=&515& data-original=&/28b47425fafb0f961e1bbbb33f67b883_r.png&&
遇到了同样的问题 我觉得原因可能是用了windows 的cmd来操作 我换成git bash 后,就没有问题了 在之前报错的地方会弹出对话框,让你输入github的账号和密码 正如所有其他你要git push的时候一样
贴上一篇我之前搭建博客时,参考的教程&br&引用自:&b&Xuanwo's Blog&/b&&b&// &/b&&b&史上最详细的Hexo博客搭建图文教程
&/b&&br&-----------------------------------&br&配置&b&Deployment&/b&首先,你需要为自己配置身份信息,打开命令行,然后输入:&br&&ul&&li&&i&git config --global user.name &yourname&&/i&&br&&/li&&li&&i&git config --global user.email &youremail&&/i&&/li&&/ul&同样在&b&_config.yml&/b&文件中,找到Deployment,然后按照如下修改:&br&&i& deploy:&/i&&br&&i&
type: git&/i&&br&&i&
repo: :yourname/yourname.github.io.git&/i&&br&&i&
branch: master&/i&&br&如果使用git方式进行部署,执行&i&npm install hexo-deployer-git --save&/i&来安装所需的插件&br&然后在当前目录打开命令行,输入:&br&hexo d&br&随后按照提示,分别输入自己的Github账号用户名和密码,开始上传。&br&-------------------------------&br&你看看会不会是这边的配置出现了问题。
贴上一篇我之前搭建博客时,参考的教程 引用自:Xuanwo's Blog// 史上最详细的Hexo博客搭建图文教程
----------------------------------- 配置Deployment首先,你需要为自己配置身份信息,打开命令行,然后输入: git config --global user.name "yourname"…
已有帐号?
无法登录?
社交帐号登录}

我要回帖

更多关于 win7提示没有权限访问 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信