The service command is used to manage the service commands in the Linux operating system-Linux general technology-Linux technology and application information. The following is a detailed description. 1. Declaration: This command is not available in all linux releases. Mainly in redhat, fedora, mandriva, and centos.
2. This command is located in the/sbin directory. You can use the file command to view the command and find it a script command.
3. The analysis script shows that the function of this command is to find the corresponding service in the/etc/init. d directory and perform operations such as enabling and disabling the command.
4. Enable httpd server: service httpd start
You can replace 'start' with 'restart' to indicate a restart, 'stop' to indicate a shutdown, and 'reload' to re-load the configuration.
5. Disable mysql Server: service mysqld stop
6. We strongly recommend that you replace the service command with/etc/init. d/mysqld stop
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