120/129文件共享配置

By 水木神風 at 2025-07-25 • 0人收藏 • 455人看过

===========================================================================129文件服务器分别有路径

1、/home/java

如:/home/java/template_files 从2023-11-01到2025-07-25考勤数据

2、/home/newJava

如:/home/newJava/template_files  /home/newJava/template_files/images 存放了从2022-07-20到2025-07-25考勤数据

3、/home/template_files

如:/home/template_files/images 存放了 2021-09-01 到 2025-07-22 的考勤数据


===========================================================================120服务器路径:

1、/home/template_files/images  保存了从 2019-06-18 到 2023-11-10 号的考勤图片数据


2、/home/new_template_files 对应129的 /home/newJava


汉王考勤图片路径:https://sc.szgd-cloud.com/129checkin/ 对应129路径:/home/java/template_files

注:主要针对的是汉王考勤数据 /home/new_template_files/template_files/images/

如:https://sc.szgd-cloud.com/129checkin/2025-07-24/1753317077635_590.jpg

find /home/java/template_files/images/2025-07-24 -type f -name "1753317077635_590.jpg"

ll -ls 1753317077635_590.jpg


旧考勤设备路径:https://sc.szgd-cloud.com/123checkin/  存放图片地址为:/home/java/template_files/images

如:https://sc.szgd-cloud.com/123checkin/2025-07-24/1753337808306.jpg


新考勤设备考勤路径:https://sc.szgd-cloud.com/checkin/  存放图片地址为:/home/newJava/template_files/images

如:https://sc.szgd-cloud.com/checkin/2025-07-24/new_1753337254768.jpg



需要分别共享到120上能被访问


      location /checkin {

            alias /home/new_template_files/newJava/template_files/images;   

            error_page 404 500 /404.html;

      } 

 

      location /129checkin {

            alias /home/new_template_files/template_files/images;   

            error_page 404 500 /404.html;

      }  


      location /123checkin {

            #alias /home/new_template_files/java/template_files/images;   

            alias /home/oldjava/template_files/images;   

            error_page 404 500 /404.html;

      }  

  

查看已挂载的 NFS 共享

mount | grep nfs


#取消挂载

umount /home/new_template_files

umount /home/new_template_files/template_files


mount -t nfs 10.109.10.129:/home/newJava/template_files /home/newJava/template_files

mount -t nfs 10.109.10.129:/home/java/template_files /home/oldjava/template_files


登录后方可回帖