# kubernetes **Repository Path**: nuoee/kubernetes ## Basic Information - **Project Name**: kubernetes - **Description**: kubernetes - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-25 - **Last Updated**: 2025-06-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### NFS安装步骤 #### 1、安装命令 ```shell yum install nfs-utils rpcbind -y ``` #### 2、设置开放文件并且开放权限 ```shell chmod 777 /data/share/ ``` #### 3、设置/etc/exports填写如下 ```shell vi /etc/exports /data/share/ *(rw,sync,no_root_squash) # 或者 /data/share/ *(rw,sync,no_subtree_check,no_root_squash) ``` #### 4、启动/重启/开启启动 nfs-server 和 rpcbind ```shell # 启动 service nfs-server start service rpcbind start #重启 service nfs-server restart service rpcbind restart #开机启动 systemctl enable nfs-server systemctl enable rpcbind ``` ### 客户端安装 #### 1、安装命令 (**Mac无需安装**) ```shell yum install nfs-utils ``` #### 2、Centos挂盘命令 ```shell mount -t nfs,vers=3,local_lock=yes192.168.97.26:/data/share /app # 或 mount -t nfs -o nolock192.168.97.26:/data/share /app ``` #### 3、Mac挂载(**无需安装客户端**) ```shell sudo mount -o resvport192.168.97.26:/data/share /app ``` ### Centos开机启动 ```shell vim /etc/rc.d/rc.local mount -t nfs -o nolock192.168.97.26:/data/share /app chmod +x /etc/rc.d/rc.local ```