120 likes | 250 Views
中華技術學院 Linux 課程. Chap one : Service Control 王俊城 RHCE/RHCX. Agenda. Service management System V-managed services xinetd. Service Management. init System V scripts direct command xinetd. Services Managed by init. Typically non-TCP/IP services Respawn capability
E N D
中華技術學院Linux課程 Chap one : Service Control 王俊城 RHCE/RHCX
Agenda • Service management • System V-managed services • xinetd
Service Management • init • System V scripts • direct command • xinetd
Services Managed by init • Typically non-TCP/IP services • Respawn capability • Configured in /etc/inittab • init q
System V Service Management • /etc/rc.d/init.d/gpm start • /etc/init.d/gpm start • service gpm start
chkconfig • chkconfig gpm --list • /etc/rc.d/rc?.d/*gpm • chkconfig gpm on • chkconfig gpm off • chkconfig gpm --del • chkconfig gpm --add • chkconfig telnet on • /etc/xinetd.d/telnet
Xinetd Managed Services • xinetd standalone itself • less-frequently needed services • host-based authentication • service statistics and logging • service IP redirection • Replaces inetd • Linked with libwrap.so • Configuration files:/etc/xinetd.conf,/etc/xinetd.d/*
xinetd default controls • /etc/xinetd.conf
xinetd service controls • /etc/xinetd.d/*
LAB1-standalone service • runlevel • init 3 • chkconfig gpm on • service gpm stop (X) • init 5 (V) • chkconfig gpm off (V) • init 3 (X) • service gpm start (V) • chkconfig gpm on
LAB2-xinetd • runlevel • init 3 • chkconfig telnet off • telnet localhost (X) • chkconfig telnet on (V) • telnet localhost (V) • chkconfig telnet --list