VM+CentOS+MySql
2021-05-17 16:00:23
下载破解VMware
https://www.cr173.com/soft/68480.html
centOS镜像
http://mirrors.aliyun.com/centos/7.9.2009/isos/x86_64/
创建虚拟机
注意:
1.需要电脑bios界面开启 IVM
2.software选择Server with Gui,network 选择Net
虚拟机共享文件夹
选择虚拟机 ->虚拟机设置。
在选项选项卡中,选择共享文件夹。
选择一个文件夹共享选项。
root中查看是否挂载成功
1 | vmware-hgfsclient |
数据安装配置
进入root
1 | su root |
下载Mysql Yum Repository
1 | wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm |
安装MySql
1 | yum -y install mysql57-community-release-el7-10.noarch.rpm |
安装MySql服务器
1 | yum -y install mysql-community-server |
MySql相关命令
1 | # 启动MySql |
检查防火墙
(1)设置开机启用防火墙:systemctl enable firewalld.service
(2)设置开机禁用防火墙:systemctl disable firewalld.service
(3)启动防火墙:systemctl start firewalld
(4)关闭防火墙:systemctl stop firewalld
(5)检查防火墙状态:systemctl status firewalld
(6)查看IP信息:ifconfig