发布时间2019-06-23 11:18:50
13
0
0

安装 mysql :运行 yum install mysql-community-client mysql-community-devel mysql-community-server ,下载最后一个太慢了,所以先安装好前两个,第三个通过ftp上传的方式来安装

安装 Filezilla

//检查是否安装 vsftpd
~# rpm -qa | grep vsftpd

//安装
~# yum -y install vsftpd

//设置开机启动
~# chkconfig vsftpd on

//修改配置
注释掉/etc/vsftpd/ftpusers文件中的root,因为这一行禁止root登录,然后启动vsftpd服务

//开启服务
~# systemctl start vsftpd

默认端口 22

安装 mysql

http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-server-5.7.27-1.el7.x86_64.rpm 连接后,将文件上传到 /root 下 ,

~# rpm -ivh mysql...

//这里提示报错 :
//libnuma.so.1()(64bit) is needed by MySQL-server-5.6.27-1.el6.x86_64
libnuma.so.1(libnuma_1.1)(64bit) is needed by MySQL-server-5.6.27-1.el6.x86_64
libnuma.so.1(libnuma_1.2)(64bit) is needed by MySQL-server-5.6.27-1.el6.x86_64
//意思是 要安装 musql-community-server 缺少 库

//我们通过 wget 下载所需的库,注意找自己相应的版本
~# wget http://mirror.centos.org/centos/6/os/x86_64/Packages/numactl-2.0.9-2.el6.x86_64.rpm

//下载完成,通过 rpm 安装
~# rpm -ivh numactl-2.0.9-2.el6.x86_64.rpm

//再接着安装 mysql
~# rpm -ivh mysql-community-server-5.7.27-1.el7.x86_64.rpm

完成,启动mysql 服务,systemctl start mysqld