Today, I know that I am a person who has been poisoned by Red Hat!

Source: Internet
Author: User

The story is about whether to set MySQL to run automatically after it is installed in Ubuntu...

1. My Ubuntu version:

[Xport @ ubuntu ~] $ Uname-
Linux ubuntu 2.6.17-10-generic #2 SMP Tue Dec 5 22:28:26 UTC 2006 i686 GNU/Linux

2. Set the MySQL service to automatic and then cancel Automatic operation. Sample/etc/rc ?. D directory changes:


/* Set the MySQL service to run automatically */
[Xport @ ubuntu ~] $ Ls-l/etc/rc ?. D/* mysql *>./Temp/mysql-service-enable.txt
/* Cancel the automatic running of MySQL Service */
[Xport @ ubuntu ~] $ Ls-l/etc/rc ?. D/* mysql *>./Temp/mysql-service-disable.txt
/* Compare the content of the two files */
[Xport @ ubuntu ~] $ Diff./Temp/mysql-service-enable.txt./Temp/mysql-service-disable.txt
7, 9d6
<Lrwxrwxrwx 1 Root 15/etc/rc2.d/s50mysql-> ../init. d/MySQL
<Lrwxrwxrwx 1 Root 19/etc/rc2.d/S50mysql-ndb-> ../init. d/MySQL-NDB
<Lrwxrwxrwx 1 Root 23/etc/rc2.d/S50mysql-ndb-mgm-> ../init. d/MySQL-NDB-MGM

3. The directory/etc/rc2.d is changed. Is the default runlevel of Ubuntu 2?

Check it out ...!


[Xport @ Ubuntu ~] $/Sbin/runlevel
N 2

4. What I know about runlevel is as follows (Red Hat has been poisoned too deeply by a joke ):

  • 0-Halt
  • 1-Single
  • 2-Not used/User definable
  • 3-Full multi-user NO display manager
  • 4-Not used/User definable
  • 5-Full multi-user with display manager (GUI)
  • 6-Reboot

I posted a post and asked about Ubuntu to know that Debian/Ubuntu has been started by default with runlevel 2.
The specific definition is as follows:

  • 0-Halt
  • 1-Single
  • 2-Full multi-user with display manager (GUI)
  • 3-Full multi-user with display manager (GUI)
  • 4-Full multi-user with display manager (GUI)
  • 5-Full multi-user with display manager (GUI)
  • 6-Reboot

Debian/Ubuntu 2 ~ There is no difference in runlevel 5!

Finally, I can only lament the benefits of the standard! Openness is a good thing, but excessive freedom brings a lot of confusion to users. users need to spend more time to understand, maybe this "Wheel" was not re-invented, but he used a new "tire!

Therefore, it is best to remember:

Every distribution seems to have a different boot-up method.

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.