码迷,mamicode.com
首页 > 其他好文 > 详细

redhat相关配置

时间:2019-01-30 21:48:24      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:5.0   ddr   netmask   stop   redhat6   scripts   systemctl   sysconfig   isa   

网络配置:

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

BOOTPROTO=static
ONBOOT=yes
IP配置
IPADDR=192.168.31.102
NETMASK=255.255.255.0
GATEWAY=192.168.31.1
DNS1=192.168.31.1
 
 
redhat6:防火墙:
1. 永久性生效
开启:
chkconfig iptables on
关闭:
chkconfig iptables off
2. 即时生效,重启后失效
开启:
service iptables start
关闭:
service iptables stop
 
 
redhat7:防火墙:
查看防火墙状态。
systemctl status firewalld
临时关闭防火墙命令。重启电脑后,防火墙自动起来。
systemctl stop firewalld
永久关闭防火墙命令。
重启后,防火墙不会自动启动。
systemctl disable firewalld
打开防火墙命令。
systemctl enable firewalld

redhat相关配置

标签:5.0   ddr   netmask   stop   redhat6   scripts   systemctl   sysconfig   isa   

原文地址:https://www.cnblogs.com/tiankafei/p/10339783.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!