hexo 问题解决方案 持续更新ING.

hexo d 提交过程中 define permission错误。
是由于hexo使用过程中使用了root权限的原因。

解决方法是:使用文件权限更改命令。

1
2
3
4
5
6
7
8
9
10
423  cd .deploy_git 
424 ls
425 ls -la
426 cd .git
427 ls -la
428 cd objects
429 ls -la
430 cd ..
431 ls
432 sudo chown -R echoocking:staff *

这里是根据提示而找出.git文件是root权限
而后,使用 chown -R命令递归更改.deploy_git的全部文件的使用权限。


持续更新ING.