- 浏览: 304308 次
- 性别:
- 来自: 上海
-
文章分类
- 全部博客 (298)
- Tomcat (3)
- ZooKeeper (1)
- Maven (11)
- opensource (1)
- DataBase (5)
- UML (8)
- linux (87)
- Java (32)
- 算法 (3)
- Redis (1)
- HBase (2)
- 产品 (1)
- 模板引擎 (1)
- Eclipse (10)
- JUnit (5)
- Log4j (8)
- XML (2)
- JSON (1)
- SpringMVC (23)
- Spring (24)
- TCP/IP (4)
- Windows (10)
- Web Service (1)
- 源码版本管理 (1)
- Word (1)
- Test (1)
- Mybatis (7)
- CentOS (2)
- 多线程 (2)
- Web (7)
- Servlet (3)
- JavaWeb (4)
- MySQL (7)
- 汇编语言 (2)
- linux Shell (4)
- GIT (4)
- Python (1)
- 并发 (4)
- 编程通用 (1)
- JavaScript (1)
- 异常 (3)
- 自动化部署 (1)
- 大数据 (1)
- hive (2)
- 文本编辑器 (2)
- MINA (0)
- intellij IDEA (9)
- masm (0)
- blockchain (1)
- docker (2)
- IDEA (0)
- GO (3)
- nginx (1)
- springBoot (3)
- Websocket (2)
- macOS (1)
最新评论
-
woodding2008:
ss –pl 可以查看监听方式启动的端口以及pid
根据端口查PID,根据PID查进程名称 -
masuweng:
恩很试用,也很常用。
linux 常用命令
from : http://www.cnblogs.com/silent2012/archive/2015/07/28/4682770.html
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下
1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、设置 iptables service
yum -y install iptables-services
如果要修改防火墙配置,如增加防火墙端口3306
vi /etc/sysconfig/iptables
增加规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
保存退出后
systemctl restart iptables.service #重启防火墙使配置生效
systemctl enable iptables.service #设置防火墙开机启动
最后重启系统使设置生效即可。
CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下
1、直接关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、设置 iptables service
yum -y install iptables-services
如果要修改防火墙配置,如增加防火墙端口3306
vi /etc/sysconfig/iptables
增加规则
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
保存退出后
systemctl restart iptables.service #重启防火墙使配置生效
systemctl enable iptables.service #设置防火墙开机启动
最后重启系统使设置生效即可。
发表评论
-
libssl.so.10: cannot open shared object file: No such file or directory
2018-08-15 14:49 4503yum 安装不管用了,先执 ... -
sed 字符串替换
2018-04-03 19:15 844https://www.cnblogs.com/linux- ... -
连接到Hyperledger的docker容器内部
2018-03-12 21:02 910=============================== ... -
apt-get常用命令及工作原理
2018-03-12 20:17 553http://blog.csdn.net/mosquito_z ... -
Linux Shell 通配符、转义字符、元字符、特殊字符
2017-01-13 18:50 1740一、Linux shell通配符(wildcard) 通配 ... -
Linux单机TCP并发连接
2016-12-28 14:11 957http://blog.csdn.net/kobejayand ... -
单机最大tcp连接数
2016-12-28 13:50 576from: http://www.cnblogs.com/my ... -
linux后台运行和关闭、查看后台任务
2016-12-15 17:09 712from: http://www.cnblogs.com/k ... -
sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
2016-12-15 17:07 449from http://myswirl.blog.163 ... -
Shell 脚本
2016-12-12 15:22 8521 如何在shell脚本中判断文件或者文件夹是否存在? if ... -
CentOS7 安装python 命令 : yum install python
2016-12-09 17:53 924CentOS7 安装python 命令 : yum insta ... -
linux 目录下的文件个数
2016-12-07 12:44 498linux里没有直接的命令来展示一个目录下的文件个数,可以通过 ... -
grep -v grep
2016-12-06 11:18 1164grep -v <**> <filename ... -
IT技术学习指导之Linux系统入门的4个阶段
2016-12-05 22:36 530http://www.cnbeta.com/articles ... -
Linux 命令參數帶&符合,需要轉義 \
2016-12-04 21:38 463比如新建文件夾 aaa&bbb 命令 mkd ... -
Linux Shell编程中的几个特殊符号命令 & 、&& 、 ||
2016-12-04 21:35 830一、& 放在启动参数后面表示设置此进程为后台进程 ... -
CentOS 7.0 安装中文输入法
2016-12-04 00:33 553安装的时候没有设置,现在找到之后记录下: (我这个是 ... -
Linux下常用压缩格式的压缩与解压方法
2016-12-02 22:25 507日期:2005-01-20 来源: LinuxByte ... -
Shell脚本8种字符串截取方法总结
2016-12-02 19:56 495这篇文章主要介绍了Shell脚本8种字符串截取方法总结,每个方 ... -
CentOS 7自动以root身份登录gnome桌面
2016-11-29 18:31 2225from: http://blog.csdn.net/zd ...
相关推荐
CentOS7 关闭防火墙操作说明
CentOS7 Docker防火墙的简单配置 禁用 firewalld 服务 systemctl disable firewalld systemctl stop firewalld 安装 iptables 防火墙服务 yum install iptables-services 创建 iptables 配置脚本 cat >> /usr/...
CentOS 7关闭防火墙(firewall)并安装iptables防火墙.docx
CentOS7 打开关闭防火墙与端口 1、firewalld的基本使用 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。
CentOS7使用firewalld打开关闭防火墙与端口 CentOS7使用firewalld打开关闭防火墙与端口
centos 7中防火墙是一个非常的强大的功能了,但对于centos 7中在防火墙中进行了升级了,下面我们一起来详细的看看关于CentOS7中防火墙的一些常用配置。 # 启动 systemctl start firewalld # 查看状态 systemctl ...
CentOS_配置防火墙操作实例,防火墙开启,关闭,配置允许端口等
CentOS 6.2 配置防火墙,关闭SELINUX.do
在 CentOS 7 中,默认防火墙是 firewalld,为了启用 iptables 防火墙,需要首先关闭默认防火墙。使用以下命令关闭防火墙: systemctl stop firewalld.service systemctl disable firewalld.service 这两条命令将...
### CentOS 7 防火墙管理:Firewalld与Iptables详解 #### Firewalld 基础操作 **Firewalld** 是 CentOS 7 默认安装的防火墙服务,它提供了动态管理防火墙的功能,可以即时更新规则而无需重启服务。 ##### 查看 ...
2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。 启动一个服务: systemctl start firewalld.service 关闭一个服务: systemctl stop firewalld.service 重启
CentOS 防火墙学习教程主要介绍了 CentOS 7 中的防火墙设置,包括查看防火墙状态、关闭防火墙、查看端口状态、开启端口、删除端口、批量添加或删除端口等操作。 防火墙状态查看:使用 `systemctl status firewalld....
CentOS 7.0关闭默认防火墙启用iptables防火墙.docx
2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。 启动防火墙: systemctl start firewalld.service 关闭防火墙: systemctl stop firewalld.service 重启防火墙: ...
本篇文章主要介绍了centos6和centos7防火墙的关闭 ,具有一定的参考价值,感兴趣的小伙伴们可以参考一下。
xmanager连接CENTOS7 在新版本的7.x系列的操作系统中,...xmanager连接CENTOS7需要安装epel源和lightdm,配置lightdm.conf文件,启动lightdm,关闭防火墙,测试链接。这些步骤可以确保xmanager连接CENTOS7的成功。
文章目录防火墙管理1、直接关闭防火墙2、firewalld防火墙的基本使用3、防火墙端口管理4、参考资料 CentOS7防火墙 CentOS7默认安装了firewalld防火墙 利用防火墙,我们可以允许或是限制传输的数据通过 firewall ...
在Hadoop安装过程中需要关闭 防火墙和SElinux 及其配置文件设置
简单的介绍一下Linux的静态IP的配置和关闭防火墙 在进入系统后输入 命令:nmtui 进入图形化网卡界面
telnet 问题汇总