Linux performance optimization 7: cropping system service

Source: Internet
Author: User
Tags openssh server
Linux performance optimization 7: Cropping System Services 6: selecting IO scheduling algorithms http://www.2cto.com/os/201307/228389.html Generally, application services are deployed. for a single server, only a single service is provided. even cluster technology and distributed technology are used for multiple servers... linux performance optimization 7: Cropping System Services 6: selecting IO scheduling algorithms http://www.2cto.com/os/201307/228389.html Generally, application services are deployed. for a single server, only a single service is provided. even cluster technology and distributed technology are used for multiple servers to provide high-availability and high-performance services. In this way, the status quo for most systems to provide a variety of services is obviously not consistent, which requires our administrator to manually manage, on the one hand, saving CPU, memory and other computer resources, these saved resources can be provided to the opened services, which may not improve the performance of a single server. if the number of servers is too large, it is obvious. on the other hand, an important principle in Internet security: the fewer services are enabled, the safer the system is. in linux, we can directly use "/etc/init. d/* stop "shut down unnecessary services in the system, but this is temporary. we can use the chkconfig command for management. However, when closing these services, we must understand the role of the service, when determining that the system does not use these resources, the system runs normally. I collected some information about the default services provided by the system. you can disable all unnecessary services as needed: **************************************** **************************************** ************ * ************** 1. alsasound: Alsa sound card driver daemon. The Alsa sound card driver was originally written for a sound card GravisUltraSound (GUS). The program was proven to be excellent, so the author began to write drivers for a general sound card. Alsa is compatible with OSS/Free and OSS/Linux, but it has its own access port, which is even better than OSS. 2. acpid: acpid (Advanced Configuration and Power Interface) is a new Power management standard to replace the traditional APM Power management standard. Generally, the laptop needs to be powered on for management. 3. atalk: AppleTalk network daemon. Do not run the program in the background. The data structure of the program must be initialized for a certain period of time before other processes are run. 4. amd: automatically installs the NFS daemon. 5. anacron: an automated task daemon. Red Hat Linux tool with four automated tasks: cron, anacron, at, and batc. When your Linux server is not running all day long, this anacron can help you execute the work that has not been executed within the time set by "crontab. 6. apmd: apmd (Advanced Power Management) is Advanced Power Management. Traditional power management standards are useful for laptops and can be used to understand the battery information of the system. And write the relevant information into the log through syslogd. It can also be used to shut down when the power supply is insufficient. 7. arptables_jf: specifies the daemon for user control of the arptables network. 8. arpwatch: records logs and constructs an Ethernet address and IP address pair database seen on the LAN interface. Atd: the at and batch command daemon processes. you can use the at command to schedule tasks. Batch is used to run Batch processing tasks when the system load is low. 9. autofs: automatically installs the management process automount, which is related to NFS and depends on the NIS server. 10. bootparamd: boot parameter server that provides information required for booting a diskless workstation on the LAN. 11. ch: the Bluetooth server daemon process. 12. crond: cron is a traditional Unix program that periodically runs user-scheduled tasks. Compared with the traditional Unix version, the Linux version adds many attributes, which are safer and easier to configure. Similar to scheduled tasks. 13. chargen: the chargen server using the tcp Protocol. Character Generator Protocol is a network service. its main function is to provide a function similar to remote typing. 14. chargen-udp: Use the chargen server of UDP protocol. 15. cpuspeed: monitor the idle percentage of the system to reduce or speed up the CPU clock speed and voltage so as to minimize the energy consumption when the system is idle, while maximizing the system execution speed when the system is busy. 16. dhcpd: service daemon of the Dynamic Host Control Protocol. 17. cups: cups (Common UNIX Printing System) is a Common UNIX print daemon and provides the third-generation Printing function for Linux. 18. cups-config-daemons: the cups printing system switches the daemon process. 19. cups-lpd: The daemon for printing cups rows. 20. daytime: the Daytime daemon of TCP protocol is used to obtain the date and time from the remote server for the client. Default Port: 13. 21. daytime-udp: Use the Daytime daemon of UDP protocol. 22. dc_server: the proxy server daemon that uses the SSL secure socket. 23. dc_client: the client daemon that uses the SSL secure socket. 24. diskdump: The server disk backup daemon. 25. echo: The server displays the customer data service daemon. 26. echo-udp: the server that uses the UDP protocol returns the client data service daemon. 27. eklogin: a service daemon that accepts rlogin session authentication and is encrypted with kerberos5. 28. gated: Gateway Routing Daemon. It supports various routing protocols, including RIP version 1 and 2, dcn hello protocol, OSPF Version 2, and EGP version 2 to 4. 29. gpm: The gpm (General Purpose Mouse Daemon) Daemon provides Mouse support for Linux programs in text mode, such as mc (Midnight Commander. It also supports the copy and paste operations and pop-up menus on the console. 30. gssftp: ftp daemon using kerberos 5 authentication 31. httpd: Apache daemon of the Web server, which can be used to provide HTML files and CGI dynamic content services. 32. inetd: Internet operation daemon. The monitoring network needs various services managed by it, and starts corresponding service programs when necessary. It is replaced by xinetd in Redhat and Mandrake linux. Debian, Slackware, and SuSE are still used. 33. innd: Usenet news server daemon. 34. iiim: The daemon process of the Chinese input method server. 35. iptables: iptables firewall daemon. 36. irda: Infrared port daemon. 37. isdn: start and stop the service daemon process. 38. krb5-telnet: telnet daemon using kerberos 5 authentication. 39. klogin: log on to the daemon remotely. 40. keytable: the function of this process is to reprinted the keyboard ing table defined in/etc/sysconfig/keyboards. This table can be selected using the kbdconfig tool. You should make the program active. 41. irqbalance: the server load balancer daemon for system interrupt requests in multiple system processor environments. If you only install one CPU, you do not need to load this daemon. 42. kshell: kshell daemon. 43. kudzu: The hardware automatic detection program automatically checks whether the hardware has changed and adds or deletes the hardware accordingly. When the system starts, kudzu checks the current hardware and compares it with the hardware information stored in/etc/sysconfig/hwconf, if a hardware is added or deleted from the system, kudzu will detect it and notify the user whether to configure it, and then modify etc/sysconfig/hwconf, synchronize hardware data with the system. If the/etc/sysconfig/hwconf file does not exist, kudzu will start from/etc/modprobe. conf,/etc/sysconfig/network-scripts/and etc/X11/XF86Config to detect existing hardware. If you do not want to add new hardware, you can close the startup service to speed up the system startup time. 44. ldap: ldap (Lightweight Directory Access Protocol) Directory Access Protocol server daemon process. 45. lm_seroems: detects the working process of the motherboard. 46. lpd: lpd is an old-fashioned print daemon that submits lpr and other programs to print jobs. 47. mdmonitor: the Daemon of RAID-related devices. 48. messagebus: the D-BUS is a library that provides one-to-one communication for two or more applications. Dbus-daemon-1 is an application that uses this library to implement the messagebus daemon. Multiple applications can exchange information with other programs by connecting to the messagebus daemon. 49. microcode_ctl: encodes and sends new microcodes to the kernel to update the Intel IA32 series processor daemon. 50. mysqld: a fast, efficient, and reliable lightweight SQL database engine daemon process. 51. named: DNS (BIND) server daemon. 52. netplugd: the netplugd (network cable hotplug management daemon) daemon is used to monitor the status of one or more network interfaces and run an external script program when some events are triggered. 53. netdump: remote network backup server daemon. 54. netfs: Network Filesystem Mounter. this process installs and uninstalls NFS, SAMBA, and NCP Network file systems. 55. nfs: network file system daemon. 56. nfslock: NFS is a popular protocol for sharing files through TCP/IP networks. this Daemon provides the NFS file locking function. 57. ntpd: Network time Protocol daemon (Network time correction Protocol ). Ntpd is a protocol daemon process used to synchronize time between the system and a precise time source. 58. network: enable/disable the network interface Daemon at startup. 59. psacct: The daemon includes several tools used to monitor process activity, including ac, lastcomm, accton, and sa. 60. pcmcia: it is mainly used to support the daemon process of the laptop interface. 61. portmap: This daemon is used to support RPC connections. RPC is used for NFS, NIS, and other services. 62. postgresql: PostgreSQL relational database engine. 63. proftpd: proftpd is a dedicated ftp server daemon in Unix. 64. pppoe: ADSL connection daemon. 65. random: a high-quality random number generator for saving and restoring the system. these random numbers are provided by uniform random behaviors. 66. rawdevices: used to load the Daemon of raw devices when using the cluster file system. 67. readahead, readahead_early: readahead and readahead_early are two backend daemon programs launched in coreora core2. The function is to read the files used to start the system to the memory during system startup, and then execute the files in the memory to speed up the system startup. 68. rhnsd: Red Hat Network service daemon. Notify the official security information and patch the system. 69. routed: This daemon supports the automatic IP route table maintenance of the RIP protocol. RIP is mainly used on small networks. a larger network requires a more complex protocol. 70. rsync: remote sync remote data backup daemon. 71. rsh: start a shell on the remote host and execute user commands. 72. rwhod: Allows remote users to obtain a list of all logged-on users on the machines running the rwho daemon. 73. rstatd: a waiting process for other machines on the LAN to collect and provide system information. 74. ruserd: remote user location service, an RPC-based service that provides user information about a machine log recorded on the LAN. rwalld: activate rpc. rwall service process, an RPC-based service that allows users to write messages to other terminals registered on the LAN machine. 76. rwhod: activates the rwhod service process. it supports rwho and ruptime services of the LAN. 77. saslauthd: Use the SASL authentication daemon. 78. sendmail: The sendmail Daemon of the mail server. 79. smb: Samba file sharing/printing service daemon. 80. snmpd: The local Simple Network Management daemon. 81. squid: The squid daemon of the proxy server. 82. sshd: OpenSSH server daemon. Secure Shell Protocol enables Secure remote host management. 83. smartd: Self Monitor Analysis and Reporting Technology System, which monitors whether your hard disk is faulty. 84. syslog: a script that enables syslog and klogd system logs to wait for processes during system boot. 85. time: The daemon obtains the time and date from the remote host and uses the TCP protocol. 86. time-udp: This daemon obtains the time and date from the remote host and uses UDP protocol. 87. tux: run the Daemon of the apache server in the Linux kernel. 88. vsftpd: the Daemon of the vsftpd server. 89. vncserver: VNC (Virtual Network Computing, Virtual Network Computing), which provides a lightweight protocol for displaying the entire desktop of a remote computer on a local system. 90. xfs: X Window Server Daemon, which provides a font set for local and remote X servers. 91. xinetd: supports core daemon processes of multiple network services. 92. ypbind: activates the ypbind service process for the NIS (network information system) client. 93. yppasswdd: the NIS password server daemon. 94. ypserv: the NIS master server daemon. 95. yum: automatically upgrades the RPM operating system and manages the software package daemon. **************************************** **************************************** * *************************** To summarize: as mentioned in this section, the administrator must understand the necessity of the server. you can use the shell script to deploy the example: 1 #/bin/bash2CloseNotneedService () {3 Services = "smartd vsftpd dhcpd cmdch" 4 for ServiceName in $ Services5 do6 chkconfig $ ServiceName off7/etc/init. d/$ ServiceName stop8 done9}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.