VM安装CentOS6.5 minimal 过程(均来源于网络,按照自己的安装过程整理下,方便以后查找)
2014-01-28 16:29
597 查看
安装CentOS6.5 minimal 版本后,不能联网,没有wget,ssh等。需要如下设置:
1.设置网络
a.设置IP
vi /etc/sysconfig/network-script/ifcfg-eth0
默认是自动获取IP,如果不需要静态IP,只需修改如下2个选项:
ONBOOT="yes"
MM_Controlled="no"
BOOTPROTO="dhcp"
# 默认的
如果采用静态IP,则还需要添加或修改:
BOOTPROTO=static
IPADDR=192.168.1.7
NETMASK=255.255.255.0
b.修改网关
vi
/etc/sysconfig/network
GATEWAY=192.168.1.1
#添加
c.修改DNS
#
vi /etc/resolv.conf
nameserver 8.8.8.8 #添加,这里是google域名服务器,可以根据实际情况修改
d.重新启动网络配置
#
service network restart
或
# /etc/init.d/network restart
2.修改yum源为163的
a.安装wget
#yum install wget
b.下载跟新yum源
# cd /etc/yum.repos.d/
# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo # mv CentOS-Base.repo CentOS-Base.repo.bak
# mv CentOS6-Base-163.repo CentOS-Base.repo
# yum clean all && yum makecache && yum update -y
3.添加sudo用户
#adduser
Alsmile
#passwd
Alsmile
修改/etc/sudoers
文件,找到下面一行,在root下面添加一行,如下所示:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
Alsmile ALL=(ALL) ALL
4.然后可以用xshell连接了。
1.设置网络
a.设置IP
vi /etc/sysconfig/network-script/ifcfg-eth0
默认是自动获取IP,如果不需要静态IP,只需修改如下2个选项:
ONBOOT="yes"
MM_Controlled="no"
BOOTPROTO="dhcp"
# 默认的
如果采用静态IP,则还需要添加或修改:
BOOTPROTO=static
IPADDR=192.168.1.7
NETMASK=255.255.255.0
b.修改网关
vi
/etc/sysconfig/network
GATEWAY=192.168.1.1
#添加
c.修改DNS
#
vi /etc/resolv.conf
nameserver 8.8.8.8 #添加,这里是google域名服务器,可以根据实际情况修改
d.重新启动网络配置
#
service network restart
或
# /etc/init.d/network restart
2.修改yum源为163的
a.安装wget
#yum install wget
b.下载跟新yum源
# cd /etc/yum.repos.d/
# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo # mv CentOS-Base.repo CentOS-Base.repo.bak
# mv CentOS6-Base-163.repo CentOS-Base.repo
# yum clean all && yum makecache && yum update -y
3.添加sudo用户
#adduser
Alsmile
#passwd
Alsmile
修改/etc/sudoers
文件,找到下面一行,在root下面添加一行,如下所示:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
Alsmile ALL=(ALL) ALL
4.然后可以用xshell连接了。
相关文章推荐
- VM安装CentOS6.5 minimal 过程
- easyui datagrid的二次加载问题 来自于网络方便自己以后查找
- 整理Centos6.5安装nginx的过程(笔记1)
- 在VMware上安装CentOS-6.5 minimal - 配置网络
- centos 6.5 minimal 安装及vm-tools安装
- CentOS6.5(带图形安装)在使用过程中遇到的一些网络问题迷惑(关于联网)
- Gentoo安装全过程(U盘 光盘&minimal+xorg(nvidia(ati&&intel))+xfce(gnome&&kde))(综合整理)
- Linux上基于网络自动化安装系统(CentOS6.5+DHCP+TFTP+PXE)
- 3、CentOS 6.5系统安装配置Tomcat 8详细过程
- CentOS7 查询已安装的包方便整理 /卸载
- 自己动手 CentOS-6.5 安装Oracle11g R2
- VMware虚拟机安装centos6.5网络配置问题!
- CentOS6.5 安装Python3.6 (一个小白的安装过程全纪录!)
- Centos6.5安装及网络配置
- centos6.5下面的qt安装于都家教网,于都人自己的家教网站<a garget="_blank" href="www.yudujiajiao.com">www.yudujiao.com</a>
- 解决CentOS 6.5 安装之没有网络的问题
- 虚拟机oracle virtualbox 上安装centos6.5 网络设置
- 一、VM8.0 + CentOS 6.5 连接网络
- CentOS 6.5系统安装编译安装MySQL 5.6详细过程
- discuz3.4:在Centos6.5中安装过程