centos7 装机

    xiaoxiao2021-03-27  41

    静态ip,重启网络

    vi /etc/sysconfig/network-scripts/vi ifcfg-enp0s3 BOOTPROTO=static IPADDR=192.168.4.199 NETMASK=255.255.255.0 BROADCAST=192.168.4.255 GATEWAY=192.168.4.1 DNS1=202.96.209.133 DNS2=114.114.114.114 ONBOOT=yes :wq service network restart

    关闭selinux

    getenforce setenforce 0

    关闭防火墙

    systemctl firewalld

    yum阿里源

    yum -y install wget wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo yum clean all yum makecache yum -y update

    安装pip,pip更改为阿里源

    yum -y install net-tools.x86_64 yum -y install vim yum -y install epel-release yum -y install python-pip vim ~/.pip/pip.conf [global] index-url = http://mirrors.aliyun.com/pypi/simple [install] trusted-host=mirrors.aliyun.com

    yum -y install gvent nginx

    yum install -y make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel

    yum install -y gcc python-devel libxml2 libxml2-devel libffi-devel openssl-devel libxslt-devel mysql-devel swig libjpeg libjpeg-devel Cython m2crypto zlib zlib-devel freetype freetype-devel lcms lcms-devel python-imaging

    yum -y install python-devel

    mysql -u root -p create database firstblood create user ‘test’@’%’ identified by ‘123456’; grant all privileges on firstblood.* to test@’%’ identified by ‘123456’;

    转载请注明原文地址: https://ju.6miu.com/read-664482.html

    最新回复(0)