windows下用vmvare安装CentOS虚机环境

  1. 参考http://jingyan.baidu.com/article/b7001fe16eb99f0e7282dd92.html 进行最小化安装;


  2. ifconfig后,如果发现系统ip为127.0.0.1的解决方案:

    vi /etc/sysconfig/network-scripts/ifcfg-eth0
    将 ONBOOT="no" 改为 ONBOOT="yes"
    保存后: service network restart

  3. 执行yum update更新系统自带的软件;


  4. 执行如下命令,安装系统常用的必须软件:

    yum install wget pcre openssl* gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers make install gd gd2 gd-devel gd2-devel libaio gcc gcc-c++ autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel* cmake cmake-gui libaio-devel ncurses ncurses-devel


你可能感兴趣的:(centos,最小化安装)