[英]I have deleted Nginx directories
This is kind of embarrassing but I have accidentally deleted all directories in /usr/share/nginx
, that is there where the html directory for serving static pages is. 这有点尴尬,但我不小心删除了
/usr/share/nginx
所有目录,在该目录中提供静态页面的html目录就在其中。
I have NOT deleted the config files. 我尚未删除配置文件。 And to my knowlegde all the files that was deleted were default.
据我所知,所有被删除的文件都是默认的。 So my question is: what where those directories and that is the simplest way of restoring them without overwriting the conf files?
所以我的问题是:那些目录在哪里,那是不覆盖conf文件而还原它们的最简单方法?
This action is not matter, check nginx default config files 这个动作没关系,请检查nginx默认配置文件
default; 默认;
mkdir -p /usr/share/nginx/html
echo 'Hello World' > /usr/share/nginx/html/index.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.