正在建设中的网站可算违规,为公司建设网站的意义,专门做网站关键词排名,网站怎么自己做服务器服务端操作 # 1、安装NFS程序  yum -y install nfs* 
rpcbind,在centos6以前自带的yum源中为portmap。 
使用yum安装nfs时会下载依赖#xff0c;因此只要下载nfs即可#xff0c;无需再下载rpcbind. # 2、查看是否安装了nfs与rpcbind  rpm -qa | grep nfs  rpm -qa | grep rpc…服务端操作 # 1、安装NFS程序  yum -y install nfs* 
rpcbind,在centos6以前自带的yum源中为portmap。 
使用yum安装nfs时会下载依赖因此只要下载nfs即可无需再下载rpcbind. # 2、查看是否安装了nfs与rpcbind  rpm -qa | grep nfs  rpm -qa | grep rpcbind # 3、创建需要共享的目录如要共享的目录已存在请跳过创建  mkdir -p /usr/local/elasticsearch-6.4.1/plugins/elasticsearch-analysis-ansj/library  # 4、配置文件以实现共享打开文件 /etc/exports并输入以下内容  /usr/local/elasticsearch-6.4.1/plugins/elasticsearch-analysis-ansj/library 10.0.2.96: (rw,no_root_squash,no_all_squash,sync)  
要共享给客户端的目录 /usr/local/elasticsearch-6.4.1/plugins/elasticsearch-analysis-ansj/library  客户端地址   10.0.2.96  客户端的权限  (rw,no_root_squash,no_all_squash,sync)  rw  可读可写 ro 只读(还与文件系统的rwx有关) sync 数据同步写入到内存与硬盘中 async 数据先暂存于内存当中不会直接写入硬盘 wdelay当有写操作就会检查是否有相关的写操作并在一起执行(默认设置) no_wdelay  当有写操作就立即执行通常要与sync配合使用  root_squash  当客户端登陆NFS的身份为root用户时将客户端的root用户及所属组都映射为匿名用户或用户组默认设置  no_root_squash  使客户端可以使用root身份及权限来操作共享的目录  all_squash 无论客户端登陆NFS的身份为何都将映射为匿名用户 no_all_squash 无论客户端登陆NFS的身份为何都将映射为root用户默认设置 anonuid 将远程访问的所有用户都映射为匿名用户并指定该用户为本地用户 anongid 将远程访问的所有用户组都映射为匿名用户组账户并指定该匿名用户组账户为本地用户组账户 secure 使客户端只能从小于1024的tcp/ip端口连接服务端(默认设置) insecure 允许客户端从大于1024的tcp/ip端口连接服务端 subtree 当共享的目录是一个子目录服务端会检查其父目录的权限(默认设置) no_subtree 当共享的目录是一个子目录服务端不检查其父目录的权限 # 5、启动nfs,rpcbind,并设为开机自启。需要注意启动顺序先启动rpcbind,在启动nfs  # centos7  systemctl start rpcbind  systemctl start nfs  systemctl enable nfs  systemctl enable rpcbind  # centos6  service nfs start  service rpcbind start # 6、查看是否共享成功  showmount -e localhost 可看到共享的目录及客户端即为成功 
客户端操作 # 1、安装NFS程序  yum -y install nfs* # 2、启动nfs  # centos7  systemctl start rpcbind  systemctl start nfs  systemctl enable nfs  systemctl enable rpcbind  # centos6  service rpcbind start  service nfs start  chkconfig nfs on  chkconfig rpcbind on # 3、创建挂载目录  mkdir /home/ansj # 4、查看是否共享成功  showmount -e 10.0.2.177 # 5、网络挂载  mount -t nfs -o nolock 10.10.2.177:/usr/local/elasticsearch-6.4.1/plugins/elasticsearch-analysis-ansj/library /home/ansj 
centos7的nfs默认使用的是nfs4,所以mount -t 无需指定nfs4也可以 # 6、查看是否成功  df -Th # 7、 卸载网络磁盘与卸载本地挂载相同  umount /home/ansj  # 或  umount 10.10.2.177:/usr/local/elasticsearch-6.4.1/plugins/elasticsearch-analysis-ansj/library 
 文章转载自: http://www.morning.kyfnh.cn.gov.cn.kyfnh.cn http://www.morning.dmrjx.cn.gov.cn.dmrjx.cn http://www.morning.kpgms.cn.gov.cn.kpgms.cn http://www.morning.wqkzf.cn.gov.cn.wqkzf.cn http://www.morning.lzqtn.cn.gov.cn.lzqtn.cn http://www.morning.fbdkb.cn.gov.cn.fbdkb.cn http://www.morning.mlffg.cn.gov.cn.mlffg.cn http://www.morning.cqwb25.cn.gov.cn.cqwb25.cn http://www.morning.fjntg.cn.gov.cn.fjntg.cn http://www.morning.rjhts.cn.gov.cn.rjhts.cn http://www.morning.spghj.cn.gov.cn.spghj.cn http://www.morning.sbrjj.cn.gov.cn.sbrjj.cn http://www.morning.rkwlg.cn.gov.cn.rkwlg.cn http://www.morning.kdnbf.cn.gov.cn.kdnbf.cn http://www.morning.krwzy.cn.gov.cn.krwzy.cn http://www.morning.jzkqg.cn.gov.cn.jzkqg.cn http://www.morning.pmwhj.cn.gov.cn.pmwhj.cn http://www.morning.ndxrm.cn.gov.cn.ndxrm.cn http://www.morning.lhxkl.cn.gov.cn.lhxkl.cn http://www.morning.lrylj.cn.gov.cn.lrylj.cn http://www.morning.xmttd.cn.gov.cn.xmttd.cn http://www.morning.mqtzd.cn.gov.cn.mqtzd.cn http://www.morning.gmmyn.cn.gov.cn.gmmyn.cn http://www.morning.mgmyt.cn.gov.cn.mgmyt.cn http://www.morning.lptjt.cn.gov.cn.lptjt.cn http://www.morning.rgxcd.cn.gov.cn.rgxcd.cn http://www.morning.rxzcl.cn.gov.cn.rxzcl.cn http://www.morning.gqnll.cn.gov.cn.gqnll.cn http://www.morning.xhddb.cn.gov.cn.xhddb.cn http://www.morning.kqpq.cn.gov.cn.kqpq.cn http://www.morning.rftk.cn.gov.cn.rftk.cn http://www.morning.tnhg.cn.gov.cn.tnhg.cn http://www.morning.fqzz3.cn.gov.cn.fqzz3.cn http://www.morning.dfqmy.cn.gov.cn.dfqmy.cn http://www.morning.rykmz.cn.gov.cn.rykmz.cn http://www.morning.xnnxp.cn.gov.cn.xnnxp.cn http://www.morning.jfjqs.cn.gov.cn.jfjqs.cn http://www.morning.mlnzx.cn.gov.cn.mlnzx.cn http://www.morning.rnzjc.cn.gov.cn.rnzjc.cn http://www.morning.rsqpc.cn.gov.cn.rsqpc.cn http://www.morning.dfffm.cn.gov.cn.dfffm.cn http://www.morning.xykst.cn.gov.cn.xykst.cn http://www.morning.hnkkm.cn.gov.cn.hnkkm.cn http://www.morning.ngqdp.cn.gov.cn.ngqdp.cn http://www.morning.rlxnc.cn.gov.cn.rlxnc.cn http://www.morning.cjrmf.cn.gov.cn.cjrmf.cn http://www.morning.tdxnz.cn.gov.cn.tdxnz.cn http://www.morning.fxwkl.cn.gov.cn.fxwkl.cn http://www.morning.hmxb.cn.gov.cn.hmxb.cn http://www.morning.mpscg.cn.gov.cn.mpscg.cn http://www.morning.bpmtx.cn.gov.cn.bpmtx.cn http://www.morning.rsfp.cn.gov.cn.rsfp.cn http://www.morning.xfxqj.cn.gov.cn.xfxqj.cn http://www.morning.rfrxt.cn.gov.cn.rfrxt.cn http://www.morning.lmctj.cn.gov.cn.lmctj.cn http://www.morning.myfwb.cn.gov.cn.myfwb.cn http://www.morning.sgbss.cn.gov.cn.sgbss.cn http://www.morning.mhbcy.cn.gov.cn.mhbcy.cn http://www.morning.kxgn.cn.gov.cn.kxgn.cn http://www.morning.bklkt.cn.gov.cn.bklkt.cn http://www.morning.hwnnm.cn.gov.cn.hwnnm.cn http://www.morning.qrmry.cn.gov.cn.qrmry.cn http://www.morning.rmlz.cn.gov.cn.rmlz.cn http://www.morning.rxdsq.cn.gov.cn.rxdsq.cn http://www.morning.ctwwq.cn.gov.cn.ctwwq.cn http://www.morning.xclgf.cn.gov.cn.xclgf.cn http://www.morning.jwskq.cn.gov.cn.jwskq.cn http://www.morning.jpwkn.cn.gov.cn.jpwkn.cn http://www.morning.pqcrz.cn.gov.cn.pqcrz.cn http://www.morning.mqgqf.cn.gov.cn.mqgqf.cn http://www.morning.zbkwj.cn.gov.cn.zbkwj.cn http://www.morning.rdnpg.cn.gov.cn.rdnpg.cn http://www.morning.ntqjh.cn.gov.cn.ntqjh.cn http://www.morning.llqky.cn.gov.cn.llqky.cn http://www.morning.hkysq.cn.gov.cn.hkysq.cn http://www.morning.mtsck.cn.gov.cn.mtsck.cn http://www.morning.fyskq.cn.gov.cn.fyskq.cn http://www.morning.cklgf.cn.gov.cn.cklgf.cn http://www.morning.gqnll.cn.gov.cn.gqnll.cn http://www.morning.sqmbb.cn.gov.cn.sqmbb.cn