分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]
Apr 27
有时候在程序里面需要打开多个文件,进行分析,系统一般默认数量是1024,(用ulimit -a可以看到)对于正常使用是够了,但是对于程序来讲,就太少了。
修改办法:
重启就OK
修改2个文件。
1./etc/security/limits.conf
vi /etc/security/limits.conf
加上:
* soft nofile 8192
* hard nofile 20480

2./etc/pam.d/login
session    required     /lib/security/pam_limits.so


ulimit -a查看 下 OK
Apr 23
权限系统无论写b/s还是c/s系统的人都必需考虑的一个重要部分。我自己也考虑过很多套不同的权限系统方案。也已经运行的很好。但有时候也会混乱。因为分不清这是什么一种形式,跟别人解释也成问题。下面是我从百科里看到一个分类方法。

引用

从控制力度来看,可以将权限管理分为两大类:
  1,功能级权限管理;
  2,数据级权限管理。
从控制方向来看,也可以将权限管理分为两大类:
  1,从系统获取数据,比如查询订单、查询客户资料;
  2,向系统提交数据,比如删除订单、修改客户资料。

Apr 21


1.概念

Cache-control用于控制HTTP缓存(在HTTP/1.0中可能部分没实现,仅仅实现了Pragma: no-cache)

数据包中的格式:

Cache-Control: cache-directive

cache-directive可以为以下:

request时用到:

| "no-cache"
| "no-store"
| "max-age" "=" delta-seconds
| "max-stale" [ "=" delta-seconds ]
| "min-fresh" "=" delta-seconds
| "no-transform"
| "only-if-cached"
| "cache-extension"

response时用到:

| "public"
| "private" [ "=" <"> field-name <"> ]
| "no-cache" [ "=" <"> field-name <"> ]
| "no-store"
| "no-transform"
| "must-revalidate"
| "proxy-revalidate"
| "max-age" "=" delta-seconds
| "s-maxage" "=" delta-seconds
| "cache-extension"
Apr 8
在重启了外国B的服务器后,发现国内A数据库同步突然停止了,导致国内A服务器复制失败,如下:

国内A就报下面的错误:

090910 22:47:18 [ERROR] Error reading packet from server: Client requested master to start replication from impossible position ( server_errno=1236)
090910 22:47:18 [ERROR] Got fatal error 1236: Client requested master to start replication from impossible position from master when reading data from binary log
090910 22:47:18 [Note] Slave I/O thread exiting, read up to log mysql-bin.000008, position 753871857

国外B是正常的。
然后我上网找一些一些资料.
出现这样的错误是由于同步数据的位出现错误.shuai也就是错误提示里说明的问题.
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]