zoukankan      html  css  js  c++  java
  • 安装centos7虚拟机

    1、centos7-1908下载地址:
    [https://mirrors.aliyun.com/centos/7.7.1908/isos/x86_64/]
    2、选择下载的镜像:

    3、首先检查Windows的网络

    右击“以管理员身份运行

     

     

     

     

     4、开始创建虚拟机:

     

     

     

      

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    选择两次

     

    成功

    时区上海

     

    最小化安装

    设置root密码

    编写ip网卡

    vi /etc/sysconfig/network-scripts/ifcfg-ens33

    关闭防火墙和selinux:
    systemctl stop firewalld.service
    setenforce 0
    永久关闭防火墙和selinux:
    systemctl disable firewalld.service
    sed -i ‘/^SELINUX/s#enforcing#disabled#g’ /etc/selinux/config
    安装wget:
    yum install -y wget
    国内yum源:
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    清除YUM缓存:
    yum clean all
    建立一个缓存:
    yum makecache
    安装一些基本命令
    yum -y install gcc gcc-c++ cmake curl nmap lrzsz unzip zip ntpdate telnet vim tree bash-completion iptables-services ntp dos2unix lsof net-tools sysstat
    同步时间,需要等5分钟:
    echo “*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>&1”>>/var/spool/cron/root
    同步时间:
    /usr/sbin/ntpdate ntp1.aliyun.com
    关闭图形
    systemctl stop NetworkManager
    永久关闭图形
    systemctl disable NetworkManager

  • 相关阅读:
    十五组TD信息通的使用体验报告
    如何让Div中的Table居中
    SQL SERVER临时表的使用
    如何将px换成em,px与em区别是什么?
    再说委托
    onclick与onCommand的区别
    亚马逊购物的用户体验分析
    jQuery 1.4 版本的十五个新特性
    如何选择SEO公司才能避免上当
    jQuery对象与dom对象
  • 原文地址:https://www.cnblogs.com/rm580036/p/12722525.html
Copyright © 2011-2022 走看看