First, the setup order
There is a fairly useful system parameter setting tool in Red Hat Linux, which is a familiar "setup". ≌ were takezo the ┝ of the swing of the sword asleep cut the badger Jian Jue? The setting parameter in Flurried/etc/sysconfig to him to make the graphical interface is! Basically, if you are familiar with the system, then you do not need to use the setup is also OK! Directly modify the things under the/etc/sysconfig can be??? br/> Setup:
Let's talk about the use of Setup first! Enter setup as root at command line.
Second, the System starts service tool: NTSYSV, service, Chkconfig, Init,
System Boot Service tools: NTSYSV, Service, Chkconfig, Init,
Everyone must have: "Gee!" Some of my services start on the boot, how to start? "Doubt it!? As soon as I started playing Linux, I was interested in this problem! Hey! End to finally know, the original boot can be carried out with your/ETC/RC.D/INIT.D inside the service set items, such as I want to start Apache immediately, then Apache startup script called httpd, so to start he will need:
/ETC/RC.D/INIT.D/HTTPD start
In addition, a boot is immediately set in the/etc/rc.d/rc[0-6].d of the total seven directory data! We can, of course, link files manually to fit the features we need, but we can do it through Linux for our setup tools.
Ntsysv
[Root @test/root]# ntsysv [--level run-level]
Parameter description:
--level: You can set up each Run-level startup Project
Example:
[ Root @test/root]# ntsysv <== under the current Run-level setting
[root @test/root]# ntsysv--level 5 <== under different run-level Settings to modify
Description:
This tool is quite interesting! He can set the boot time after the start of the project! That's where System Services is set up in Setup! The difference is that this individual program can also perform a startup project that is not currently run-level. If you go back to the "boot process" that you mentioned earlier, you'll find that when you start a project, you need to get inittab to perform different scripts in each/ETC/RC.D/RC#.D, where the Run-level is 3 and 5 (Text and graphics!). )。 Then NTSYSV can be based on the following:
/etc/xinetd.d
/ETC/RC.D/INIT.D
The scripts in the two folders, and then cooperate with/ETC/RC.D/RC#.D inside scrip TS to set up the link file!
Service
[Root @test/root]# Service [service name] [Start|stop|restart]
Parameter description:
Service Name: it must actually exist/ETC/RC.D/INIT.D this directory.
Start|stop.. : Basically, this is related to the starting form allowed by/etc/rc.d/init.d/service_name!
Example:
[Root @test/root]# service xinetd restart <== reboot xinetd
[Root @test/root]# service sendmail start <== to start SendMail!
Description
This program is even simpler! Basically, he's just a script! He will take the/ETC/INIT.D (actually is/ETC/RC.D/INIT.D) the thing to take out, then carries on the analysis! For example, in the above example, [service xinetd restart] = [/etc/rc.d/init.d/xinetd Restart] These two are exactly the same thing Yo! It's just that the service simplifies him! In addition, the NTSYSV and the following to explain the chkconfig are "wait until the next boot" mode, then there is no way to start immediately? Oh! That's the service job! Service can be launched directly to the services yo!
Chkconfig
[Root @test/root]# chkconfig [--level levels] [--list|add|del] [service name]
Parameter description:
--level: The same description can be set different run-level of the pound!
--list: Do you want to list the name of the kit in Run-level case?
--add: Add a service_name to boot at boot time;
--del: Remove a boot-initiated service!
Service Name: it must actually exist/ETC/RC.D/INIT.D this directory.
Example:
[Root @test/root]# chkconfig--list sendmail <== lists the launch of SendMail!
SendMail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
It says that SendMail is off when Run-level 0, 1, 6, and 2,3,4,5 is on!
[Root @test/root]# chkconfig <== lists the execution services owned by the system, and lists whether to boot up or not?
Keytable 0:off 1:on 2:on 3:on 4:on 5:on 6:off
ATD 0:off 1:off 2:off 3:on 4:on 5:on 6:off
Kdcrotate 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Syslog 0:off 1:off 2:on 3:on 4:on 5:on
GPM 0:off 1:off 2:on 3:off 4:on 5:on 6:off
Kudzu 0:off 1:off 2:off 3:off 4:on 5:on 6:off
SendMail 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Netfs 0:off 1:off 2:off 3:off 4:on 5:on 6:off
Network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Random 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Rawdevices 0:off 1:off 2:off 3:off 4:on 5:on 6:off
APMD 0:off 1:off 2:on 3:off 4:on 5:on 6:off
IPChains 0:off 1:off 2:on 3:off 4:on 5:on 6:off
Iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Anacron 0:off 1:off 2:on 3:off 4:on 5:on 6:off
XINETD Based services:
Chargen-udp:off
Chargen:off
Daytime-udp:off
Daytime:off
Echo-udp:off
Echo:off
Time-udp:off
[Root @test/root]# chkconfig--add gpm <== increase gpm This one starts at boot time!
Description
Chkconfig This program can link the executable service inside the/etc/rc.d/init.d/with the related executable service within/ETC/XINETD.D, to the current run-level, or you can define your Run-level Give your service a boot when you turn it on? but please note yo! Service is immediately let you start the services immediately, but Chkconfig is only set a service in the boot time can be activated, not the same, please note!
Init
[Root @test/root]# init [0-6]
Parameter description:
Example:
[Root @test/root]# init 5 <== to graphics interface login!
Description
Said finished/ETC/RC.D/RC[0-6].D and/ETC/RC.D/INIT.D after the execution, hehe! How do I switch? Are you sure you want to modify the Inittab file?! In fact, do not need to directly use the INIT program on the line!