#!/bin/bash

mkdir /opt/nfs
mount -t tmpfs -o size=1g tmpfs /opt/nfs
chmod -R 777 /opt/nfs

rm -f /etc/exports
echo "/opt/nfs *(insecure,rw,no_root_squash,sync,fsid=0)" > /etc/exports
exportfs -a
service nfs restart


mount -t nfs 127.0.0.1:/opt/nfs /root/mnt/

 

相关文章:

  • 2021-11-15
  • 2021-04-11
  • 2022-12-23
  • 2021-12-05
  • 2021-12-24
  • 2021-05-22
猜你喜欢
  • 2021-09-21
  • 2021-09-02
  • 2021-06-11
  • 2022-12-23
  • 2021-06-13
  • 2021-11-12
相关资源
相似解决方案