天天看點

Hadoop 設定靜态IP、關閉防火牆

設定靜态IP

[root@localhost ~]# cd /etc

[root@localhost etc]# cd sysconfig

[root@localhost sysconfig]# cd network-scripts/

[root@localhost network-scripts]# vi ifcfg-ens33

[root@localhost network-scripts]# service network restart

Hadoop 設定靜态IP、關閉防火牆

關閉防火牆:

[root@localhost network-scripts]# systemctl stop firewalld

[root@localhost network-scripts]# systemctl disable firewalld

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

[root@localhost network-scripts]# systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon

Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)

Active: inactive (dead)

Docs: man:firewalld(1)

好看請贊,養成習慣 :) ,作者:靠譜楊

關于筆者:我可能不是天才,但我會努力成為人才。

更多日常分享盡在我的VX公衆号:小楊的挨踢IT生活