linux chkconfig�����������÷�����
chkconfig provides a simple command-line tool for maintaining the /etc/rc[0-6].d directory hierarchy by
relieving system administrators of the task of directly manipulating the numerous symbolic links in those
directories.
����˵����chkconfig������Ҫ�������£�������ֹͣ���Ͳ�ѯϵͳ���������м���Ϣ������chkconfig���������Զ���ֹ��һ����������ֻ�Ǽĸı��˷������ӡ�
usage: chkconfig --list [name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
�������chkconfig [--add][--del][--list][ϵͳ����] �� chkconfig [--level <�ȼ�����>][ϵͳ����][on/off/reset]
����˵��������Red Hat��˾��ѭGPL�����������ij��������ɲ�ѯ����ϵͳ��ÿһ��ִ�еȼ��л�ִ����Щϵͳ���������а������ೣפ������
linux os ������������Ϊ����7���ȼ�:
0:����(�벻Ҫ�л����˵ȼ�)
1:����ʹ����ģʽ�����ֽ���
2:����ʹ����ģʽ�����ֽ���,���������絵��ϵͳ(NFS)����
3:����ʹ����ģʽ�����ֽ���,�������絵��ϵͳ(NFS)����
4:ijЩ���а���linuxʹ�ô˵ȼ�����x windows system
5:ijЩ���а���linuxʹ�ô˵ȼ�����x windows system
6:��������
��������
--add ������ָ����ϵͳ����
--del ɾ����ָ����ϵͳ����
--level ָ����ϵͳ����Ҫ���ĸ�ִ�еȼ��п������ر�
--list �г���ǰ�ɴ�chkconfigָ������������ϵͳ�����͵ȼ�����
on/off/reset ��ָ����ִ�еǼ�,����/�ر�/���ø�ϵͳ����
1��chkconfig ����Ҳ�������������ͽ���������chkconfig --list ������ʾϵͳ�����б����Լ���Щ���������м���0��6���ѱ�������on������ֹͣ��off����
chkconfig --list
chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
2��chkconfig ������������ijһ������ijһָ�������м����ڱ��������DZ�ͣ�ˡ�Ʃ�磬Ҫ�����м���3��4��5��ͣ�� nscd ������ʹ�����������
chkconfig --level 345 nscd off
3���� xinetd �����ķ����������� chkconfig Ӱ�졣Ʃ�磬���� xinetd �����У�finger �����ã���ôִ���� chkconfig finger on ��������finger �Ͳ����ֹ����������� xinetd �����������á������������ĸı���ʹ�� chkconfig ֮��������Ч������ʹ��service servicename start/stop/restart��������������
���
chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig [--level levels] name <on|off|reset>
chkconfig [--level levels] name
chkconfig û�в�������ʱ����ʾ�÷����������Ϸ���������ô�ͼ������������Ƿ��ڵ�ǰ���м������������ǣ�����true������false�������ڷ���������ָ����on��off����reset����ôchkconfi ���ı�ָ��������������Ϣ��on��off�ֱ�ָ������������ֹͣ��resetָ���÷�����������Ϣ�������������ij�ʼ���ű�ָ����ʲô��on��off���أ�ϵͳĬ��ֻ�����м�3��4��5��Ч������reset���Զ��������м���Ч��
--levelѡ������ָ��Ҫ�鿴�����м�����һ���ǵ�ǰ���м���
��Ҫ˵�����ǣ�����ÿ�����м���ֻ����һ�������ű�����ֹͣ�ű������л����м�ʱ��init�������������Ѿ������ķ�����Ҳ�����ٴ�ȥֹͣ�Ѿ�ֹͣ�ķ�����
chkconfig --list ����ʾ�������м�ϵͳ����������״̬��Ϣ��on��off��������ָ����name����ôֻ��ʾָ���ķ����ڲ�ͬ���м���״̬��
chkconfig --add name������һ���µķ�����chkconfigȷ��ÿ�����м���һ������(S)����ɱ��(K)���ڡ�����ȱ�٣�������ȱʡ��init�ű��Զ�������
chkconfig --del name��ɾ�����������ط������Ӵ�/etc/rc[0-6].dɾ����
chkconfig [--level levels] name <on|off|reset>������ijһ������ָ�������м��DZ�������ֹͣ�������á����磬Ҫ��3��4��5���м�ֹͣnfs���������������£�
chkconfig --level 345 nfs off
���м��ļ���
ÿ����chkconfig�����ķ�����Ҫ�ڶ�Ӧ��init.d�µĽű��������л��߸����е�ע�͡���һ�и���chkconfigȱʡ���������м��Լ�������ֹͣ�����ȼ�������ij����ȱʡ�����κ����м���������ôʹ��- �������м����ڶ��жԷ�������������������/ ����ע�͡�
���磬random.init�������У�
# chkconfig: 2345 20 80
# description: Saves and restores system entropy pool for /
# higher quality random number generation.
���ӽ���һ��Linuxϵͳ�����м��ĸ��
Linux���ж������м��������ľ��Ƕ��û���2��3��4��5 ���ܶ���֪��5������X-Windows�ļ��𣬶�0���ǹػ��ˡ����м��ĸı�����ͨ��init�������л������磬������Ҫά��ϵͳ���뵥�û�״̬����ô������ʹ��init1���л�����Linux�����м����л������У�ϵͳ���Զ�Ѱ�Ҷ�Ӧ���м���Ŀ¼/etc/rc[0-6].d�µ�K��S��ͷ���ļ���������������˳����ִ����Щ�ű�������Щ�ű���ά�����Ǻܷ�����һ�����飬Linux�ṩ��chkconfig�����������ºͲ�ѯ��ͬ���м��ϵ�ϵͳ������
����:
1.�鿴�ڸ��ֲ�ͬ��ִ�еȼ���,����������״��:
$chkconfig --list
2.�г�ϵͳ����vsftpd�ڸ���ִ�еȼ�������������
$chkconfig --list vsftpd
3.��ִ�еȼ�3,5ʱ���ر�vsftpdϵͳ������
$chkconfig --level 35 vsftpd off
4.��ִ�еȼ�2��3��5ʱ������ vsftpdϵͳ������
$chkconfig --level 235 vsftpd on
5.�ر�һЩ�Լ�����Ҫ�ķ���->
����û�д�ӡ����
chkconfig --level 235 cups off
����û�о�������
chkconfig --level 235 smb off
��������ҪԶ���û���¼�ģ�
chkconfig --level 235 sshd off
��������Ҫ��ʱ�����ģ�
chkconfig --level 235 crond off
��������Ҫ������Ӳ���ģ�
chkconfig --level 235 kudzu off
ʹ�÷�����
chkconfig --list #�г����е�ϵͳ����
chkconfig --add httpd #����httpd����
chkconfig --del httpd #ɾ��httpd����
chkconfig --level httpd 2345 on #����httpd�����м���Ϊ2��3��4��5�������¶���on����������״̬
chkconfig --list #�г�ϵͳ���еķ�����������
chkconfig --list mysqld #�г�mysqld������������
chkconfig --level 35 mysqld on #�趨mysqld�ڵȼ�3��5Ϊ�������з�����--level 35��ʾ����ֻ�ڵȼ�3��5ִ�У�on��ʾ������off��ʾ�ر�
chkconfig mysqld on #�趨mysqld�ڸ��ȼ�Ϊon�������ȼ�������2��3��4��5�ȼ�
��������һ��������
1.�����ű�����������/etc/ini.d/Ŀ¼�£�
2.chkconfig --add servicename
��chkconfig���߷����б������Ӵ˷���ʱ�����ᱻ��/etc/rc.d/rcN.d�и���K/S�����ˣ�
3.chkconfig --level 35 mysqld on
�ķ�����Ĭ�������ȼ���
- ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
- �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����
- �������е���ɫ
- �������ж�IP��ַ��A��B���C��
- ������ϵ��Ц�� (ʷ����ȫ��
- ��Google���������ŵ���ͨv4.0
- ���ٶ�ͳ��URL��hm������utm�����Ķ�Ӧ��ϵ
- ��ƻ������MACbook Air���ݼ���ȫ
- ��Linux��ʹ��host��dig��nslookup��ѯDNS
- �����Լ���VPS�Google��������
- ���������ԡ���װ Windows XP ����ϵͳ��ͼ��ȫ����
- ��С�ڴ�VPS֮Nginx+PHP-fpm�߸����Ż���ѹ�����Է���
- ������������������̸�����ɶ��ر�
- ��������������ѡʳƷ����2020�ļ��ȵ�Ͷ�ʲ��Ժ���������
- �����ڵ�����֤50���ƴ�50����ָ֤�������Ĺ���
- ����֤50����Щ��Ʊ_��֤50Ȩ����������
- ������300����֤50����֤500��ָ��2019���ڶ��ζ��ڵ���������
- ������300��ֵ/�ɳ�ָ�����Ʒ����������й�ƽ��Ȩ���½�
- ����ָ֤��������֤50��ָ��������
- ����ָ֤��������֤����ָ��������
- ����ָ֤��������֤100ָ��������
- ����ָ֤����������300ָ��������