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
<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
4. What I know about runlevel is as follows (Red Hat has been poisoned too deeply by a joke ):
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:
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: