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.