RHCE Certification: RHEL6 easy-to-build NIS Service

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.