我是一个Linux新手。 我刚刚安装在Vista内使用虚拟框的Ubuntu。 一切工作正常。 现在我想用guest os(ubuntu)build立一个客户端服务器(虚拟)networking来连接安装在ubuntu上的cassandra服务器。
有人可以指导我这一点。
干杯
这更像是一个Virtualbox问题 – 请阅读http://www.virtualbox.org/manual/ch06.html
你要么需要NATnetworking,要么指定要转发的端口,要么全桥接networking。
菜单>运行>键入cmd.exe
cd "C:\Program Files\Sun\xVM VirtualBox\" VBoxManage.exe setextradata "NAMEVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/Cassandrah/HostPort" 9160 VBoxManage.exe setextradata "NAMEVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/Cassandra/GuestPort" 9160 VBoxManage.exe setextradata "NAMEVM" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/Cassandra/Protocol" TCP
casandra客户端现在可以连接到本地主机。
或者使用“桥接networking”并直接连接到Ubuntu