安装nfs-utils rpcbind软件包并启动该服务指令
时间: 2023-08-06 14:05:01 浏览: 201
Linux(CentOS 7)的nfs-utils客户端的安装包
安装nfs-utils和rpcbind软件包的指令可以根据不同的Linux发行版来进行安装,以下是常见的几种发行版的指令:
- Ubuntu/Debian:
```
sudo apt-get update
sudo apt-get install nfs-common nfs-kernel-server rpcbind
```
- CentOS/RHEL:
```
sudo yum install nfs-utils rpcbind
sudo systemctl enable rpcbind.service
sudo systemctl start rpcbind.service
sudo systemctl enable nfs-server.service
sudo systemctl start nfs-server.service
```
启动nfs-utils和rpcbind服务的指令如下:
- Ubuntu/Debian:
```
sudo systemctl start nfs-common.service
sudo systemctl start rpcbind.service
```
- CentOS/RHEL:
```
sudo systemctl start nfs-utils.service
sudo systemctl start rpcbind.service
```
请注意,以上指令需要在管理员权限下执行。
阅读全文