https://padlet.com/yerim999/tgf0wzcq63foh5vc/wish/2232256887
Day6-2
centos3이 nfs서버와 samba서버 모두 운영하는 상황centos3 --> /students 공유. ip주소 : 10.0.2.7centos1&2 --> /mnt 공유(centos3 - nfs 설정)1. mkdir /students2. chmod 777 /stuents 3. touch /students/homework.txt4. systemctl disable firew
padlet.com

- centos3이 nfs서버와 samba서버 모두 운영하는 상황
centos3 --> /students 공유. ip주소 : 10.0.2.7
centos1&2 --> /mnt 공유
(centos3 - nfs 설정)
1. mkdir /students
2. chmod 777 /stuents
3. touch /students/homework.txt
4. systemctl disable firewalld
5. vi /etc/exports
/students 10.0.2.0/24(rw, sync, no_root_squash) 작성
6. exportfs -a
7. reboot
(centos1&2)
1. showmount -e 10.0.2.7
2. mount -t nfs 10.0.2.7:/students /mnt
(centos3 - samba 설정)
1. vi /etc/sysconfig/selinux
여기서 SELINUX=disabled로 변경
2. vi /etc/samba/smb.conf
맨 마지막 줄에
[students]
comment = Students files!
path = /students
public = yes
writable = yes
printable = no
추가
3. smbpasswd -a adminuser
4. reboot
(Windows)
1. powershell 관리자 모드로 들어간 다음
2. net use x: \\10.0.2.7\students /user:adminuser
'Study > Cloud' 카테고리의 다른 글
라우터 이해하기 (0) | 2022.07.04 |
---|---|
vi, yum, file system, permission 이해 (0) | 2022.07.04 |
FTP서버 운영 (0) | 2022.07.04 |
NFS, Samba 운영-1 (0) | 2022.07.04 |
Linux 기본 (0) | 2022.07.04 |