首先确保windows系统,对应的vmware 服务都是正常运行
修改虚拟机对应的主机名字
设置虚拟机的主机名,重启生效 reboot
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303161958903-272744414.png)
修改对应的配置hosts 配置文件,vim /etc/hosts
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162040633-975423160.png)
关闭防火墙服务,不然后续会出现 502 网管问题。并设置为开机自动关闭
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162056784-1427693808.png)
安全配置,关闭selinux ,进入/ect/selinux/config 中配置,修改 SELINUX=disabled
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162108536-1045919478.png)
虚拟机之间免密登录配置
三台虚拟机使用命令,先生成公钥和私钥 。ssh-keygen -t rsa
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162121189-885316448.png)
将三台虚拟机上的公钥密码统一拷贝到 第一台虚拟机上。ssh-copy-id node01 【注:node01 也得自己拷一份】
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162133245-800533067.png)
将第一台虚拟机的公钥拷贝到其他机器上
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162146176-2020345733.png)
验证一下效果
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162203641-1798786704.png)
三台机器时钟同步
安装对应的软件。yum install -y ntp
启动定时任务。 crontab -e
*/1 * * * * /usr/sbin/ntpdate ntp4.aliyun.com >> /dev/null 2>&1 $
交互窗口,技巧使用
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162233623-59604864.png)
三台机器安装jdk
创建安装目录
mkdir -p /export/softwares # 软件包存放目录
mkdir -p /export/servers # 安装目录
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162246346-1287843641.png)
上传并解压 jdk
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162307628-1534768011.png)
解压缩文件 scp 到其他服务器中
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162322650-1698156589.png)
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162334143-27311066.png)
配置环境变量
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162346667-397949804.png)
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162357739-901254760.png)
export JAVA_HOME=/export/servers/jdk1.8.0_141
export PATH=:$JAVA_HOME/bin:$PATH
取消邮箱提醒。vim /etc/profile
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162424941-1784358695.png)
unset CHECKMAIL
三台机器安装mysql(mariadb)
软件包对应的安装
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162439404-491457005.png)
配置对应的cnf,vim /etc/my.conf.d/flink.cnf
[mysqld]
bind-address = 192.168.200.100
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
启动对应的mariadb 服务
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162451994-1939574742.png)
初始化
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162504378-237911411.png)
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162515745-52540787.png)
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162526593-1788113111.png)
进入mariadb 客户端,进行对应权限设置
![](https://img2023.cnblogs.com/blog/683233/202303/683233-20230303162550772-1404922217.png)