什么是服务? 服务就是运行在网络服务器上监听用户请求的进程 服务是通过端口号来区分的 常见的服务及其对应的端口 ■ftp:21 telnet: 23 http(www):80 ■pop3:110 Service Name Port number FTP 21 FTP Data 20 Telnet 23 SMTP (emai 25 Http(W) 80 Https(secUre wWw) 443
17 Service Name Port Number FTP 21 FTP Data 20 Telnet 23 SMTP (email) 25 HTTP (WWW) 80 HTTPS (Secure WWW) 443 服务就是运行在网络服务器上监听用户请求的进程 服务是通过端口号来区分的 常见的服务及其对应的端口 ftp : 21 telnet : 23 http(www) : 80 pop3 : 110 什么是服务?
在UNⅨX系统里启动与关闭服务? ■在UNX系统中,服务是通过netd进程或启动脚本来启动 ■通过 inetd来启动的服务可以通过在 etc/inetd. conf文件中注 释来禁用 ■通过启动脚本启动的服务可以通过改变脚本名称的方式禁用
18 在UNIX系统中, 服务是通过inetd 进程或启动脚本来启动 通过 inetd 来启动的服务可以通过在/etc/inetd.conf 文件中注 释来禁用 通过启动脚本启动的服务可以通过改变脚本名称的方式禁用 在UNIX系统里启动与关闭服务?
inetd超级服务器? 1. inetd超级服务器 inetd的功能 inetd的配置和管理 2服务的关闭 关闭通过netd启动的服务 关闭独立启动的服务 3 inetd的替代品 xinetd(http://www.xinetd.org xinetd比 lined更多管理功能 xinetd的配置
19 1. inetd超级服务器 inetd 的功能 inetd 的配置和管理 2. 服务的关闭 关闭通过inetd启动的服务 关闭独立启动的服务 3. inetd 的替代品 xinetd(http://www.xinetd.org) xinetd 比inetd更多管理功能 xinetd 的配置 inetd 超级服务器?
inetd配置文件? i inetd. conf This file describes the services that will be available through the INETD TCP/IP super server To re-configure the running INETD process, edit this file, then send the # INETD process a SIGHUP signal Echo, discard daytime, and chargen are used primarily for testing #f To re-read this file after changes, just do a killall -HUp inetd' #echo stream tcp nowait1oo七 internal #echo dgram udy Wai七 internal #discard stream tcp nowait root internal #discard wait roo七 internal #daytime stream tcp nowait root internal iday wai七 ot internal #chargen stream tcp L七 internal #chargen udp wai七 root internal #time strea nowait root internal #time dgram ud wai七 roo七 internal i These are standard services f七 str nowait root /usr/sbin/tcpd in ftpd -l-a telnet stream tcp nowait roo七 /usr/sbin/tcpd in telnetd
20 # inetd.conf This file describes the services that will be available # through the INETD TCP/IP super server. To re-configure # the running INETD process, edit this file, then send the # INETD process a SIGHUP signal. # # Echo, discard, daytime, and chargen are used primarily for testing. # # To re-read this file after changes, just do a 'killall -HUP inetd' # #echo stream tcp nowait root internal #echo dgram udp wait root internal #discard stream tcp nowait root internal #discard dgram udp wait root internal #daytime stream tcp nowait root internal #daytime dgram udp wait root internal #chargen stream tcp nowait root internal #chargen dgram udp wait root internal #time stream tcp nowait root internal #time dgram udp wait root internal # # These are standard services. # ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd inetd 配置文件?
UNIX启动脚本 ■UNX启动脚本目录 letc/rc*,d/ [root@ smithers rc3. d]# ls-a Sllportmap S40crond $55routed S60rusersd S85 sound S15netfs $45pcmcia $55sshd S60rwhod S90xfs K30sendmail S2Orandom s5Oinet $60lpd S75keytable S91 smb s05apmd $syslog S50snmpd s60nfs S85qp S99linuxconf S10network S40atd S55namedS60rstatdS85httpd S9 glocal [root@smi thers rc3.d]# ■禁用启动脚本 改变脚本名,使他不以大写的“S开头
21 [root@smithers rc3.d]# ls -a . S11portmap S40crond S55routed S60rusersd S85sound .. S15netfs S45pcmcia S55sshd S60rwhod S90xfs K30sendmail S20random S50inet S60lpd S75keytable S91smb S05apmd S30syslog S50snmpd S60nfs S85gpm S99linuxconf S10network S40atd S55named S60rstatd S85httpd S99local [root@smithers rc3.d]# UNIX启动脚本目录 /etc/rc*.d/ 禁用启动脚本 改变脚本名,使他不以大写的‘S’ 开头 UNIX启动脚本