1 / 12

中華技術學院 Linux 課程

中華技術學院 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

Download Presentation

中華技術學院 Linux 課程

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 中華技術學院Linux課程 Chap one : Service Control 王俊城 RHCE/RHCX

  2. Agenda • Service management • System V-managed services • xinetd

  3. Service Management • init • System V scripts • direct command • xinetd

  4. Services Managed by init • Typically non-TCP/IP services • Respawn capability • Configured in /etc/inittab • init q

  5. System V Service Management • /etc/rc.d/init.d/gpm start • /etc/init.d/gpm start • service gpm start

  6. 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

  7. 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/*

  8. xinetd default controls • /etc/xinetd.conf

  9. xinetd service controls • /etc/xinetd.d/*

  10. 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

  11. LAB2-xinetd • runlevel • init 3 • chkconfig telnet off • telnet localhost (X) • chkconfig telnet on (V) • telnet localhost (V) • chkconfig telnet --list

More Related