1.4. Starting and stopping MicroShift
After installing all of the RPM packages you need, learn to start and stop the MicroShift service.
1.4.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 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 microshift注意The 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.
1.4.2. Stopping the MicroShift service 复制链接链接已复制到粘贴板!
Use the following procedure to stop the MicroShift service.
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