liunx挂载目录
#yum install nfs-utils
如果没有安装,将出现:
存储文件目录为:1024 192.168.99.111:/home/nfsroot
挂载点:/app/apache-tomcat-7.0.59/webapps/ lhelper /nfs/
#mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 192.168.99.111:/home/nfsroot /app/apache-tomcat-7.0.59/webapps/lhelper/nfs/
# vi /etc/fstab
192.168.99.111:/home/nfsroot /app/apache-tomcat-7.0.59/webapps/lhelper/nfs nfs defaults 0 0
#df –h --查找NFS挂载点
#umount /app/apache-tomcat-7.0.59/webapps/ lhelper /nfs --卸载NFS挂载点
备注:如果tomcat服务没有停止或者当前在NFS目录下,则停止挂载失败
想了解更多?现在就开始免费体验