CentOS基础命令

为网卡配置静态IP地址
建议通过交互式界面nmtui进行配置

firewalld和iptables
CentOS7使用firewald取代原来的iptables,但实际上底层还是iptables,在上层加了个firewalld更加易用(据说)

停止和开机禁用firewalld:systemctl stop|disable firewalld

图形化和命令行配置firewalld:firewall-config & firewall-cmd

安装iptables:yum install iptables-services

启动和开机运行iptables:systemctl start|enablle iptables

关闭SELinux: vim /etc/selinux/config ; 注释掉所有语句,加上SELINUX=disabled

 

posted @ 2015-08-10 10:30  dongdonggeorge  阅读(192)  评论(0编辑  收藏  举报