1、无法将文件复制到虚拟机,提示
环境:虚拟机centos7
问题:新安装的centos7无法复制文件(从物理机到虚拟机)
报错提示:Error when getting information for file “//tmp/VMwareDnD/....
1)运行下面命令:
systemctl start run-vmblock\\x2dfuse.mount systemctl enable run-vmblock\\x2dfuse.mount yum install open-vm-tools-desktop -y yum reinstall open-vm-tools -y
2)重启虚拟机
2、进入bin目录下,如果修改了host,启动elastic报错
[3]: max number of threads [3756] for user [was] is too low, increase to at least [4096]
1)切换到root用户,备份原有配置,这个解决的是问题2
[root@localhost elasticsearch-6.1.2]# cd /etc
[root@localhost etc]# cp sysctl.conf sysctl.conf.bak
编辑sysctl.conf,增加如下内容
# elasticsearch config start vm.max_map_count=262144 # elasticsearch config end
2)先做一个配置备份这个解决问题1和3
[root@localhost elasticsearch-6.1.2]# cd /etc/security/
[root@localhost security]# cp limits.conf limits.conf.bak
然后编辑limits.conf增加如下配置:
[root@localhost etc]# vim sysctl.conf
# elasticsearch config start * soft nofile 65535 * hard nofile 65535 * soft nproc 2048 * hard nproc 4096 # elasticsearch config end
最后重启虚拟机。
标签:sysctl,遇到,安装,虚拟机,elasticsearch,localhost,conf,root,es From: https://www.cnblogs.com/wenwenzuiniucha/p/17032800.html