此内容没有您所选择的语言版本。
Chapter 2. Stopping and starting MicroShift
You can stop or start MicroShift for a variety of reasons, including a fresh installation, adding optional RPM packages, and troubleshooting.
2.1. Starting the MicroShift service 复制链接链接已复制到粘贴板!
Use the following procedure to start the MicroShift service.
Prerequisites
- You have installed MicroShift from an RPM package.
Procedure
As a root user, start the MicroShift service by entering the following command:
$ sudo systemctl start microshiftOptional: To configure your Red Hat Enterprise Linux (RHEL) machine to start MicroShift when your machine starts, enter the following command:
$ sudo systemctl enable microshiftOptional: To disable MicroShift from automatically starting when your machine starts, enter the following command:
$ sudo systemctl disable microshiftNoteThe first time that the MicroShift service starts, it downloads and initializes the container images for MicroShift. As a result, it can take several minutes for MicroShift to start the first time that the service is deployed. Boot time is reduced for subsequent starts of the MicroShift service.
2.2. Stopping the MicroShift service 复制链接链接已复制到粘贴板!
To stop the MicroShift service, you can run systemctl stop microshift. You can also stop any deployed workloads by running systemctl stop kubepods.slice.
Prerequisites
- The MicroShift service is running.
Procedure
Enter the following command to stop the MicroShift service:
$ sudo systemctl stop microshiftWorkloads deployed on MicroShift might continue running even after the MicroShift service has been stopped. Enter the following command to display running workloads:
$ sudo crictl ps -aEnter the following commands to stop the deployed workloads:
$ sudo systemctl stop kubepods.slice