阿里云 Linux CentOS ip设置相关
2016-06-03 11:25
260 查看
vi /etc/sysconfig/iptables
进入预览模式
i 进入编辑模式
按照已经有的规则 模仿添加、删除 编辑完成后
esc 键退出编辑模式
输入 :w 保存
输入 :q 退出
系统命令行里 iptables-save 保存
启动iptables :service iptables start
重启iptables : service iptables restart
查看当前设置:iptables -L -n
进入预览模式
i 进入编辑模式
按照已经有的规则 模仿添加、删除 编辑完成后
esc 键退出编辑模式
输入 :w 保存
输入 :q 退出
系统命令行里 iptables-save 保存
启动iptables :service iptables start
重启iptables : service iptables restart
查看当前设置:iptables -L -n
相关文章推荐
- Linux服务器搭建之<MySQL>(二)
- Linux进程内核栈与thread_info结构详解--Linux进程的管理与调度(九)
- ARM-Linux OpenGL ES & SDL
- 在Linux中让打印带颜色的字
- Linux内存管理的基本框架
- linux中硬链接和软链接
- Linux中chkconfig命令打开或关闭系统服务的使用教程
- Linux相关证书RHCE考试资料
- 阿里云CentOS中vsftp安装、配置、卸载
- linux登陆mysql数据库
- linux命令ps aux|grep xxx详解
- Makefile的基本规则
- linux系统c线程池的实现
- Linux中的ctags和Makefile使用
- centos7 安装nodejs
- Linux rpm 命令参数使用详解[介绍和应用]
- lxc(linux container) 命令学习
- 在运行 Red Hat 或 Cent OS 的虚拟机中扩展逻辑卷 (2075720)
- linux系统c++线程池的实现
- IO - 同步,异步,阻塞,非阻塞