了解如何安装 sanlock Debian 10 通过本教程。 sanlock 是共享存储锁管理器
介绍
在本教程中我们学习如何安装 sanlock
在 Debian 10.
什么是 sanlock
桑洛克是:
Sanlock 确保单个磁盘不能同时被网络中任何主机上多个正在运行的虚拟机使用。
该包包含二进制文件和私有共享库。
有三种安装方法 sanlock
在 Debian 10.我们可以使用 apt-get
, apt
和 aptitude
。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。
使用 apt-get 安装 sanlock
更新 apt 数据库 apt-get
使用以下命令。
更新apt数据库后,我们可以安装 sanlock
使用 apt-get
通过运行以下命令:
sudo apt-get -y install sanlock
使用 apt 安装 sanlock
更新 apt 数据库 apt
使用以下命令。
更新apt数据库后,我们可以安装 sanlock
使用 apt
通过运行以下命令:
sudo apt -y install sanlock
使用 aptitude 安装 sanlock
如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Debian。 更新 apt 数据库 aptitude
使用以下命令。
更新apt数据库后,我们可以安装 sanlock
使用 aptitude
通过运行以下命令:
sudo aptitude -y install sanlock
如何卸载 sanlock Debian 10
仅卸载 sanlock
打包我们可以使用以下命令:
sudo apt-get remove sanlock
卸载 sanlock 及其依赖项
卸载 sanlock
及其不再需要的依赖项 Debian 10、我们可以使用下面的命令:
sudo apt-get -y autoremove sanlock
删除 sanlock 配置和数据
去除 sanlock
配置和数据来自 Debian 10.我们可以使用如下命令:
sudo apt-get -y purge sanlock
删除 sanlock 配置、数据及其所有依赖项
我们可以使用下面的命令来删除 sanlock
配置、数据及其所有依赖项,我们可以使用以下命令:
sudo apt-get -y autoremove --purge sanlock
依赖关系
sanlock 具有以下依赖项:
参考
概括
在本教程中我们学习如何安装 sanlock
封装在 Debian 10. 使用不同的包管理工具: apt
, apt-get
和 aptitude
。