简体   繁体   中英

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.

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?

This action is not matter, check nginx default config files

default;

mkdir -p /usr/share/nginx/html
echo 'Hello World' > /usr/share/nginx/html/index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM