Linux daemon & amp; mysqld

Source: Internet
Author: User

Linux daemon & mysqld is not strictly speaking. daemon is a service and can be divided into two categories: ① stand alone ② super daemon is not strictly speaking, the corresponding port of the service, that .... then, daemon corresponds to the port ...? We can query their ing from/etc/services: [plain]/* The first column is the name of daemon, and the second column is port */[root @ odd ~] # Cat/etc/services | grep-I -- color = auto 'mysql' mysql 3306/tcp # mysql MySQL mysql 3306/udp # MySQL mysql-cluster 1186/tcp # MySQL Cluster Manager mysql -cluster 1186/udp # MySQL Cluster Manager mysql-im 2273/tcp # MySQL Instance Manager mysql-im 2273/udp # the main differences between MySQL Instance Manager and MySQL Instance Manager are: ● stand alone: always open connection ● super daemon: Connection established only when a request is made [plain] [mysql @ odd ~] $ Mysqld_safe & [1] 5230 [mysql @ odd ~] $130610 14:40:14 mysqld_safe Logging to '/home/mysql/log/alert. log '. 130610 14:40:14 mysqld_safe Starting mysqld daemon with databases from/home/mysql/data [root @ odd ~] # Netstat-lntp | grep: 3306 tcp 0 0: 3306 ::: * LISTEN 5550/mysqld. Therefore, it can be determined that mysqld belongs to stand alone. The mysqld STARTUP script is in/etc/init. d/directory, PS: in fact, most of the daemon startup scripts are here. The mysqld PID file is generally in the/var/run/directory. lower

Related Article

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.