linux之间的文件共享挂载,以及挂载Windows共享

/*********linux之间的文件共享挂载*********/
1、安装
#yum install nfs-utils

2、共享端150服务器配置/etc/exports
/AVA/www *(insecure,rw,sync,no_root_squash,no_all_squash)

3、启动服务
#service rpcbind start
#service nfs start

4、测试
#showmount -e 127.0.0.1
输出以下结果:
Export list for 127.0.0.1:
/data/www *
说明共享成功启动

5、挂载端151服务器
#yum install nfs-utils
#service rpcbind start
#service nfs start
#mount -t nfs 192.168.2.144:/AVA/www /usr/local/src/
---------------------------------------------

 

/*********挂载windows共享文件夹*********/

mount -t cifs -o user=1,password=1,iocharset=utf8,codepage=cp936 //192.168.2.28/g /mnt/

---------------------------------------------

 

posted @ 2020-10-13 14:22  灬百无一用是书生  阅读(104)  评论(0编辑  收藏  举报