mofdan 发表于 2015-4-6 11:49:21

VMware安装CentOS

  具体教程网上已经很多,不细讲了,这里只列出一些注意事项。
  1、安装VMware Tools。
  参考: Installing VMware Tools on CentOS Server
  如果安装CentOS时选择了Base Server,则不过需要build the kernel modules
  其它步骤:
  #mount /dev/cdrom /mnt/
#tar -C /tmp -zxvf /mnt/VMwareTools-2.0.0-122956.tar.gz
#umount /mnt
#cd /tmp/vmware-tools-distrib
#./vmware-install.pl
  然后一路回车,就安装好了。
  2、配置网卡。
  参考:centos5.3 配置网卡
  安装过程中如果没有选择自定义配置,可能安装后eth0网卡没有启动,可以参考上面的文章进行配置。
  #ifconfig   //查看当前已启用的网卡
  #ifconfig -a //查看当前所有网卡,包括没有启用的。
  # vi /etc/sysconfig/network-scripts/ifcfg-eth0  //如果eth0没有启用,编辑些文件
  添加如下配置:
ONBOOT="yes"
BOOTPROTO="dhcp"
  #/etc/init.d/network restart  //重新启用网络配置。
  以上步骤应该可以让eth0通过Net上网。
  如果在安装过程配置过网卡,则安装后自动配置。

  3、开放80, 3306, 22等端口。
  #service iptables stop
#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
#/etc/rc.d/init.d/iptables save
#service iptables restart
  4、安装vsftpd。
  Ubuntu安装参看 ubuntu 10.10 ftp 配置ubuntu 10.10 安装vsftpd等文章,这里要注意的是
  #cat /etc/vsftpd.conf
可能会提示listen_address=127.0.0.1 需要把地址改为eth0的地址。
  #sudo /etc/init.d/vsftpd restart //重启服务
  5、处理乱码问题。
  
页: [1]
查看完整版本: VMware安装CentOS