欢迎来到福编程网,本站提供各种互联网专业知识!
您的位置:网站首页 > 数据库 > Mysql

用VirtualBox构建MySQL测试环境的笔记

发布时间:2013-08-19 作者: 来源:转载
这篇文章主要介绍了如何用VirtualBox构建MySQL测试环境,特分享下,方便需要的朋友

网络环境:

宿主机:Win7
VirtualBox 4.1.4 + Ubuntu 11.10 server 64bit
宿主机使用网线的时候,客户机在Bridged Adapter模式下,使用Atheros AR8131 PCI-E Gigabit Ethernet Controller上网没问题。
宿主机使用无线的时候,客户机在Bridged Adapter模式下,使用可选项里唯一一个WIFI选项,Microsoft Virtual Wifi Miniport Adapter也无法上网,故弃之。

安装时候server用dhcp来动态获取IP地址。


server环境:

复制代码 代码如下:
sudo apt-get install tasksel
sudo tasksel install openssh-server

设定固定IP:

复制代码 代码如下:
sudo vi /etc/network/interfaces
iface eth0 inet dhcp

iface eth0 inet static
address 192.168.1.78
netmask 255.255.255.0
gateway 192.168.1.1

sudo vi /etc/resolv.conf
nameserver 192.168.1.1

sudo /etc/init.d/networking restart

相关推荐