什么是服务? 服务就是运行在网络服务器上监听用户请求的进程 服务是通过端口号来区分的 常见的服务及其对应的端口 ftp 21 telnet:23 ■ http(www):80 ■ pop3:110 Service Name Port Number FTP 21 FTP Data 20 Telnet 23 SMTP(email) 25 HTTP(W) 80 HTTPS(Secure WWW) 443 17
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 什么是服务?
在UNX系统里启动与关闭服务? 在UNIX系统中,服务是通过inetd进程或启动脚本来启动 通过inetd来启动的服务可以通过在etc/inetd.conf文件中注 释来禁用 通过启动脚本启动的服务可以通过改变脚本名称的方式禁用 18
18 在UNIX系统中, 服务是通过inetd 进程或启动脚本来启动 通过 inetd 来启动的服务可以通过在/etc/inetd.conf 文件中注 释来禁用 通过启动脚本启动的服务可以通过改变脚本名称的方式禁用 在UNIX系统里启动与关闭服务?
inetd超级服务器? 1.inetd超级服务器 inetd的功能 inetd的配置和管理 2.服务的关闭 关闭通过inetd启动的服务 关闭独立启动的服务 3.inetd的替代品 xinetd(http://www.xinetd.org) xinetd比inetd更多管理功能 xinetd的配置 19
19 1. inetd超级服务器 inetd 的功能 inetd 的配置和管理 2. 服务的关闭 关闭通过inetd启动的服务 关闭独立启动的服务 3. inetd 的替代品 xinetd(http://www.xinetd.org) xinetd 比inetd更多管理功能 xinetd 的配置 inetd 超级服务器?
inetd配置文件? 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 -1 -a telnet stream tecp nowait root /usr/sbin/tcpd in.telnetd 20
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 配置文件?
UNIK启动脚本 UNIX启动脚本目录 /etc/rc*.d/ [root@smithers rc3.d]#1s -a S11portmap S40crond S55routed S60rusersd S85sound S15netfs S45pcmcia S55sshd S60rwhod S90xfs K30sendmail S20random S50inet s601pd S75keytable S91smb S05apmd s30syslog S50snmpd S60nfs S85gpm S99linuxconf S10network S40atd S55named S60rstatd S85httpd S99local [root@smithers rc3.d]# 禁用启动脚本 改变脚本名,使他不以大写的‘S开头 21
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启动脚本