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
getenforce setenforce 0
systemctl firewalld
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
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 -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’;
