1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      NFS企業(yè)優(yōu)化

      安全掛載參數(shù):

      創(chuàng)新互聯(lián)建站主要從事成都網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì)、網(wǎng)頁設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)永春,10多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18982081108

      mount -t nfs -o nosuid,noexec,nodev,rw 192.168.3.188:/data /mnt

      、測試NFS服務(wù)端默認(rèn)共享參數(shù)選項(xiàng):

      [root@NFSClient /]# mount -t nfs -o nosuid,noexec,nodev,rw 192.168.3.188:/data /mnt

      [root@NFSClient mnt]# cat test.sh

      Pwd

      [root@NFSClient mnt]# chmod +x test.sh   

      [root@NFSClient mnt]# ./test.sh

      bash: ./test.sh: Permission denied

      [root@NFSClient mnt]# sh test.sh

      /mnt

      提示:權(quán)限不夠,就是因?yàn)樯厦鎾燧d的時(shí)候加了noexec參數(shù),

      這個(gè)參數(shù)讓可以執(zhí)行的文件本身執(zhí)行不了,如果指定解釋器sh test.sh 這樣子就可以執(zhí)行。

      在掛載目錄下強(qiáng)制卸載

      [root@NFSClient mnt]# umount -lf /mnt

      二、NFS Server 默認(rèn)的掛載參數(shù)和NFS Client默認(rèn)的掛載參數(shù)

      [root@NFSServer ~]# cat /var/lib/nfs/etab ==》服務(wù)端

      /data   192.168.3.0/24(rw,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,no_subtree_check,secure_locks,acl,anonuid=65534,anongid=65534,sec=sys,rw,root_squash,no_all_squash)

      [root@NFSClient ~]# grep mnt /proc/mounts ==》客戶端

      192.168.3.188:/data/ /mnt nfs4 rw,relatime,vers=4,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.3.200,minorversion=0,local_lock=none,addr=192.168.3.188 0 0

      rsize,wsize 這兩個(gè)就是很重要的參數(shù)

      下面測試修改那兩個(gè)參數(shù)的值測試一下速度

      [root@NFSClient ~]# time dd if=/dev/zero of=/mnt/testfile bs=9k count=20000

      20000+0 records in

      20000+0 records out

      184320000 bytes (184 MB) copied, 17.7761 s, 10.4 MB/s

      real    0m17.834s

      user    0m0.017s

      sys     0m8.440s

      NFS網(wǎng)絡(luò)文件系統(tǒng)優(yōu)化掛載的參數(shù)建議

      性能優(yōu)化

      [root@NFSClient~]#mount -t nfs -o noatime,nodiratime,rsize=131072,wsize=131072 192.168.3.188:/data /mnt

      缺省設(shè)置:

      [root@NFSServer ~]# cat /proc/sys/net/core/rmem_default

      112640

      該文件指定了接收套接字緩沖區(qū)大小的缺省值(單位是字節(jié))

      [root@NFSServer ~]# cat /proc/sys/net/core/rmem_max 

      112640

      該文件指定了接收套接字緩沖區(qū)大小的缺省值(單位是字節(jié))

      加到這個(gè)文件里面永久生效,加載配置sysctl –p

      一、exportfs命令介紹

      exportfs -rv == /etc/init.d/nfs reload  加載配置文件

      [root@NFSServer ~]# exportfs -o rw,sync 192.168.3.188:/data

      [root@NFSServer ~]# exportfs -o rw,sync,all_squash,anonuid=555,anongid=555 192.168.3.188:/data

      這個(gè)命令不用配置文件共享目錄

      二、錯(cuò)誤檢查

      [root@NFSServer ~]# rpcinfo -p localhost

         program vers proto   port  service

          100000    4   tcp    111  portmapper

      100000    3   tcp    111  portmapper

          100011    2   udp    875  rquotad

          100011    1   tcp    875  rquotad

          100003    2   tcp   2049  nfs

          100003    3   tcp   2049  nfs

          100003    4   tcp   2049  nfs

          100227    2   tcp   2049  nfs_acl

          100227    3   tcp   2049  nfs_acl

      ==》查看nfs有沒有向rpc注冊端口

      Nfs的幫助man exports

      mount –a  檢測配置文件fstab有沒有錯(cuò)誤


      本文標(biāo)題:NFS企業(yè)優(yōu)化
      分享URL:http://www.ef60e0e.cn/article/pjdjoj.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        兴安盟| 禹州市| 沁阳市| 洱源县| 东乡族自治县| 咸宁市| 桃源县| 邮箱| 汨罗市| 罗山县| 铜鼓县| 麦盖提县| 都兰县| 柳州市| 太湖县| 登封市| 乌海市| 潜山县| 武平县| 衡阳县| 武城县| 郑州市| 滦南县| 马龙县| 上林县| 毕节市| 黑河市| 柘荣县| 长沙市| 乐亭县| 凤城市| 富锦市| 奉新县| 巫山县| 共和县| 五家渠市| 肇东市| 德化县| 东阿县| 普兰县| 安乡县|