nis_server.txt

nis_server.txt


  121  rpm -i ypserv-2.19-5.el5.i386.rpm time-1.7-27.2.2.i386.rpm
  122  less /etc/ypserv.conf
  123  rpm -q portmap
  124  service portmap status
  125  nisdomainname testname
  126  nisdomainname
  127  echo "/bin/nisdomainname testname">>/etc/rc.local
  128  cat /etc/rc.local
  129  /bin/nisdomainname
   
  131  vim /etc/sysconfig/network

NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
NISDOMAIN=testname


  132  vim /etc/ypserv.conf

# *                        : *       : *                : none
127.0.0.0/255.255.255.0    : *       : *                : none
192.168.6.0/255.255.255.0  : *       : *                : none
 *                         : *       : *                : deny

  133  service ypserv start
  134  service yppasswdd start

  135  less /etc/passwd
  136  useradd -u 2001  redhat
  137  passwd redhat
  138  less /etc/passwd

  140  /usr/lib/yp/ypinit -m
  141  less /var/yp/testname/passwd.byname

  143  iptables -F

  145  vim /etc/exports
  146  service nfs status
  147  service nfs start
  148  exportfs
  149  vim /etc/exports

/home   192.168.6.0/24(rw,async)


  175  vim /etc/exports
  176  exportfs -rv

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(234) | 评论(0) | 转发(0) |
0

上一篇:nis_client.txt

下一篇:passwd

给主人留下些什么吧!~~
评论热议
posted @ 2016-03-30 09:54  张同光  阅读(59)  评论(0编辑  收藏  举报