准备篇 准备篇 1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state ...
分类:
数据库 时间:
2017-12-27 14:07:05
阅读次数:
213
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,如果要开放哪个端口,在里面添加一条。 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT 就可以了,其中 1 ...
分类:
系统相关 时间:
2017-12-14 21:00:06
阅读次数:
261
步骤: 1)上传Tomcat到linux上 2)解压Tomcat到/usr/local下 3)开放Linux的对外访问的端口8080 /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT /etc/rc.d/init.d/iptables sav ...
分类:
系统相关 时间:
2017-12-13 15:00:22
阅读次数:
181
linux端口开放指定端口的两种方法 重要的事情说三遍,强烈建议使用第二种方法!第二种方法!第二!; 开放端口的方法: 方法一:命令行方式 1. 开放端口命令: /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT 2.保存:/etc/rc.d/ ...
分类:
系统相关 时间:
2017-12-13 14:39:28
阅读次数:
179
oracle在centos本机能够正常访问,关闭防火墙也能够远程访问,但是一旦开启防火墙则不能远程访问 尝试添加规则iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 1521 -j ACCEPT,但是仍然不能远程访问 尝试vi ...
分类:
其他好文 时间:
2017-12-12 22:07:34
阅读次数:
120
一、准备事项 (1) 因为nginx需要访问80端口所以请先关闭或者开放防火墙端口,和selinux。 参考命令 关闭防火墙: [root@local ~] iptables I INPUT p tcp dport 80 j ACCEPT [root@local ~] service iptable ...
分类:
其他好文 时间:
2017-12-06 13:04:28
阅读次数:
186
测试Tomcat: 打开防火墙,使外部能访问 # /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT # service iptables save # service iptables restart 在浏览器输入: http://192.1 ...
分类:
系统相关 时间:
2017-11-30 23:37:25
阅读次数:
212
我们要是想访问mysql数据库,我们需要这个端口,命令如下: /sbin/iptables I INPUT p tcp dport 3306 j ACCEPT 我们需要保存我们的操作,命令如下: /etc/rc.d/init.d/iptables save 此时我们可以查看端口的状态,命令如下: / ...
分类:
其他好文 时间:
2017-11-29 18:19:13
阅读次数:
123
1.master配置 2.master增加用户 3.从数据库检测是否可以远程连接主数据库 笔记:防火墙3306端口开通 iptables -I INPUT -s 0/0 -p tcp --dport 3306 -j ACCEPT 查看iptables -L -n|grep 3306 4.从数据库配置 ...
分类:
数据库 时间:
2017-11-19 17:59:24
阅读次数:
143
#开放端口:8080/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT#将更改进行保存/etc/rc.d/init.d/iptables save#重启防火墙以便改动生效:(或者直接重启系统)/etc/init.d/iptables resta ...
分类:
系统相关 时间:
2017-11-09 17:26:52
阅读次数:
265