linux下服务说明<转>

xiaoxiao2021-03-01  17

linux下服务说明 2011年12月13日   我的CentOS 6.0的ntsysv的配置,以下Enable,其它全disable:wr   [b]NetworkManager/ acpid/ auditd/ autofs/ haldaemon/ iscsi/ iscsid[/b]   [b]libvirt-guests/ messagebus/ netfs/ network/ nfs/ [/b][b]nfslock/portreserve[/b]   [b]postfix/ rpcbind/ rpcidmapd/ rsyslog/ sshd/ sysstat/ tftp/ udev-post[/b]   [b]vboxadd/ vboxadd-service/ vboxadd-x11/ xinetd[/b]   [b]redhat官方服务介绍:[/b]   acpid   Listen and dispatch ACPI signals from kernel. Leave it on if you have a fairly new BIOS as it handles shutting of power to your computer   anacron   This runs cron jobs that were scheduled to run when the system was down. Safe to disable, unless you had a cron job that makes backups at thimes the system was down   apmd   Advanced power management daemon. Leave it on If you have a laptop, or a battery backup. Disable it if you have a desktop.   arpwatch   Arpwatch is a tool that monitors ethernet or fddi activity and maintain a database of ethernet/ip address pairings. You can probably disable it.   atd   Controls the at command, which is used to schedule commands. Unless you use the at command, you can turn it off   autofs   autofs is usually used for mounting network shares. Could be disabled for desktop systems.   bluetooth   Well? Do you want bluetooth on when you turn on your computer?   canna   Japanese support. Not needed unless you can read Japanese   cpuspeed   CPUSpeed for Linux adjusts the CPU speed dynamically based on the demand for processing power. Disable it unless you are using a laptop   crond   This handles cron jobs, an [b]essential[/b] part of Linux systems. Do NOT turn this off unless you are a lunatic, an expert or both   cups   Common UNIX Printing Solution. It is one system the computer uses to control the print queue. Leave it on if you have a printer   gpm   Lets you use the mouse in text-only console. Leave it off If you never leave X window system   httpd   Makes your computer a webserver. Unless you have a webpage you are hosting, this can be turned Off.   httpsd   Same thing as httpd, except secure. You probably want this off as well, unless you get to your site as https://   inetd/xinetd   Do not confuse this with Xine the movie player. Both of these are importand services. Do not turn off.   iptables   iptables is part of the Linux Firewall. Leave it on if you are on a network, especially if you are connected to the world wide web.   irda   Infra Red Data Association. Unless you are doing IR, you don't need this.   isdn   ISDN deamon for ISDN connections. Not needed unless you connect to the net through ISDN.   kuzdu   New Hardware detection utility. disable it if you never change your setup   lm_sensors   Sensors is used for monitoring motherboard sensor values. Unless your mother board has sensors to measure it's temperature, and other stuff you would like to know, this can be off.   mpmpd/mdmonitor   The mdadm package includes software used to create, manage, and monitor software RAID volumes.   named   Named is a Domain Name Server. You don't need it unless you are acting as a DNS server.   netfs   Mounts/Unmounts all Network File Systems, Samba pount points. Not needed if you don't need to automount remote File Systems   nfs/nfslock/portmap   This is the server functionality for file sharing across TCP/IP networks   ntp/ntpd   Used for syncing time across a network. You probably don't need this.   pcmcia   PCMCIA is to support ethernet and modems in laptops. You can switch it off in desktops   pop3d   Used to run a pop3 server on the machine. Unless you are a mail server, you don't need this   rhnsd   The RedHat network. Not needed if you use yum for all your updates   rpcgssd/rpcidmapd/rpcsvcgssd   These are Network File System Daemons. If You do not use NFS, turn it off   sendmail/smtpd   For use if your machine is a mail server. If not, it will mostly handle log alerts and other similar activities. It will not pose a security threat to leave it on.   smb/smbd/nmbd/winbind   For use if you want to network your linux box with a windows machine, and have the linux box appear in the 'network neighborhood'   snmpd/snmptrapd   Simple Network Management Protocol. You probably don't need this.   squid   Use this to become a sort of cache for internet requests from your local network. Unless internet requests go through you, this can be disabled   sshd/telnetd/rshd   Allow remote users to log onto your computer. Unless you need this, disable it. SSH is the most secure of these.   syslog   Keep this on. It logs your system activities.   vsftpd   This makes your computer an ftp server. Unless you want people to access your computer via ftp, disable this   wine   Keeps a copy of WINE loaded so you can just double click on a .exe to run it. You won't see this option unless you have WINE installed   [b]Linux系统守护进程详解[/b]   [b]不要关闭下面这几个服务:[/b]   [b]acpid, haldaemon, messagebus, klogd, network, syslogd[/b]   [b]1.[/b][b]NetworkManager, NetworkManagerDispatcher[/b]   NetworkManager 是一个自动切换网络连接的后台进程。很多笔记本用户都需要启用该功能,它让你能够在无线网络和有线网络之间切换。大多数台式机用户应该关闭该服务。一些 DHCP 用户可能需要开启它。   [b]2.[/b][b]acpid[/b]   配置文件:/proc/acpi/event   说明:Advanced Configuration and Power Interface,为替代传统的APM电源管理标准而推出的新型电源管理标准。建议所有的笔记本用户开启它。一些服务器可能不需要 acpi。支持的通用操作有:“电源开关“,”电池监视“,”笔记本 Lid 开关“,“笔记本显示屏亮度“,“休眠”, “挂机”,等等。   [b]3.[/b][b]anacron[/b]   配置文件:/etc/anacrontab   说明:一个自动化运行任务。Red Hat Linux 附带有四个自动化任务的工具:cron、 anacron、at、和 batch。当你的Linux主机并不是全天候开机,这个anacron就可以帮你执行在"crontab"设定的时间内没有执行的工作。举例来说,当你的主机在晚上12:00会自动关闭,但是偏偏crontab这个例行性工作是在4:00工作,这个时候例行性工作就不能起作用了。不过利用anacron就能做到。   是否需要启动:如果主机已经24小时开机,而且运行了cron,那么这个守护程序就不需要启动了。   anacron, atd, cron这几个调度程序有很小的差别。 建议开启 cron,如果你的电脑将长时间运行,那就更应该开启它。对于服务器,应该更深入了解以确定应该开启哪个调度程序。大多数情况下,笔记本/台式机应该关闭 atd 和 anacron。注意:一些任务的执行需要 anacron,比如:清理 /tmp 或 /var。   [b]4.[/b][b]apmd[/b]   配置文件:/etc/sysconfig/apmd   说明:Advanced Power Management,高级电源管理。传统的电源管理标准。一般系统都会同时支持APM和APMD两种标志,但系统加载时只需加载一个即可。对于笔记本电脑比较有用,可以了解系统的"电池电量"。   是否需要启动:如果我们使用的是台式电脑或一直开机的机型,就不需要使用这个守护程序。   [b]5.[/b][b]atd[/b]   配置文件:/etc/at.allow,/etc/at.deny   说明:一个自动化运行任务。   是否需要启动:通常需要启动。不过如果你一直使用cron,那么也可以不启动。   [b]6.[/b][b]autofs[/b]   配置文件:/etc/sysconfig/autofs   说明:实现光盘、软盘、U盘等移动存储介质的自动加载。   是否需要启动:一般不需要启动。   [b]7.[/b][b]avahi-daemon, avahi-dnsconfd[/b]   说明:Avahi 是 zeroconf 协议的实现。它可以在没有 DNS 服务的局域网里发现基于 zeroconf 协议的设备和服务。它跟 mDNS 一样。除非你有兼容的设备或使用 zeroconf 协议的服务,否则应该关闭它。   [b]8.[/b][b]bluetooth, hcid, hidd, sdpd, dund, pand[/b]   说明:蓝牙(Bluetooth)是给无线便携设备使用的(非 wifi, 802.11)。很多笔记本提供蓝牙支持。有蓝牙鼠标,蓝牙耳机和支持蓝牙的手机。如果没有蓝牙设备或蓝牙相关的服务,就应该关闭它。其他蓝牙相关的服务有:hcid 管理所有可见的蓝牙设备,hidd 对输入设备(键盘,鼠标)提供支持, dund 支持通过蓝牙拨号连接网络,pand 允许你通过蓝牙连接以太网。   [b]9.[/b][b]capi[/b]   说明:仅仅对使用 ISDN 设备的用户有用。大多数用户应该关闭它。   [b]10.[/b][b]cpuspeed[/b]   说明:监测系统空闲百分比,降低或加快CPU时钟速度和电压从而在系统空闲时将能源消耗降为最小,而在系统繁忙时最大化加快系统执行速度。   是否需要启动:需要启动。   [b]11.[/b][b]crond[/b]   配置文件:/etc/crontab   说明:用来执行例行性命令的守护程序。   是否需要启动:必须启动。   [b]12.[/b][b]cups[/b]   配置文件:   CUPS服务器配置文件:/etc/cups/cupsd.conf   CUPS客户端配置文件:/etc/cups/client.conf   CUPS打印机配置文件:/etc/cups/printers.conf   CUPS中类(class)配置文件:/etc/cups/classes.conf   说明:Common UNIX Printing System,公共UNIX打印支持,为Linux提供打印功能。   是否需要启动:如果不安装打印机,就不需要启动。   [b]13.[/b][b]cups-lpd[/b]   说明:CUPS Line Printer Daemon ("LPD"),提供打印功能。   是否需要启动:如果不安装打印机,就不需要启动。   [b]14.[/b][b]dc_client, dc_server[/b]   说明:磁盘缓存(Distcache)用于分布式的会话缓存。主要用在 SSL/TLS 服务器。它可以被 Apache 使用。大多数的台式机应该关闭它。   [b]15.[/b][b]dhcdbd[/b]   说明:这是一个让 DBUS 系统控制 DHCP 的接口。可以保留默认的关闭状态。   [b]16.[/b][b]diskdump, netdump[/b]   说明:磁盘转储(Diskdump)用来帮助调试内核崩溃。内核崩溃后它将保存一个 dump文件以供分析之用。网络转储(Netdump)的功能跟 Diskdump 差不多,只不过它可以通过网络来存储。除非你在诊断内核相关的问题,否则它们应该被关闭。   [b]17.[/b][b]dund[/b]   说明:支持通过蓝牙拨号来连接网络。如果没有蓝牙设备,就关闭它。   [b]18.[/b][b]firstboot[/b]   说明:该服务是 Fedora 安装过程特有的。它执行在安装之后的第一次启动时仅仅需要执行一次的特定任务。它可以被关闭。   [b]19.[/b][b]gpm[/b]   配置文件:/etc/sysconfig/mouse   说明:General Purpose Mouse Daemon ,gpm为文本模式下的Linux程序如mc(Midnight Commander)提供了鼠标的支持。它也支持控制台下鼠标的拷贝,粘贴操作以及弹出式菜单。一般在级别3下启用,5下关闭。   [b]20.[/b][b]hcid[/b]   说明:用来管理所有可见的蓝牙设备。如果没有蓝牙设备,就关闭它。   [b]21.[/b][b]hidd[/b]   说明:对输入设备(键盘,鼠标)提供支持。   [b]22.[/b][b]iptables[/b]   配置文件:/etc/sysconfig/iptabels   说明:该服务是用于IPv4的软件防火墙。应该开启它。   [b]23.[/b][b]ip6tables[/b]   说明:该服务是用于 IPv6 的软件防火墙。大多数用户都应该关闭它。   [b]24.[/b][b]irda[/b]   说明:Infrared Data Association,是一个实现红外无线数据传输的工业标准。   [b]25.[/b][b]irqbalance[/b]   说明:对多个系统处理器环境下的系统中断请求进行负载平衡的守护程序。   是否需要启动:如果你只安装了一个CPU,就不需要加载这个守护程序。   [b]26.[/b][b]kudzu[/b]   配置文件:   /etc/sysconfig/hwconf   /etc/sysconfig/kudzu   说明:硬件自动检测程序,会自动检测硬件是否发生变动,并相应地进行硬件的添加、删除工作。当系统启动时,kudzu会对当前的硬件进行检测,并且和存储在 /etc/sysconfig/hwconf中的硬件信息进行一一对照,如果某个硬件从系统中被添加或者删除时,那么kudzu就会察觉到,并且通知用户是否进行相关配置,然后修改/etc/sysconfig/hwconf,使硬件资料与系统保持同步。如果/etc/sysconfig/hwconf这个文件不存在,那么kudzu将会从/etc/modprobe.conf,/etc/sysconfig/network-scripts/和 /etc/X11/XF86Config中探测已经存在的硬件。   是否需要启动:如果启动kudzu,则每次启动系统,都会检查新硬件(checking new hardware),会延长系统启动的时间。如果你不打算增加新硬件,那么就可以关闭这个启动服务,以加快系统启动时间。   [b]27.[/b][b]mcstrans[/b]   说明:如果你使用 SELinux 就开启它。默认情况下 Fedora Core 开启 SELinux。   [b]28.[/b][b]mdmonitor[/b]   说明:该服务用来监测 Software RAID 或 LVM 的信息。与RAID设备相关的守护程序。   [b]29.[/b][b]mdmpd[/b]   说明:该服务用来监测 Multi-Path 设备(该类型的存储设备能被一种以上的控制器或方法访问)。与RAID设备相关的守护程序。   [b]30.[/b][b]messagebus[/b]   说明:这是 Linux 的 IPC(Interprocess Communication,进程间通讯)服务。确切地说,它与 DBUS 交互,为两个或两个以上的应用程序提供一对一的通讯。是重要的系统服务。强烈建议开启它。   [b]31.[/b][b]microcode_ctl[/b]   说明: 可以编码以及发送新的微代码到kernel以更新Intel IA32系列处理器(Pentium Pro,PII,PIII,Pentium 4,Celeron, Xeon 等等 - 全部 P6 以及更高,不包括 pentium classics)。   [b]32.[/b][b]netdump[/b]   说明:网络转储(Netdump)的功能跟 Diskdump 差不多,只不过它可以通过网络来存储。除非你在诊断内核相关的问题,否则它们应该被关闭。   [b]33.[/b][b]netfs[/b]   说明:Network Filesystem Mounter,该服务用于在系统启动时自动挂载网络中的共享文件空间,比如:NFS,Samba 等等。安装和卸载NFS、SAMBA和NCP网络文件系统。   [b]34.[/b][b]netplugd[/b]   配置文件:   /etc/netplug/netplugd.conf   /etc/netplug.d/netplug   说明:network cable hotplug management daemon,netplugd是一个守护程序,可以监控一个或多个网络接口的状态,当某些事件触发时运行一个外部脚本程序。建议保留它的默认关闭状态。   [b]35.[/b][b]network[/b]   说明:在系统启动时激活所有的网络接口。   [b]36.[/b][b]nfs[/b]   说明:网络文件系统。   [b]37.[/b][b]nfslock[/b]   说明:NFS是一个流行的通过TCP/IP网络共享文件的协议,此服务提供了NFS文件锁定功能。   [b]38.[/b][b]pcmcia[/b]   说明:Pcmcia卡,支持笔记本电脑的PCMCIA 设备,如调制解调器, 网络适配器, SCSI卡等等。   [b]39.[/b][b]pcscd[/b]   说明:该服务提供智能卡(和嵌入在信用卡,识别卡里的小芯片一样大小)和智能卡读卡器支持。如果你没有读卡器设备,就关闭它。   [b]40.[/b][b]portmap[/b]   说明:Portmap守护程序为RPC服务,该服务是 NFS(文件共享)和 NIS(验证)的补充。除非你使用 NFS 或 NIS 服务,否则关闭它。   [b]41.[/b][b]psacct[/b]   说明:包括几个工具用来监控进程活动的工具,包括ac,lastcomm, accton 和sa。   [b]42.[/b][b]random[/b]   说明:快速的将系统的状态在随机的时间内存到镜象档案中,对于系统相当重要。因为在开机之后,系统会迅速的恢复到开机之前的状态。必须启动。   [b]43.[/b][b]readahead_early[/b][b]、readahead_later[/b]   说明:这两个进程的作用是在启动系统期间,将启动系统所要用到的文件首先读取到内存中,然后在内存中进行执行,以加快系统的启动速度。而上面两个配置文件就保存着将要读取到内存的文件列表。   [b]44.[/b][b]restorecond[/b]   说明:用于给 SELinux 监测和重新加载正确的文件上下文(file contexts)。它不是必须的,但如果你使用 SELinux 的话强烈建议开启它。   [b]45.[/b][b]rpcgssd, rpcidmapd, rpcsvcgssd[/b]   说明:用于 NFS v4。除非你需要或使用 NFS v4,否则关闭它。   [b]46.[/b][b]rhnsd[/b]   说明:Red Hat 网络服务。通知你有关官方的安全信息以及为你的系统打补丁。   [b]47.[/b][b]rsync[/b]   说明:remote sync,远程数据备份工具。   [b]48.[/b][b]saslauthd[/b]   说明:使用SASL的认证守护程序。   [b]49.[/b][b]sgi-fam[/b]   说明:实现实时数据镜像。监控文件的变更,提供一个应用程序API接口用来当指定的文件或目录改变时及时通知。   [b]50.[/b][b]smartd[/b]   说明:Self Monitor Analysis and Reporting Technology System,监控你的硬盘是否出现故障。 SMART Disk Monitoring 服务用于监测并预测磁盘失败或磁盘问题(前提:磁盘必须支持 SMART)。大多数的桌面用户不需要该服务,但建议开启它,特别是服务器。   [b]51.[/b][b]syslog[/b]   配置文件:/etc/syslog.conf   说明:记录所有的系统行为。   [b]52.[/b][b]time[/b]   说明:从远程主机获取时间和日期,采用TCP协议。   [b]53.[/b][b]time-udp[/b]   说明:从远程主机获取时间和日期,采用UDP协议。   [b]54.[/b][b]vncserver[/b]   说明:VNC (Virtual Network Computing,虚拟网络计算),它提供了一种在本地系统上显示远程计算机整个"桌面"的轻量型协议。   [b]55.[/b][b]xfs[/b]   预设端口:TCP 7100   说明:x font server,X Window字型服务器,为本地和远程X服务器提供字型集。   是否需要启动:如果使用run-level为5的图形界面,那么就需要启动。   [b]56.[/b][b]xinetd[/b]   配置文件:/etc/xinetd.conf   说明:xinetd作为inetd的后续版本,负责管理系统中不频繁使用的服务,这些服务程序在有请求时才由xinetd服务负责启动运行,一旦完成服务请求服务程序结束运行,这样可以有效地减少对系统资源的占用率。通常,xinetd管理的程序有telnet、ftp、rsh和rlogin。关闭 xinetd也就关闭了这些由它管理的服务。   是否需要启动:必须启动。   [b]57.[/b][b]yum[/b]   配置文件:/etc/yum.conf   说明:Yellow Dog UpdaterModified,是一个自动更新、安装和删除RPM软件包的管理程序,它会自动计算软件包的管理程序,并判断哪些软件应该安装,哪些软件则不必安装。   是否需要启动:以系统管理策略而决定是否启动
转载请注明原文地址: https://www.6miu.com/read-3200168.html

最新回复(0)