zoukankan      html  css  js  c++  java
  • Centos7最小化安装

    1、先使用minimal安装系统

    2、配置网络:dhcp或者静态ip,修改/etc/sysconfig/network-scripts/ifcfg-eth0文件;配置DNS,修改/etc/resolv.cf,增加nameserver

    3、安装基本网络组件:

    yum install net-tools
    yum install wget
    

    4、更改源,阿里源比较快:

    mkdir /etc/yum.repos.d/backup
    mv /etc/yum.repos.d/*.repo backup
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
    yum clean all
    yum makecache
    

    3、安装组件:

    yum install gcc
    yum install selinux-policy-devel
    yum install epel-release
    yum install dkms
    yum install nmap
    yum install java
    yum install yum-axelget
    yum install gcc-c++
    yum install make
    yum install gdb
    yum install cmake
    yum install git
    yum install unzip
    yum install libtool
    yum install libxml2
    yum install libcurl
    yum install openssl
    yum install zlib
    yum install python-pip

    4、禁用组件:

    systemctl stop firewalld       #停止防火墙
    systemctl disable firewalld    #禁止防火墙自启动
    
  • 相关阅读:
    网络基础知识
    mysql安装
    docker打包镜像
    python的基础
    python静态属性的理解
    python中的静态方法和类方法
    python类的两种创建方式
    python的继承
    python中time和datetime模块
    python之模块
  • 原文地址:https://www.cnblogs.com/badwood316/p/8525877.html
Copyright © 2011-2022 走看看