{"id":2896,"date":"2020-02-20T15:12:09","date_gmt":"2020-02-20T06:12:09","guid":{"rendered":"\/blog\/?p=2896"},"modified":"2026-02-09T17:24:52","modified_gmt":"2026-02-09T08:24:52","slug":"nfs-mount","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=2896","title":{"rendered":"NFS Mount (CentOS)"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">\u25a0 NFS Server \uc124\uc815<br><br>yum -y install nfs-utils nfs-utils-lib<br><br>vi \/etc\/default\/nfs-common<br>STATDOPTS=\"--port 4000\"<br>\uc218\uc815<br><br>vi \/etc\/default\/nfs-kernel-server<br>RPCMOUNTDOPTS=\"--manage-gids -p 4002\"<br>\uc218\uc815<br><br>vi \/etc\/exports<br>\/nfs_mount *(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000)<br>\ucd94\uac00<br><br>vi \/etc\/sysctl.conf<br>###########################################################<br>#<br># NFS nlockmgr port<br>#<br>###########################################################<br>fs.nfs.nlm_tcpport=4001<br>fs.nfs.nlm_udpport=4001<br>\ucd94\uac00<br><br>exportfs -a<br>systemctl enable rpcbind<br>systemctl enable nfs-server<br>systemctl enable nfs-lock<br>systemctl enable nfs-idmap<br><br><br>\u25a0 NFS Client \uc124\uc815<br><br>vi \/etc\/fstab<br># NFS<br>10.10.10.1:\/nfs_mount \/mnt nfs defaults,_netdev 0 0<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0 NFS Server \uc124\uc815yum -y install nfs-utils nfs-utils-libvi \/etc\/default\/nfs-commonSTATDOPTS=&#8221;&#8211;port 4000&#8243;\uc218\uc815vi \/etc\/default\/nfs-kernel-serverRPCMOUNTDOPTS=&#8221;&#8211;manage-gids -p 4002&#8243;\uc218\uc815vi \/etc\/exports\/nfs_mount *(rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000)\ucd94\uac00vi \/etc\/sysctl.conf############################################################# NFS nlockmgr port############################################################fs.nfs.nlm_tcpport=4001fs.nfs.nlm_udpport=4001\ucd94\uac00exportfs -asystemctl enable rpcbindsystemctl enable nfs-serversystemctl enable nfs-locksystemctl enable nfs-idmap\u25a0 NFS Client \uc124\uc815vi \/etc\/fstab# NFS10.10.10.1:\/nfs_mount \/mnt nfs defaults,_netdev 0 0<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-2896","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2896"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2896\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}