需要在虚拟机配置文件加入下面的参数

autoindex on;
autoindex_localtime on;
charset utf-8;

效果如下

liumou@liumou-PC:/data/nginx/html$ cat ../conf.d/down.conf 
server {
        listen 80;
        listen [::]:80;
        server_name nuc.liumou.site;
        client_max_body_size 1024m;
        location / {
                autoindex on;
                autoindex_localtime on;
                charset utf-8;
                root   /usr/share/nginx/html/;
                index  index.html index.htm;
    }
}