RHCE Study Notes (8) service Management

Source: Internet
Author: User

RHEL7 Service Management is also a relatively simple content, mainly through the SYSTEMCTL command on the service to start, close, query and other operations.

It is worth mentioning that before the RHEL6 version, is the service XXX start/stop/status command to perform the operation of services, which still works in RHEL7, but only the most basic functions can be performed


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A3/wKioL1ShCZmQfGf1AACTijMg7K0557.jpg "title=" 0.JPG " alt= "Wkiol1shczmqfgf1aactijmg7k0557.jpg"/>


For example, stop the SSHD service, view the status, open the SSHD service


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A3/wKioL1ShCXDx8xJhAALgZI7nX74997.jpg "title=" 00.JPG "alt=" Wkiol1shcxdx8xjhaalgzi7nx74997.jpg "/>


Similar commands can be implemented with SYSTEMCTL.

View status

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A3/wKioL1ShCNHhIdCpAADYpVcjxoA571.jpg "style=" float: none; "title=" 1.JPG "alt=" Wkiol1shcnhhidcpaadypvcjxoa571.jpg "/>

Stop Service

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A6/wKiom1ShCCLQ6V92AAAg4itw6D4422.jpg "style=" float: none; "title=" 2.JPG "alt=" Wkiom1shcclq6v92aaag4itw6d4422.jpg "/>


Status indicates dead, service has stopped

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A3/wKioL1ShCNuRzghHAAC96RM2p-s674.jpg "style=" float: none; "title=" 3.JPG "alt=" Wkiol1shcnurzghhaac96rm2p-s674.jpg "/>


Can also disable service, disable the automatic operation of the boot


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A6/wKiom1ShCC6yx3a_AAAruEYqZiw124.jpg "style=" float: none; "title=" 4.JPG "alt=" Wkiom1shcc6yx3a_aaarueyqziw124.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A6/wKiom1ShCDHA9FbBAAB_-_dePtA516.jpg "style=" float: none; "title=" 5.JPG "alt=" Wkiom1shcdha9fbbaab_-_depta516.jpg "/>


Boot auto-load and start the service

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A3/wKioL1ShCO6CsQYOAACIatqe8f4120.jpg "style=" float: none; "title=" 6.JPG "alt=" Wkiol1shco6csqyoaaciatqe8f4120.jpg "/>


The service can be disabled through mask so that once the service is terminated, it cannot be restarted and must be de-disabled by unmask to run the service using SYSTEMCTL start sshd


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/57/A6/wKiom1ShCEjBwR56AAIjdnCqYfo039.jpg "style=" float: none; "title=" 7.JPG "alt=" Wkiom1shcejbwr56aaijdncqyfo039.jpg "/>


In addition to the basic functionality mentioned above, SYSTEMCTL can also query the currently loaded module unit, noting that the suffix service is the one we need to manage


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/57/A3/wKioL1ShCQCBKvQoAACNQniClOs291.jpg "style=" float: none; "title=" 8.JPG "alt=" Wkiol1shcqcbkvqoaacnqniclos291.jpg "/>


You can filter out other types of cells by type

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A3/wKioL1ShCQrD6MpNAAD4SanMkKc721.jpg "style=" float: none; "title=" 9.JPG "alt=" Wkiol1shcqrd6mpnaad4sanmkkc721.jpg "/>


If we make changes to the relevant service configuration, we must restart the service to take effect, such as to restart the Network service after modifying the IP address

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/57/A6/wKiom1ShCnyjllFRAAAiIa3NW1k643.jpg "title=" 10.JPG "alt=" Wkiom1shcnyjllfraaaiia3nw1k643.jpg "/>



This article is from the "Mapo Tofu" blog, please be sure to keep this source http://beanxyz.blog.51cto.com/5570417/1597317

RHCE Study Notes (8) service Management

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.