当前位置:网站首页>nfs服务部署笔记
nfs服务部署笔记
2022-07-23 05:47:00 【ELIAUK``】
yum install -y nfs-utils
mkdir /data
vim /etc/exports
/data 10.0.0.0/24(rw,async,no_root_squash,no_all_squash)
systemctl restart rpcbind
systemctl restart nfs
systemctl enable rpcbind
systemctl enable nfs
客户机执行
1、安装nfs,并启动服务
yum install -y nfs-utils
systemctl enable rpcbind.service
客户端不需要启动nfs服务,只需要启动rpcbils
nfs服务.
2、检查 NFS 服务器端是否有目录共享
showmount -e 192.168.222.200
3、使用 mount 挂载A服务器端的目录/home/nfs到客户端B的目录/home/nfs下
[[email protected] ~]# mkdir /home/nfs
[[email protected] ~]# mount -t nfs 192.168.222.200:/home/nfs/ /home/nfs/
ssh-keygen -t rsa
这时.ssh目录下会生成私钥和公钥的键值对id_rsa,id_rsa.pub
scp /root/.ssh/id_rsa.pub [email protected]:/root/.ssh/authorized_keys企业文件目录增量实时同步 删除不同步
wget -O/etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum -y install inotify-tools rsync自动部署shell脚本
#!/bin/bash
path1=/srv/salt/base/ldy
ip=192.168.30.13
/usr/bin/inotifywait -mrq --timefmt %y/%m'%d %H:/%M' --format '%T %w%f' -emodify,create,attrib $path1 | while read file;
do
rsync -avz /srv/salt/base/ldy [email protected]:/root
echo "${file} was rsynced" >> /var/log/rsync.log 2>&1
done边栏推荐
- C custom set
- Overview of OpenSSL self visa process
- HCIP---HCIA知识回顾(一)
- Learning diary (routing and switching technology) -- floating static routing and default routing
- Liveness、Readiness 和 Startup Probes
- harbor部署
- vlan配置实例学习记录
- Unity3d: special effect object pool, timeout delete GameObject in the pool, GC weight
- How to write a web page with a common text editor
- Analysis of Internet Protocol (I)
猜你喜欢

Learning diary (routing and switching technology) -- floating static routing and default routing

Unity3d: script execution sequence on scene loading gameobejct

Super easy to use packet capturing tool tcpdump

Hcip-hcia knowledge review (II)

DHCP原理与配置

手动配置DHCP服务

Learning diary - (routing and switching technology) dynamic routing (RIP protocol) and static routing

Learning diary - (routing and switching technology) DHCP (Dynamic Host Configuration Protocol)

为什么要搭建本地yum仓库?

Pod 拓扑约束
随机推荐
vlan配置实例学习记录
Instant messaging websocket
静态路由配置实例学习记录
学习日记——(路由与交换技术)OSPF协议
Unity3d:assetbundle simulation loading, synchronous loading, asynchronous loading, dependent package loading, automatic labeling, AB browser, incremental packaging
写一个可执行文件依赖.so的测试用例
C # custom stack
直白理解一文搞定http协议缓存
[Reading Notes "Phoenix architecture" - a large-scale distributed system with reliable architecture. Zhou Zhiming] (I)
Gameframework: resource hot code analysis, check version information, download version files, verify version files, get the number of updated files, download files, taskpool
HCIP---MGRE综合实验
Take go language as an example to explain [performance analysis] by analogizing detective reasoning
Analysis of UDP protocol and TCP protocol
PostgreSQL k8s部署模板
jenkins部署
app编译打包部署手册
C #: TOPK: take the largest 100 before 10000 numbers, and sort the heap
Analyze redis cluster
Super easy to use packet capturing tool tcpdump
DHCP principle and configuration