User Tools

Site Tools


自作クラスタ計算機:nisの基本設定

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
自作クラスタ計算機:nisの基本設定 [2020/03/01 20:52]
koudai [概要]
自作クラスタ計算機:nisの基本設定 [2020/03/01 21:17]
koudai [管理ノード]
Line 16: Line 16:
     * NISドメイン名は設定を共有するコンピュータのグループの名前のことであり、FQDNにおけるドメイン名とはまったく別物である     * NISドメイン名は設定を共有するコンピュータのグループの名前のことであり、FQDNにおけるドメイン名とはまったく別物である
     * NISドメイン名は /etc/defaultdomain に保存されるので、変更したくなったらこのファイルを編集すればよい     * NISドメイン名は /etc/defaultdomain に保存されるので、変更したくなったらこのファイルを編集すればよい
-  - /etc/hosts.allow に共有する設定を管理するコンピュ(この場合は管理ノード自身なので127.0.0.1とする)と共有するネットワークのIPアドレスを指定する<code>+  - /etc/hosts.allow にNISサバのIPアドレス(この場合は管理ノードをNISサーバとするので127.0.0.1とする)と共有するネットワークのIPアドレスを指定する<code>
 $ sudo vi /etc/hosts.allow $ sudo vi /etc/hosts.allow
 </code><file - hosts.allow> </code><file - hosts.allow>
 rpcbind : 127.0.0.1 192.168.0.0/24 rpcbind : 127.0.0.1 192.168.0.0/24
 </file> </file>
-  - /etc/defalut/nis に管理ノードの役割(この場合はNISサーバー)を指定する<code>+  - /etc/defalut/nis に管理ノードNISサーバとすることを指定する<code>
 $ sudo vi /etc/defalut/nis $ sudo vi /etc/defalut/nis
 </code><file - nis> </code><file - nis>
 NISSERVER=master NISSERVER=master
 </file> </file>
-  - +  - /etc/yp.conf にNISサーバのIPアドレスを指定する<code> 
 +$ sudo vi /etc/yp.conf 
 +</code><file - nis> 
 +ypserver 192.168.0.1 
 +</file> 
 +  - /etc/ypserv.securenets の最終行をプライベートLANのネットマスクとIPアドレスに変更する<code> 
 +$ sudo vi /etc/ypserv.securenets 
 +</code><file - ypserv.securenets> 
 +(略) 
 +# This line gives access to everybody. PLEASE ADJUST! 
 +255.255.255.0 192.168.0.0 
 +</file> 
 +  - NISデータベースを更新する<code> 
 +$ sudo /usr/lib/yp/ypinit -m 
 + 
 +At this point, we have to construct a list of the hosts which will run NIS 
 +servers.  dlp.srv.world is in the list of NIS server hosts.  Please continue to add 
 +the names for the other hosts, one per line.  When you are done with the 
 +list, type a <control D>. 
 +        next host to add:  kanri.local 
 +        next host to add:  # Ctrl + D キー 
 +The current list of NIS servers looks like this: 
 + 
 +kanri 
 + 
 +Is this correct?  [y/n: y]  y 
 +We need a few minutes to build the databases... 
 +(以下略) 
 +</code> 
 +    * 途中でNISサーバのホスト名を聞かれるので入力する 
 +  - NISを再起動する<code> 
 +$ sudo systemctl restart nis 
 +</code>
  
  
自作クラスタ計算機/nisの基本設定.txt · Last modified: 2024/01/20 17:32 by koudai