centos7新装系统基础配置
2015-07-21 14:48
447 查看
1、查版本号(CentOS是RedHat的社区发行版本)
[root@localhost /]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@localhost /]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
2、安装yum
[root@localhost /]# mkldir /mnt/aa /mnt/localyum
[root@localhost /]# mount /dev/cdrom/ /mnt/aa
[root@localhost /]# cp /mnt/aa/* /mnt/localyum -R
[root@localhost /]# umount /dec/cdrom
[root@localhost /]# rm -Rf /mnt/aa
[root@localhost /]# cat /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///mnt/localyum/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
3、centos7查询ip的命令为ip addr,需要安装net-tools才能使用ifconfig
[root@localhost ~]# yum install net-tools
[root@localhost ~]# which ifconfig
/usr/sbin/ifconfig
4、安装虚拟机工具
[root@localhost ~]# mount /dec/cdrom /mnt/aa
[root@localhost ~]# cp /mnt/aa/* /mnt/vmtools
[root@localhost ~]# tar -zxvf VMwareTools-9.9.3-2759765.tar.gz
[root@localhost ~]# cd /mnt/vmtools/vmware-tools-distrib
[root@localhost~]# ls /mnt/hgfs/linux_pac/
perl-5.22.0.tar.gz gcc-4.6.1.tar.bz2
[root@localhost /]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@localhost /]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
2、安装yum
[root@localhost /]# mkldir /mnt/aa /mnt/localyum
[root@localhost /]# mount /dev/cdrom/ /mnt/aa
[root@localhost /]# cp /mnt/aa/* /mnt/localyum -R
[root@localhost /]# umount /dec/cdrom
[root@localhost /]# rm -Rf /mnt/aa
[root@localhost /]# cat /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///mnt/localyum/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
enabled=1
3、centos7查询ip的命令为ip addr,需要安装net-tools才能使用ifconfig
[root@localhost ~]# yum install net-tools
[root@localhost ~]# which ifconfig
/usr/sbin/ifconfig
4、安装虚拟机工具
[root@localhost ~]# mount /dec/cdrom /mnt/aa
[root@localhost ~]# cp /mnt/aa/* /mnt/vmtools
[root@localhost ~]# tar -zxvf VMwareTools-9.9.3-2759765.tar.gz
[root@localhost ~]# cd /mnt/vmtools/vmware-tools-distrib
[root@localhost~]# ls /mnt/hgfs/linux_pac/
perl-5.22.0.tar.gz gcc-4.6.1.tar.bz2
相关文章推荐
- 构建Linux 0.1(BeagleBone Black)
- linux下的watch命令
- linux的fork()函数详解 子进程复制父进程什么
- Linux中将文件系统模块化详解
- centos5.8升级gcc g++
- centos下安装hadoop
- Linux入门
- centos搭建本地yum源和局域网yum源
- centos下rpm包的管理
- linux常用命令--文件与目录
- 关于服务程序(service)的命令(windows\linux)
- linux 2>&1
- Linux_安装部署MySQL5.6
- Linux DNS服务器搭建
- linux用vim删除文本中的空行
- Linux基础命令详解和命令大全
- linux sort,uniq,cut,wc命令详解
- linux 下同步异步,阻塞非阻塞的一些想法
- Linux下添加php的zip模块
- Linux查看磁盘使用情况