On server
yum rpm install ypserver rpcbind
yum rpm install ypserver rpcbind
$ grep "/var/log/messages" /etc/rsyslog.conf *.info;mail.none;authpriv.none;cron.none /var/log/messages
C_INCLUDE_PATH
(for C header files) or CPLUS_INCLUDE_PATH
(for C++ header files)./etc/environment
.# service iptables save
# service iptables stop
# chkconfig iptables off
# service ip6tables save
# service ip6tables stop
# chkconfig ip6tables off
/etc/network/interfaces
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 NM_CONTROLLED=no ONBOOT=yes //very important or your network won't work HWADDR=00:50:56:37:F1:04 TYPE=Ethernet BOOTPROTO=none //don't use static IPADDR=192.168.1.8 NETMASK=255.255.255.0DNS1=8.8.8.8DNS2=8.8.4.4## set Default Gateway # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=web.example.com GATEWAY=192.168.1.1
yum install nfs-utils nfs-utils-lib
chkconfig nfs on service rpcbind start service nfs start
vi /etc/exports
add the following line
/home 12.33.44.0/24(rw,sync,no_root_squash,no_subtree_check)
/home is the shared folder
12.33.44.0 allowed ips
/24 subnet mask
service nfs restart
on the clinetmount 192.168.133.133:/home /home