Friday, 24 April 2015

Menginstall NFS Server dan NFS Client di Debian

Posted By: Rufaidah-network - 20:31

Share

& Comment

Menginstall NFS Server dan NFS Client de Debian

1 NFS Server caranya ikuti langkah langkahnya  seperti di bawah ini :
root@rufaidahServer:~# aptitude -y install nfs-kernel-server
root@rufaidahServer:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahServer:~# vi /etc/exports
# write like below *note
/home 10.0.0.0/24(rw,sync,fsid=0,no_root_squash,no_subtree_check)
# *note
/home ⇒ shared directory
10.20.0.0/24                                   ⇒ range of networks NFS permits accesses
rw                                                  ⇒ possible to read and write
sync                                               ⇒ synchronize
no_root_squash                             ⇒ enable root privilege
no_subtree_check                         ⇒ disable subtree check
root@rufaidahServer:~# /etc/init.d/nfs-kernel-server restart


Menginstall NFS Client
root@rufaidahclient:~# aptitude -y install nfs-common
root@rufaidahclient:~# vi /etc/idmapd.conf
# line 6: uncomment and change to your domain name
Domain = server.world
root@rufaidahclient:~# /etc/init.d/nfs-common restart
Stopping NFS common utilities: idmapd statd.
Starting NFS common utilities: statd idmapd.
root@rufaidahclient:~# mount -t nfs rufaidahServer.server.world:/home /home
root@rufaidahclient:~# df -h
Filesystem                Size  Used Avail Use% Mounted on
rootfs                     19G  745M   17G   5% /
udev                       10M     0   10M   0% /dev
tmpfs                     202M  196K  202M   1% /run
/dev/mapper/www-root       19G  745M   17G   5% /
tmpfs                     5.0M     0  5.0M   0% /run/lock
tmpfs                     403M     0  403M   0% /run/shm
/dev/vda1                 228M   18M  199M   9% /boot
rufaidahServer.server.world:/home   19G  917M   17G   6% /home
# home directory on NFS is mounted
root@rufaidahclient:~# vi /etc/fstab
# add at the last: change home directory this server mounts to the one on NFS
 rufaidahServer.server.world:/home   /home  nfs     defaults        0       0

Ok sampai disini mudah mudahan bisa bermanfaat

About Rufaidah-network

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

0 komentar:

Post a Comment

Copyright © Pembelajaran IT ™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.