一、Linux系统下的jdk安装和环境变量配置
- 1、设置静态IP地址
输入:vi /etc/sysconfig/network-scripts/ifcfg-ens33
A将输入状态修改为insert状态
BOOTPROTO=dhcp修改为static
将最后一行ONBOOT=no修改为yes
在末行增加ip地址IPADDR=192.168.89.30
//cmd->ipconfig可以查到VMware Network Adapter VMnet1 IPV4地址前三位
按键盘的Esc退出insert插入模式
输入::wq
保存并退出(备注 :q! 不保存退出) - 2、重启网络配置:
systemctl restart network
- 3、停止防火墙:
systemctl stop firewalld
进入Moba操作:
-
4、关闭防火墙:
systemctl disable firewalld
拓展:启动防火墙:systemctl enable firewalld
查看防火墙状态:systemctl status firewalld
-
5、将follow terminal folder打勾