centos7 arp: command not found
时间: 2023-06-22 12:46:35 浏览: 78
如果在 CentOS 7 中输入 `arp` 命令时提示 `command not found`,可能是因为系统中没有安装 `net-tools` 包,`arp` 命令属于 `net-tools` 包的一部分。
可以通过以下命令来安装 `net-tools` 包:
```
sudo yum install net-tools
```
安装完成后,再次输入 `arp -a` 命令即可查看 ARP 缓存表。
相关问题
centos7 sudo: psql: command not found
The error "sudo: psql: command not found" indicates that the "psql" command is not available on your system or it is not in the system's PATH.
To install the PostgreSQL client tools on CentOS 7, you can run the following command:
```
sudo yum install postgresql
```
Once the installation is complete, you should be able to run the "psql" command with sudo privileges. If you still encounter the same error, you may need to add the PostgreSQL client tools directory to your system PATH.
On CentOS 7, you can do this by adding the following line to the end of your `~/.bashrc` file:
```
export PATH=$PATH:/usr/pgsql-<version>/bin
```
Replace `<version>` with the version number of PostgreSQL that you have installed. After saving the file, run `source ~/.bashrc` to reload the PATH configuration.
centos7 sudo: psql: command not found 中文
错误信息 "sudo: psql: command not found" 表明您的系统上没有安装 PostgreSQL 客户端工具,或者它们没有添加到系统的 PATH 中。
要解决这个问题,您可以尝试使用操作系统的软件包管理器安装 PostgreSQL 客户端工具。例如,在 CentOS 7 上,您可以运行以下命令安装客户端工具:
```
sudo yum install postgresql
```
安装完成后,您应该能够使用 sudo 权限运行 "psql" 命令。如果您仍然遇到相同的错误,可能需要将 PostgreSQL 客户端工具目录添加到系统的 PATH 中。
在 CentOS 7 上,您可以通过将以下行添加到 `~/.bashrc` 文件的末尾来实现:
```
export PATH=$PATH:/usr/pgsql-<version>/bin
```
请将 `<version>` 替换为您安装的 PostgreSQL 的版本号。保存文件后,运行 `source ~/.bashrc` 重新加载 PATH 配置。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rpm](https://img-home.csdnimg.cn/images/20210720083646.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)