当前位置:网站首页>网络硬盘NFS的安装与配置
网络硬盘NFS的安装与配置
2022-07-03 16:59:00 【星哥玩云】
NFS 是共享文件的服务的一种协议 下面给大家介绍一下这个服务器的的安装和配置,在Linux终端上输入 :apt-gey install nfs-common nfs-kernel-server 回车
下面给大家大致讲一下NFS服务器的配置
在讲它的配置之前我想说的一句话就是它太简单了
好了,闲话不多说 go
#:vim /etc/exprots
现在我们来编辑NFS服务的配置文件 其实服务器的配置大同小异
在正文的最下面输入一行
/srv/nfs_share *(rw)
上面的这一行是什么意思呢 /srv/nfs_share 表示的是我们要共享的文件目录
* 表示互联网上任何主机都可以访问 (rw) 表示对服务器进行访问的主机可以进行的操作 也就是可读可写
如果我们只想让我们本地局域网上的主机对我们的服务器进行访问的话 可以这样写
/srv/nfs_share 192.168.*.*(rw)
本机进行访问 :sudo mount -o rw locahost:/srv/nfs_share /mnt/nfs
上面的意思是把本地的目录/srv/nfs_share 挂载到 目录/mnt/nfs上 ,这时候我们体会不到挂载点发生了变化 我们可以自己用相关的命令查询,我就不多介绍了
非本地的主机 :sudo mount -o rw 域名:/srv/nfs_share /mnt/nfs
··································
这个时候我们会发现NFS太简单了,所以系统管理员就麻烦了
假如在共享的目录中有我们的重要的文件,怎么办?
/srv/nfs_share/secret (noaccess)
什么意思呢
就是任何主机都不能访问/srv/nfs_share/secret 这个子目录
在配置完以后怎么手动启动文件呢?
找到脚本文件然后执行它
如何限制root的权限
/srv/nfs_share 192.168.*。*(rw,root-aquash)
查看客户端挂载共享目录的状态
#:nfsstat -c
查看服务器的状态
#:nfsstat -s
边栏推荐
- Recommendation of good books on learning QT programming
- Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
- RedHat 6.2 配置 Zabbix
- [combinatorics] recursive equation (the relationship theorem between the solution of the recursive equation and the characteristic root | the linear property theorem of the solution of the recursive e
- Summary of three methods of PHP looping through arrays list (), each (), and while
- MySQL user management
- [Jianzhi offer] 58 - ii Rotate string left
- Pools de Threads: les composants les plus courants et les plus sujets aux erreurs du Code d'affaires
- Overview of satellite navigation system
- Execute script unrecognized \r
猜你喜欢
Prepare for the golden three silver four, 100+ software test interview questions (function / interface / Automation) interview questions. win victory the moment one raises one 's standard
Analysis of variance summary
Network security web penetration technology
The most complete postman interface test tutorial in the whole network, API interface test
29: Chapter 3: develop Passport Service: 12: develop [obtain user account information, interface]; (use VO class to package the found data to meet the requirements of the interface for the returned da
The way of wisdom (unity of knowledge and action)
大变局!全国房价,跌破万元大关
What material is sa537cl2? Analysis of mechanical properties of American standard container plate
UCORE overview
手把手带你入门 API 开发
随机推荐
RF analyze demo build step by step
What is the difference between 14Cr1MoR container plate and 14Cr1MoR (H)? Chemical composition and performance analysis of 14Cr1MoR
LeetCode 1658. Minimum operand to reduce x to 0
CC2530 common registers for crystal oscillator settings
PHP converts a one-dimensional array into a two-dimensional array
Central South University | through exploration and understanding: find interpretable features with deep reinforcement learning
[JDBC] API parsing
Take you to API development by hand
[combinatorics] polynomial theorem (polynomial theorem | polynomial theorem proof | polynomial theorem inference 1 item number is the number of non negative integer solutions | polynomial theorem infe
新库上线 | CnOpenData中国保险机构网点全集数据
Shentong express expects an annual loss of nearly 1billion
[combinatorics] polynomial theorem (polynomial coefficients | full arrangement of multiple sets | number of schemes corresponding to the ball sub model | polynomial coefficient correlation identity)
比亚迪、长城混动市场再“聚首”
Kotlin learning quick start (7) -- wonderful use of expansion
关于学习Qt编程的好书精品推荐
utfwry. Dat PHP, about ThinkPHP's method of IP location using utfwry address Library
One brush 149 force deduction hot question-10 regular expression matching (H)
Simulink oscilloscope data is imported into Matlab and drawn
数据分析必备的能力
【Try to Hack】主动侦查隐藏技术