-
Linux/Unix基础分类的最新文章
-
最新评论
-
最新文章
-
目录
-
Red Hat Enterprise Linux Workstation release 6.2 (Santiago) _x86_64(July 05 2012)
(一)Red Hat NIS Client configuration
1.#chkconfig iptbales –list
#chkconfig iptbales off
#service iptables stop
2. #vi /etc/selinux/config
SELINUX=disabled
3.Check the following packages are installed
# rpm -qa ypbind
# rpm -qa yp-tools
4. Add domainname and hostname
#vi /etc/sysconfig/network
HOSTNAME=hostname #根据实际情况修改计算机名
NISDOMAIN=nisservername #NIS server 的名字
5. Add NIS server to '/etc/hosts'
#vi /etc/hosts
***.***.*** hostname #NIS服务器的ip地址和计算机名
6.#vim /etc/yp.conf
domain nisservername nisservername #NIS server 的名字
7. # vi /etc/nsswitch.conf
passwd: files nis
shadow: files nis
group: files nis
hosts: files dns nis
automount: files nis
6. Start the ypbind services by executing the following commands:
#chkconfig ypbind on
#service ypbind start
Do the following steps if you're using DHCP client instead of static IP address.
A. Edit '/etc/sysconfig/network-scripts/ifcfg-eth0' and add the following line.
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
PEERDNS=no
PEERNIS=no
B. Edit '/etc/resolv.conf' #vi /etc/resolv.conf
nameserver ipaddress #域名服务器的IP地址
nameserver ipaddress #域名服务器的IP地址
search domain #域名服务器的IP地址
(2)Red Hat Automount configuration
1. #vi /etc/auto.master
#+auto.master # Comment this line
/net /etc/auto.net
/localadmin yp:auto.localadmin #Add this line (这个地方我经常会写错,必须得注意)
#service autofs status
#chkconfig autofs --list
#chkconfig atuofs on
#chkconfig autofs --list
# service autofs restart
2. Edit /etc/nsswitch.conf
#vi /etc/nsswitch.conf
automount: files nis
0
收藏
Ctrl+Enter 发布
发布
取消