In redhat, how do I set whether to start a service?
Source: Internet
Author: User
In redhat, how to set whether to enable a service-Linux Enterprise Application-Linux server application information is as follows. In redhat, how do I set whether to start a service?
Method 1: You can use the linuxconf graphical interface to determine whether to start a service when the system starts.
Method 2: Use/usr/sbin/ntsysv to define
Method 3: run the chkconfig command to determine whether a server process is running at that running level. If you want
Run the following command to automatically start the httpd server at the 345 running level:
Chkconfig -- level 345 httpd on
To disable the service:
Chkconfig -- level 345 httpd off
Method 4: directly modify the files in the/etc/rc. d/rc *. d directory. Here * Corresponds to the running level of the server you want to run. For example, if you want to start the named service of the Domain Name Server under runtime Level 3, name K45named as S80named:
Move K45named S80named
That is, change K to S and the number after K to a proper number.
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