You are on page 1of 2

Huỳnh Tấn Phước

------------------------------------------------------------------------------------------------------------

Cấu hình Samba

1. Maùy windown laáy döõ lieäu töø maùy linux


Maùy1 (linux): samba server coù ip laø 172.0.0.4
Maùy 2 (windows): samba client coù ip address laø 172.0.0.6
Treân samba server
Caáu hình nhö treân
Treân samba client
B1: Vaøo Start Æ Run
Goõ: ip cuûa samba server laø 172.0.0.4
B2: nhaäp username password maø samba server caáp

2. Maùy linux laáy döõ lieäu töø windown


Maùy 1 (win): samba server coù ip address laø 172.0.0.6
Maùy 2 (lunux): samba client coù ip address laø 172.0.0.4
Treân win
Ta taïo thö muïc tailieu vaø share thö muïc tailieu
Treân linux
[ ]# mkdir usb // thö muïc usb seõ chöùa taøi lieäu share
[ ]# mount –t smbfs –o username=administrator //172.0.0.6/tailieu /root/usb

Cấu hình NFS

1. Caáu hình server


Maùy server chia seû thö muïc /pub cho caùc maùy client trong maïng.
B1. Taïo thö muïc chia seû vôùi teân /pub
[root@localhost root]# mkdir /pub

B2. Duøng giao dieän caáu hình nfs


B3 Khôûi taïo nfs
[root@localhost root]# service nfs start
B4. Xem thö muïc chia seû ñaõ coù hay chöa
[root@localhost root]# exportfs -a
/pub

2. Caáu hình client


Client duøng leänh sau ñeå bieát ñöôïc server ñaõ chia seû thö muïc naøo

--------------------------------------------------------------------------------------------------------
1
Huỳnh Tấn Phước
------------------------------------------------------------------------------------------------------------
[root@localhost root]# showmount -e 172.0.0.4
ÔÛ client, taïo moät thö muïc ñeå coù theå mount thö muïc töø server vaøo ñoù
[root@localhost root]# cd /tmp
[root@localhost tmp]# mkdir file1
Mount thö muïc töø server vaøo thö muïc ñöôïc chæ ñònh treân client
[root@localhost tmp]# mount -t nfs 172.0.0.4:/pub /tmp/file1
[root@localhost tmp]# cd file1

--------------------------------------------------------------------------------------------------------
2

You might also like