Solaris advanced system management lecture notes day 4

Source: Internet
Author: User
Tags nameserver

SA-299 day 4
---------------------

========================================================== ==============
Syslogd

Macro Processor
/Usr/CCS/bin/M4

/Etc/rc2.d/s74syslog stop

/Etc/rc2.d/s74syslog start

Pkill-hup syslogd

VI/etc/init. d/inetsvc
# Changed:
/Usr/sbin/inetd-s-t

/Etc/default/inetd
Type: (due to bug of Solaris 9)
Enable_connection_logging = Yes

/Etc/init. d/inetsvc stop
/Etc/init. d/inetsvc start

Tail-F/var/adm/messages

New Terminal
Do:
FTP 10.1.101.70

========================================================== ==============
Logger command

Tail-F/var/adm/messages

Logger-I-P err-T "tag" "This is my message! "

Logger-I-P Err "this is my message"

========================================================== ==============
Nscd daemon

Getent passwd Root

Getent group Root

Getent hosts sun70

Getent services Telnet

Getent ethers sun70

Getent protocols ICMP

========================================================== ==============
Name Client

VI/etc/resolv. conf
Type:
Nameserver 10.1.101.1
Nameserver 202.106.0.20
Domain digitalchina.com

MV/etc/nsswitch. CONF/etc/nsswitch. orig

CP/etc/nsswitch. NIS/etc/nsswitch. conf

========================================================== ==============
Configure the NIS Service
 
Configure the NIS Server
-------------

Touch/etc/ethers/etc/bootparams/etc/locale/etc/timezone/etc/netgroup/etc/netmasks

Domainname Training

VI/etc/defadomain domain
Type:
Training

VI/etc/locale
Type:
Training Zh. GBK

CD/etc

Ypinit-m

/Usr/lib/netsvc/yp/ypstop

/Usr/lib/netsvc/yp/ypstart

Testing the NIS Service
-----------------------

Ypcat hosts

Ypcat services

Ypmatch root passwd

Configure NIS client
-------------

CD/var/yp/training

Ls-l

Ypinit-C

# Select master server

-------------

VI/etc/hosts
Comment:
#10.1.101.70 sun70

Ping-I1 sun70

Init as slave server
--------------------

# Sun70 is Master
Ypinit-s sun70
 

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.