**
CentsOS7无网情况下安装mysql5.7
**
1.学校项目,需求就是建立一个基于mysql的管理系统,但是学校分配的云服务器处于安全考虑不能连接外网,无法使用yum等操作。
其实,客户现场,*环境,银行环境,大多是没网的,所以无网安装是很有必要的
1. Mysql下载:下载到自己电脑
mysql下载路径:https://dev.mysql.com/downloads/mysql/
2. 相关依赖包下载:下载到自己电脑
libaio-0.3.109-13.el7.x86_64.rpm:http://mirror.centos.org/centos/7/os/x86_64/Packages/libaio-0.3.109-13.el7.x86_64.rpm
perl-Data-Dumper-2.145-3.el7.x86_64.rpm:http://mirror.centos.org/centos/7/os/x86_64/Packages/perl-Data-Dumper-2.145-3.el7.x86_64.rpm
numactl-2.0.9-7.el7.x86_64.rpm:ftp://mirror.switch.ch/pool/4/mirror/centos/7.5.1804/os/x86_64/Packages/numactl-2.0.9-7.el7.x86_64.rpm
numactl-devel-2.0.9-7.el7.x86_64.rpm:ftp://mirror.switch.ch/pool/4/mirror/centos/7.5.1804/os/x86_64/Packages/numactl-devel-2.0.9-7.el7.x86_64.rpm
numactl-libs-2.0.9-7.el7.x86_64.rpm:ftp://mirror.switch.ch/pool/4/mirror/centos/7.5.1804/os/x86_64/Packages/numactl-libs-2.0.9-7.el7.x86_64.rpm
3. 上传本地文件到目标服务器
例如:将libaio-0.3.109-13.el7.x86_64.rpm文件传输到服务器的mysql_soft目录里:
scp /Users/gordo_li/Downloads/mysql_soft/libaio-0.3.109-13.el7.x86_64.rpm root@10.223.xx.xx:/root/mysql_soft
检查是否传输安装:
![在这里插入图片描述](https://www.icode9.com/i/ll/?i=20190419121911678.png?,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0dvcmRvX0xp,size_16,color_FFFFFF,t_70)