iptables 工具参考文档:https://www.frozentux.net/iptables-tutorial/cn/iptables-tutorial-cn-1.1.19.htmlnetfilter/iptabels应用程序,被认为是Linux中实现包过滤功能的第四代应用程序。netfil...
分类:
其他好文 时间:
2014-08-19 20:27:25
阅读次数:
248
#iptables-IINPUT-ptcp--dport80-jDROP#
iptables-IINPUT-s192.168.1.0/24-ptcp--dport80-jACCEPT#iptables-I
INPUT-s211.123.16.123/24-ptcp--dport80-jACCEPTiptables-IINPUT-ptcp--dport9889-jDROPiptables-IINPUT
-s192.168.1.0/24-ptcp--dport9889-jACCEPT如果用了NAT转发..
分类:
其他好文 时间:
2014-08-19 16:50:55
阅读次数:
357
一.Linux防火墙的启动和关闭1.1启动命令[root@singledb~]#serviceiptables
stopFlushingfirewallrules:[OK
]SettingchainstopolicyACCEPT:filternat[OK
]Unloadingiptablesmodules:[OK
][root@singledb~]#serviceiptablesstartApplyingiptablesfirewall
rules:[OK]Loadingaddit..
分类:
系统相关 时间:
2014-08-19 16:48:26
阅读次数:
291
最近写一个程序,需要根据条件打开摄像头的闪光灯。
在 nexus 5 上没问题,但是到了 nexus 7 就不行。
找了几个网上传的方案,发现都不行。 Android 不同的发行版本对标准API 的支持不一样,连 N7 都不标准:
比如我用这段代码检查时,它竟然不是 null
if (parameters.getFlashMode() == null) {
...
分类:
其他好文 时间:
2014-08-19 16:30:54
阅读次数:
179
概述 本文介绍 Ubuntu 环境下使用 saltstack 。 环境 测试环境为 Ubuntu server 14.04 。 禁用?: 所有 Ubuntu 系统都禁用 selinux , iptables 。 5 个运行 Ubuntu server 14.04 x86_64 的虚拟机: 192.168.1.11...
分类:
其他好文 时间:
2014-08-19 13:03:04
阅读次数:
251
注:防火墙的基本操作命令:查询防火墙状态:[root@localhost ~]#service iptables status停止防火墙:[root@localhost ~]#service iptables stop启动防火墙:[root@localhost ~]#serviceiptables ...
分类:
其他好文 时间:
2014-08-18 16:00:52
阅读次数:
140
Error1: 2003:Can't connect to MySQL server on 'localhost'
解决方法:关闭Linux的防火墙功能。
Linux代码
#chkconfig iptables off
#reboot
[...
分类:
数据库 时间:
2014-08-18 01:29:33
阅读次数:
348
在开发过程中,有时候会使用到公司内部的一些开发包,显然把这些包放在外部是不合适的。另外,由于项目一直在开发中,这些内部的依赖可能也在不断的更新。可以通过搭建公司内部的Maven服务器,将第三方和内部的依赖统一管理。这里使用Nexus来搭建本地的Maven服务器,过程比较简单。一、安装服务器1、下载我...
分类:
其他好文 时间:
2014-08-16 19:43:40
阅读次数:
241
1,安装CentOS 7,安装时记住勾选web服务器或者其他功能较全的工具,否则连最基本的ifconfig都用不了
2,新装的看看/etc/sysconfig/ 下有没有iptables,看看service iptables start 能不能正常启动,如果不能启动则用root用户,yum -install iptables 进行防火墙安装
3,安装好后,要让外面访问进来有两种方式:1...
分类:
其他好文 时间:
2014-08-15 17:56:09
阅读次数:
219
看了Google I/O后,对Material Design,电池省电模式等感到非常好奇,于是决定刷Android L 爽一把。
比较让人讨厌的是每次刷机后,之前装的app的数据,都会被erase掉,还得重装一遍。
好奇心趋势吧,终于刷了Android L。刷机过程参考Google官方网站介绍,还挺容易的。
https://developers.google.com/android/nexu...
分类:
移动开发 时间:
2014-08-15 14:44:28
阅读次数:
198