CentOS System Service start and stop

Source: Internet
Author: User

1. view the chkconfig-list service started in Linux to query all the currently running services. query the current status of the atd service. 2. stop all services and stop starting the next time the system starts, as shown in the following figure: chkconfig -- levels 12345 NetworkManager off. If you want to view the currently running services, use the following statement to filter chkconfig -- list | grep on3. if you only want the current setting status to be valid, it will not take effect after the system restarts, you can run the following command to stop the service sshd stop. In addition, it is a complete description of the service in Linux and whether it needs to be started.The service name function is enabled by default. It is recommended that NetworkManager enable the Service x to automatically connect to the network without the advanced acpid configuration and power management interface ■ ○, advanced Power Management anacron a service that runs tasks automatically ■ x is more advanced than crond, and apmd advanced power management (supporting old hardware) is not needed ■ x, either apmdacpid or atd is similar to cron's task scheduling system ■ x is enabled on demand. Generally, cronauditd kernel audit daemon ■ x is not required, seliux-related autofs optical drive NFSSMB automatic loading/unloading function ■ △ enabled as needed

Service name function is enabled by default. Recommendation description avahi-daemon is used to find machines based on zeroconf protocol. ■ x can be used without avahi-dnsconfdAvahi DNS demox or bluetooth wireless communication. ■ x can be used without clvmdCluster LVM ■ x related cman ■ x cluster related conmanremote schedulles managed by conmanx can adjust the cpu frequency without cpuspeed, this may cause time problems ■ x can be used without crond or scheduled tasks ■ ○ we strongly recommend that you enable the cups printing service ■ x can be used without the dnsmasqdns cache Server ■ x can be used without the dundsupports dialnetworkup ing over bluetooth ■ x no setup tool in the early stage after firstboot system is installed ■ x does not need gfsglobal file system ■ x cluster-related gfs2 ■ x cluster-related gpmconsole environment mouse support ■ ○ We recommend that you enable haldaemon for automatic hardware detection and mounting. ■ ○ we recommend that you enable (depending on the messagebus Service) hidd Bluetooth H. i. d. server ■ x does not need httpdapache ■ △ enable ibmasmibm Hardware Management as needed ■ x does not need ip6tablesipv6 firewall ■ x does not need ipmi smart platform management interface to monitor system conditions ■ x does not need iptablesipv4 firewall ■ △ enable On-Demand ipvsadm Cluster load distribution-related ■ x cluster-related irda infrared communication ■ x can be used without irqbalancecpu Load Balancing ■ ○ cpu cores above multiple cores need to be dumped when the kdump kernel crashes ■ x can be used without the kudzu Hardware change detection program ■ x can be used without the lm_sensorscpu temperature detection tool (?) ■ X can be used without lucicluster services ■ x cluster-related lvm2-monitorlvm ■ x cluster-related mcstrans used to check the context when Selinux is enabled ■ x can be used to check the context without Selinux-related mdmonitor soft Raid management tools ■ △ Press mdmpd soft Raid management and monitoring tools must be enabled ■ △ messagebus is enabled on demand to transmit messages between processes in each system ■ ○ microcode_ctl is required for enabling haldaemon ■ x without modclusterdcluster ■ x without multipathd monitoring multi-path device ■ x can enable namedbind9 DNS server on demand without mysqldmysql database △ enable netconsole on demand initialize network control log ■ x can install and uninstall NFS, SAMBA, and NCP network files without netfs system ■ x can be monitored without netplugd Nic wizard process Nic hot swapping ■ x can be monitored without network services ■ ○ enable nfsNFS Network File System ■ x No nfslockNFS File Lock daemon ■ x No nscdname cache, name service cache daemon ■ x No, named-related ntpd Network/system clock synchronization service ■ x does not need oddjobd or D-Bus. ■ x does not need openais or Cluster, similar to ■ △cluster-related pandBlueZ Bluetooth PAN ■ x, bluetooth-related pcscd smart card and card reader support ■ x does not need piranha-gui and cluster-related ■ x cluster-related portmapNFS/NIS daemon for RPC dynamic port allocation ■ x does not need, NFS-related psacct process audit daemon ■ x does not need to use pulseLVS LVM-related x cluster-related qdiskd and cluster-related ■ x cluster-related rdisc to implement the ICMP Router Discovery Protocol on the client ■ x only one vro can be used readah Ead_early pre-loads specific applications to the memory to provide performance ■ ○ enable readahead_later the same as above ■ x system default settings restorecondSelinux associated projects ■ x can not, selinux-phase magnetic rgmanager and cluster-related ■ x cluster-related ricci and cluster-related ■ x cluster-related rpcgssdNFS-optional, NFS-related rpcidmapdRPC name to UID/GID mapper ■ x-optional, NFS-related rpcsvcgssdNFS ■ x can be used, NFS-related saslauthd uses the SASL authentication daemon, sendmail-related ■ x can be used, sendmail-related scsi_reserveSCSI Persistent Reservations Cluster-related x Cluster-related sendmailmail demo ■ △ enabled on demand, Sendmail-related setroubleshoot view selin Ux log program, Selinux-related ■ x can be used, Selinux-related smartd hard disk Automatic Detection daemon ■ ○ enable smbSamba File Server ■ △ enable snmpdsnmp on demand ■ △enable on demand, snmptrapdsnmp is required for time synchronization between clusters ■ x is enabled on demand, time synchronization between clusters requires the sshdssh service ■ ○ Enable syslog system logon and log necessary programs ■ ○ enable tog-related to the pegasus cluster ■ x does not need to be used, cluster-related vncservervnc Remote Control △ enable part of wdaemonx web mail system World2.1 on demand, which is used to provide HTTP interface Clientx and allows Unix systems to use Windows NT user account information without using winbind, samba-related x can be used without wpa_supplicantwifi-wpa authentication △ enable xfsX Window-type server daemon ■ x can be used without ypbindNetwork Information Service (NIS) Client ■ △ enable yum-updatesdyum automatic upgrade as needed ■ △ Automatic Upgrade. Sometimes automatic upgrades may cause problems, especially when using php.For example, you can write services that do not need to be started into a script, run the chkconfig -- levels 0123456 NetworkManager offchkconfig -- levels 0123456 anacron restart -- levels 0123456 auditd restart -- levels 0123456 avahi-daemon offchkconfig -- levels 0123456 bluetooth worker -- levels 0123456 clvmd release -- levels 0123456 cman release -- levels 0123456 cups release -- levels 0123456 gfs release -- levels 0123456 gfs2 release -- levels 0123456 hidd release -- levels 0123456 httpd offchkconfig -- levels 0123456 iptables release -- levels 0123456 zookeeper -- levels 0123456 ipvsadm offchkconfig -- levels 0123456 luci plugin -- levels 0123456 mcstrans plugin -- levels 0123456 pand plugin -- levels 0123456 zookeeper -- levels 0123456 ricci plugin -- levels 0123456 rmanager offchkconfig -- levels saslauthd offchkconfig -- levels 0123456 sendmail offchkconfig -- levels 0123456 smb offchkconfig -- levels 0123456 snmp offchkconfig -- levels 0123456 route offchkconfig -- levels 0123456 tog-pegasus offchkconfig -- levels 0123456 off

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.