往U盘写文件close之前先调用下面两个函数,避免拔出U盘后文件丢失
pDest是文件句柄
fflush(pDest);
   fdatasync(fileno(pDest));

 

挂载nfs方法
cd tmp
mkdir nfs
mount -t nfs -o nolock 192.168.39.17:/home/log/log1 /tmp/nfs

相关文章:

  • 2022-02-10
  • 2021-10-27
  • 2021-12-14
  • 2021-12-06
  • 2021-11-13
猜你喜欢
  • 2022-03-04
  • 2021-08-15
  • 2021-12-10
  • 2021-04-14
  • 2021-07-22
  • 2021-12-12
相关资源
相似解决方案