分类: LINUX
2010-05-17 17:11:54
YPSERV_ARGS="-p 834"
YPXFRD_ARGS="-p 835"4.启动nis服务 service ypserv start service portmap start service yppasswdd start5.建立资料库 #/usr/lib/yp/ypinit -m6.修改防火墙 iptables -I INPUT -s 192.168.122.0/24 -p tcp --dport 111 -j ACCEPT iptables -I INPUT -s 192.168.122.0/24 -p udp --dport 111 -j ACCEPT//允许访问portmap服务 iptables -I INPUT -s 192.168.122.0/24 -p tcp --dport 834 -j ACCEPT iptables -I INPUT -s 192.168.122.0/24 -p udp --dport 834 -j ACCEPT //打开nis端口 service iptables save
客户端配置1.安装ypbind和yp-tools2.设置hosts文件: 192.168.122.234 station162.example.com3.使用nis服务器: authconfig-tui4.验证配置 yptest ypwhich -x ypchat passwd.byname