幸好在 linux 系统下编辑文件前,我备份了 mywiki 目录下的 data 和 underlay 文件夹。将使用的数据路径替换成之前备份的文件夹,就可以正常访问 wiki 目录。所以,以后的操作都是针对比较这两种文件夹的区别来进行的。
You don't have permission to access / on this server.
For example you can use the command setenforce 0 to turn off SELinux and check to see if the problem goes away. If so, ls -alZ can be used to view SELinux permission and chcon to fix them. DO NOT set files or directories to mode 777, even "just to test", even if "it's just a test server". The purpose of a test server is to get things right in a safe environment, not to get away with doing it wrong. All it will tell you is if the problem is with files that actually exist.
# modified: cache/__session__/5d913dd3964b9c91a9271b952de09de6cc7f31f2
# modified: cache/wikiconfig/drafts/1382603189.06.56339
# modified: cache/wikiconfig/surgeprotect/surge-log
# modified: edit-log
# modified: event-log
# modified: pages/(e4bc9ae5a3b0e4bc9ae5bdb1)/cache/text_html
# modified: pages/(e59bbee5838fe5a484e79086e7ae97e6b395)/cache/text_html
# modified: pages/(e5b9bfe5b79ee58f8ce8afade59bbde99985e6bc94e8aeb2e4bfb1e4b990e983a8)/cache/text_html
# modified: pages/(e6a2a6e696ade4bba3e7a081)/cache/text_html
# modified: pages/(e788b7e788b7)/cache/text_html
# modified: pages/(e7ac9b)/cache/text_html
# modified: pages/(e8818ce4b89ae8a784e58892)/cache/text_html
# modified: pages/RecentChanges/cache/text_html
# modified: pages/clouda/cache/text_html
# modified: pages/photoshop/cache/text_html
# modified: pages/yangjie/cache/text_html
# modified: plugin/__init__.pyc
# modified: plugin/action/__init__.pyc
# modified: plugin/converter/__init__.pyc
# modified: plugin/events/__init__.pyc
# modified: plugin/macro/__init__.pyc
# modified: plugin/parser/__init__.pyc
# modified: plugin/theme/__init__.pyc
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# cache/__session__/3b449c77a2d03d29a268c0e15bb6955cf57aa587
# cache/__session__/61850b56121680dd4f263e4eb86c3eaa914bbd6e
# cache/__session__/b8a0eef36f730a83390fde222ad8f0ed5f552459
# pages/(e6a2a6e696ade4bba3e7a081)/edit-lock
# pages/centos/