CE第二次作业

1. 开放/nfs/shared目录,供所有用户查阅资料

Serve

dnf -y install nfs-utils
systemctl start nfs-server
systemctl stop firewalld
mkdir -p /nfs/shared
vim /etc/exports
exportfs -arv

Client
dnf -y install nfs-utils
systemctl start nfs-server
systemctl stop firewalld
mkdir -p /mnt/share
showmount -e 192.168.183.131
mount 192.168.183.131:/nfs/shared /mnt/share


2. 开放/nfs/upload目录为x.x.x.0/24网段的数据上传目录,并将所有用户及所属的用户组都映射为nfs-upload,其UID与GID均为3000

Server
mkdir -p /nfs/upload
vim /etc/exports
groupadd -g 3000 nfs-upload
useradd -u 3000 -g 3000 nfs-upload
chown -R nfs-upload /nfs/upload
exportfs -arv

Client
mount 192.168.183.131:/nfs/upload /mnt/share

3. 配置ssh免密登陆,能够通过客户端主机通过redhat用户和服务端主机基于公钥验证方式进行远程连接

Server
useradd redhat
echo 123 | passwd --stdin redhat

Client
ssh-keygen -f ~/.ssh/id_rsa -P '' -q
ssh-copy-id redhat@192.168.183.131

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值