分页: 27/119 第一页 上页 22 23 24 25 26 27 28 29 30 31 下页 最后页 [ 显示模式: 摘要 | 列表 ]
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也就是错误提示里说明的问题.
Mar 31
top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器。下面详细介绍它的使用方法。

top - 01:06:48 up 1:22, 1 user, load average: 0.06, 0.60, 0.48
Tasks: 29 total,   1 running, 28 sleeping,   0 stopped,   0 zombie
Cpu(s): 0.3% us, 1.0% sy, 0.0% ni, 98.7% id, 0.0% wa, 0.0% hi, 0.0% si
Mem:    191272k total,   173656k used,    17616k free,    22052k buffers
Swap:   192772k total,        0k used,   192772k free,   123988k cached

   PID USER      PR NI VIRT RES SHR S %CPU %MEM    TIME+ COMMAND
1379 root      16   0 7976 2456 1980 S 0.7 1.3   0:11.03 sshd
14704 root      16   0 2128 980 796 R 0.7 0.5   0:02.72 top
     1 root      16   0 1992 632 544 S 0.0 0.3   0:00.90 init
     2 root      34 19     0    0    0 S 0.0 0.0   0:00.00 ksoftirqd/0
     3 root      RT   0     0    0    0 S 0.0 0.0   0:00.00 watchdog/0
Mar 23
sphinx的搜索效率和结果都让人觉得很满意.所以我推荐做站内搜索的朋友可以使用sphinx来作为后台的搜索服务.

下载安装文件可以到http://sphinxsearch.com/downloads.html选择你合适版本的安装文件.下面使用源码安装.

wget http://sphinxsearch.com/downloads/sphinx-0.9.9.tar.gz
tar zxvf ./sphinx-0.9.9.tar.gz
cd /sphinx-0.9.9/
./configure --prefix=/usr/local/sphinx/
make
make install

Tags: , ,
分页: 27/119 第一页 上页 22 23 24 25 26 27 28 29 30 31 下页 最后页 [ 显示模式: 摘要 | 列表 ]