/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