Linux-Service Basics

Source: Internet
Author: User

/etc/init.d/sendmail Start                   # Start service   /etc/init.d/sendmail Stop                    # Close service /etc/init.d/  SendMail Status                  # View the current status of the service
echo Content | /bin/mail-s "title" Inbox-F sender       # Send mail ' echo ' content "|iconv-f utf8-t gbk '" |/bin/mail-s "' echo ' title |iconv-f utf8-t GBK ' inbox     # resolves messages garbled 
/date/mysql/bin/mysqld_safe--user=mysql &   # start MySQL background run     /etc/rc.d/rc.local                        # boot start execution  can be used for boot    -up scripts /etc/rc.d/rc3.d/s55sshd                      # boot up and shut down service connection    # s Power on start  K shutdown Stop  55-level followed by service name     -s-f/date/ httpd/bin/apachectl/etc/rc.d/rc3.d/s15httpd   # Connect the launcher script to the boot directory    


./BIN/HTTPD-M                               # view httpd load Module httpd-t-D dump_modules                     # RPM Package httpd View loading module
/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg # detecting Nagios configuration files

Ipvsadm-Ln                                  -C                                   # lvs purge rule xm List                                      # View the list of Xen virtual hosts    
Virsh # Virtualization (XEN\KVM) management tool Yum groupinstallVirtual *

Chkconfig

        chkconfig service nameon |off| Set               # Set non-standalone service boot        status    httpd   off       # Let the service not start        automatically     httpd        on # Let service auto start 35 refers to the        runlevel --list # to                         see the startup status        of all services --list |  grep httpd             # View the startup status of a service        chkconfig–-list [service name]              # View the status of a service

Linux-Service Basics

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.