《linux-NIS服务器.docx》由会员分享,可在线阅读,更多相关《linux-NIS服务器.docx(4页珍藏版)》请在第壹文秘上搜索。
1、服务器的配置创建、IS(域)名称,IrootlocaIhost*niSdomainnamenis挂险安装光盘,Iroollocalhost产mountdevcdrommnt找到、PSeC-2.1野的安装包Iroot暮IoCaIhOSt#rpm-ivhmntServerypypbind-1.19-8.el5.i386.rpmyp-tools-2.9-0.1.i386.rpmypserv-2.19-3.i386.rpm安装,rootlocalhostrradduserXrootlocaIhost#passwdXChangingpasswordforuserX.NewUNIXpassword:BAD
2、PASSWoRD:itisWAYtooshortRetypenewUNIXpassword:passwd:allauthenticationtokensupdatedsuccessfully.初始化ZSIHg席rootlocalhost#/usr/1ib/ypypinit-m在初始化过程中按CTRI.+I)list,typea.nexthosttoadd:IocaIhost.localdomainnexthosttoadd:按着按、,在按回车,Isthiscorrect?y/n:yy一壹看IP地址,rootSlocalhost产ifconfigctheth1.inkencap:Ethernet
3、HTVaddr00:0C:29:F9:B7:11inetaddr:10.0.0.1Beast:10.255.255.255Mask:255.0.0.0inetaddr:fe80:20c:29ff:fef9:b711/64Scope:1.inkIPBROADCASTRUNXIXGMU1.TIC.STMTU:1500Metric:!RXpackets:4756errors:0dropped:0overruns:0frame:。TXpackets:1957errors:0dropped:0overruns:0carrier:0collisions:0IxqueueIen:1000RXbytes:61
4、73114(5.8MiB)TXbytes:118068(115.3KiB)Interrupt:)85Baseaddress:Ox1400Ping下客户机,rootlocaIhost仔ping10.0.0.3PING10.0.0.364bytesfrom64bytesfrom64bytesfrom(10.0.0.3)56(84)bytesofdata.msmsms10.0.0.3:icmp_seq=lttl=64time=5.5310.0.0.3:icmp_seq=2ttl=64time=l.2910.0.0.3:icmp_seq=3ttl=64time=l.69接着共享/HOVE书目,root
5、localhostvietcexportsOTHO*(rw)roollocalhost关闭NFSmountd:关闭NFS守护进程:关闭NFSquotas:关闭NFS服务:启动NFS服务:关掉NFS配额:启动NFS守护进程:启动NFSmountd:启动、fs(共享文件夹)K.servicenfsrestart败败败败定定定定失失失失确确确确客户机的配置:进入配Jt界面,IrootlocaIhost|齐authconfig-tui用空格选中、IS点击下一步I验证配置I用户信息正凝口7%D5蔽DAPM舁1.JBsTTn11T*11T*TTn11T*T*TTn113M-i114114114074kc但使侵佞候仗便1息esDAISin信H1.W一手11T7Mnm?Hnxl1111-缓使使使使III*)城名号上一起先创建的域名称,服务叁写的是服务机的Ip地址(这次试验的服务暑IP地址是)点击确定I接着出现以下的画面(只要等的不是很久就是胜利了),定定定定确确确确停止portmap:启动portmap:|关闭NIS服务:关联到NIS域:监听NIS域服务器。.挂我共享文件夹Irootlocalhost产mount-tnfs10.0.0.1:/homc/home在客户机上运用服务卧上的用户,IrootlocaIhostSU-XXolocalhostr一只要不弹出错误就胜利了