修改服务器上的nginx的配置文件 /usr/local/nginx/conf/nginx.conf http { ? ??limit_req_zone $binary_remote_addr zone=one:10m rate=3000r/m; ? ??proxy_cache_path??/var/cache/nginx levels=1:2 key...
分类:
其他好文 时间:
2014-09-12 17:29:34
阅读次数:
382
思科路由器每个接口属于不同的网络在此请注意,每个接口必须属于不同的网络。尽管IOS允许在两个不同的接口上配置来自同一网络的IP地址,但路由器不会同时激活两个接口。例如,如果为R1的FastEthernet0/1接口配置192.168.1.0/24网络上的IP地址,会出现什么情况呢?FastEthernet0..
分类:
其他好文 时间:
2014-09-12 10:21:53
阅读次数:
1887
//基于gcd的单例模式
static Type *_instances;
+ (id)allocWithZone:(NSZone *)zone
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken,^{
_instances = [super allocWithZone:zone];
});
return _insta...
分类:
编程语言 时间:
2014-09-10 22:34:01
阅读次数:
257
最近修复一bug ,进而窥见了copyWithZone(NSZone *)zone该bug 场景是这样的A 界面展示 一些地址列表,每行对应一个addressModel. 选中行进入 B界面 展示 三行地址详情,分别是别名(如,公司),地址名(如,中关村XX). 其他(。。。) 选中B界面 地址名(...
分类:
其他好文 时间:
2014-09-10 12:26:10
阅读次数:
183
1.查看系统时区: 方法1: [root@mytest2~]#date-R Sun,07Sep201423:10:23-0400 方法2: [root@mytest2~]#cat/etc/sysconfig/clock #TheZONEparameterisonlyevaluatedbysystem-config-date. #Thetimezoneofthesystemisdefinedbythecontentsof/etc/localtime. ZONE="America/..
分类:
系统相关 时间:
2014-09-09 13:49:39
阅读次数:
300
下午16点25插入数据,显示的createdtime是8点15,我开始在application.rb中是这么设置的时区config.time_zone=‘Beijing‘经过调查后修改为config.active_record.default_timezone=‘Beijing‘,即可显示当前时间。据网上的说法:不加config.active_record.default_timezone=‘Beiji..
分类:
其他好文 时间:
2014-09-06 18:49:34
阅读次数:
180
DNS服务器搭建很繁琐吗?给你个简单的招吧!配置域主服务器阶段:1.在bind的主配置文件中添加该域2.在/var/named中创建该域的zone文件3.编辑zone文件,添加需要的信息4.检测防火墙或selinux设置5.启动bind服务6.使用host或nslookup命令 检测域信息是否正常工...
分类:
其他好文 时间:
2014-09-06 03:21:02
阅读次数:
281
在RHEL7里有几种防火墙共存:firewalld、iptables、ebtables,默认使用firewalld来管理netfilter子系统,不过底层调用的命令仍然是iptables等。因为这几个daemon是冲突的建议禁用其他的几种服务:systemctlmaskiptables(ip6tables,ebtables)在firewalld中使用了区域(zone)的概..
分类:
其他好文 时间:
2014-09-01 02:52:03
阅读次数:
5621
You are estimating the threat level of quarantined zones that have been abandoned to the infection.
One of the key variables in determining a zone’s threat level is the EIT (Effective Infection Time)...
分类:
其他好文 时间:
2014-09-01 00:31:42
阅读次数:
252
方法一:(用互斥锁实现)1、ARC中单例模式的实现:1.1在.m中保留一个全局的static的实例static id _instance;1.2重写allocWithZone:方法,在这里创建唯一的实例(注意线程安全)+ (id)allocWithZone:(struct_NSZone*)zone{...
分类:
其他好文 时间:
2014-08-28 22:30:56
阅读次数:
361