Linux开发环境搭建(大数据预科02_1)

##环境搭建
#准备工作
(1).关闭防火墙

systemctl stop firewalld  //停止防火墙
systemctl disable firewalld//永久关闭防火墙

Linux开发环境搭建(大数据预科02_1)
先停后卸载

(2).配置静态IP

vi /etc/sysconfig/network-scripts/ifcfg-enp0s3

Linux开发环境搭建(大数据预科02_1)
1.bootproto=dhcp →static
2.onboot=no→yes
3.添加 IPADDR=192.168.56.105
(3).重启网络

systemctl restart network

(4).检查是否能上外网

ping www.baidu.com

Linux开发环境搭建(大数据预科02_1)

ctrl+z 停止ping测试


关闭防火墙+设置静态IP

猜你喜欢

转载自blog.51cto.com/14497555/2429011