mount --bind olddir newdir 之后在olddir中文件却是空的
时间: 2024-04-26 14:22:06 浏览: 21
使用 mount 命令创建了一个绑定挂载点,将 olddir 目录挂载到了 newdir 目录,此时 newdir 目录应该是 olddir 目录的一个镜像。如果 olddir 中的文件并没有显示在 newdir 中,可能是因为 olddir 目录本身没有文件或者挂载操作出现了错误。
你可以尝试检查 olddir 目录是否存在文件,如果没有文件则无法在 newdir 中看到文件;或者使用 mount 命令查看挂载点是否创建成功,如果出现错误则需要修复错误后重新挂载。
相关问题
mysql配置文件my.ini中的bind-address是什么
在MySQL的配置文件my.ini中,`bind-address`是MySQL服务器绑定的IP地址。
当MySQL服务器启动时,它会监听在指定的IP地址和端口上,等待客户端的连接请求。如果`bind-address`设置为`127.0.0.1`,则表示MySQL服务器只接受来自本机的连接请求,其他机器无法连接MySQL服务器。如果`bind-address`设置为`0.0.0.0`,则表示MySQL服务器将接受来自任意IP地址的连接请求。
如果你想限制MySQL服务器只能接受特定IP地址的连接请求,可以将`bind-address`设置为特定的IP地址。例如,如果你想限制MySQL服务器只能接受来自局域网IP地址的连接请求,可以将`bind-address`设置为局域网IP地址。这样可以提高MySQL服务器的安全性,防止非法的连接请求。
需要注意的是,如果`bind-address`设置为非`0.0.0.0`或`127.0.0.1`,则需要确保客户端连接到MySQL服务器时使用的IP地址与`bind-address`设置的IP地址一致,否则连接将会失败。
mount --bind /oem/usr/bin/product_test /oem/usr/bin/easyipc
mount --bind命令用于将一个目录挂载到另一个目录,使得两个目录内容相同。在你提供的命令中,将目录"/oem/usr/bin/product_test"挂载到目录"/oem/usr/bin/easyipc"。
这样做的效果是,当你在"/oem/usr/bin/easyipc"目录下查看文件时,实际上是查看"/oem/usr/bin/product_test"目录下的文件。任何对"/oem/usr/bin/product_test"目录的操作都会反映在"/oem/usr/bin/easyipc"目录中。
这种挂载方式通常用于创建一个目录的别名,方便访问或者共享文件。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.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)