centos7 装机

静态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’;

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值