Configuration and installation of ypserv service on the NISServer # chkconfigypserv-list [view the startup status of ypserv in different modes] # chkconfigypservon [enable it to automatically start in 2, 3, 4, 5] # chkconfigypserv- list [view the startup status of ypserv in different modes again] # vim/etc/sysconfig/network [edit net
NIS Server Configuration
Install ypserv Service
# Chkconfig ypserv-list [view the startup status of ypserv in different modes]
# Chkconfig ypserv on [Enable Automatic startup in the 2, 3, 4, and 5 statuses]
# Chkconfig ypserv-list [view the startup status of ypserv in different modes again]
# Vim/etc/sysconfig/network [edit the network file]
Add "NISDOMAIN = nisdomain"
# Vim/varyp/securenets [edit sercurenets. This file does not exist by default and needs to be created manually]
Add listening domain
# Service ypserv restart [start the nis service]
Create a dedicated directory for nis
[Root @ nisserver ~] # Mkdir/home/nishome
[Root @ nisserver ~] # Ll/home/
Total 24
Drwxr-xr-x. 2 root 4096 Jun 26 10:12 nishome
Create an account such as niSUSEr1. The home directory is/home/nishome/nisuser1, and create nisuser2 ...... Nisuser6
# Useradd-d/home/nishome/nisuser1 nisuser1