Get http://aws.amazon.com/ accout
Get shell,Get log...
http://www.protocolostomy.com/2008/06/03/simple-s3-log-archival/
Get http://aws.amazon.com/ accout
Get shell,Get log...
http://www.protocolostomy.com/2008/06/03/simple-s3-log-archival/
只好自己增加handler了:
[xxx/awstats/cgi-bin]
$ cat .htaccess
AddHandler cgi-script .cgi .pl
俺家闺女20周彩超时,绕颈一周!
今天再次B超回来,不饶了,真是聪明的小孩!
所以,聪明的小孩就是会自己绕颈在绕开,笨小孩呢,要么根本不会饶,要么绕了一圈又一圈咯!哈哈
$ cat getlog.sh
#!/bin/sh
cd /home/yimutian/logs
datestr=`date +%Y%m%d -d '1 days ago'`
filename="www.guduo.net."$datestr
Year=`date +%Y -d '0 days ago'`
Month=`date +%b -d '0 days ago'`
logfile="guduo.yimutian.net-"$Month"-"$Year".gz"
echo $logfile
/bin/gzip -dc $logfile > /home/yimutian/apache_logs/$filename
放入crontab,在fastdomain增量打包每天的日志后自己再备份一个给awstats用。
今天6.1,各商家正式开始不免费提供一次性购物袋!
沃尔玛:刷信用卡卡满100 前1000名可免费领取一个,可惜俺刷完去领,已经被领完!如果当天自带了环保购物袋的,凭当天小票可免费领取一个沃尔玛环保购物袋,可惜俺没带!
没办法,偷偷把装大米那种封口塑料袋扯了2个大的带出收银台,再临时用它拎回家了,不过质量真的不咋样,到家都裂了,脆!
今日消费:
3罐雅培奶粉,一壶油,3套婴儿衣服,婴儿用毛巾,面巾,浴巾各一!
加上其他杂物,花费1500大洋!
今天去沃尔玛,购入金龙鱼油茶籽油一桶,顶上3桶大豆油的价格了,着实有点贵,不过据说营养价值很不错的。虽然价格不便宜,但居然附送一本《红楼食谱》 -- 金龙鱼油茶籽油食文化丛书,后面的定价达到28RMB,嘿嘿。
看在"红楼"的份上,心里反倒觉得一点不贵了!值!
BTW:6.1国际儿童节 结婚2周年纪念日
昨天看了 ebay-scalability-best-practices ,做了简单的摘要记录:
可扩展的衡量:性价比
Best Practice #1: Partition by Function
Further, the more decoupled that unrelated functionality can be, the more flexibility you will have to scale them independently of one another.
代码层,应用层,数据库层都需要进行功能分割,好处:可以独立的扩展
Best Practice #2: Split Horizontally
垂直分割?
减少耦合后,任何一个单个模块可以搞定自己的系统,不依赖其他
无状态的应用服务器,没有事务,任意扩展--scale out
数据库:肯定是有状态的 shard 简单的取模分割,扩展 取模的key可以是很多
Best Practice #3: Avoid Distributed Transactions
The CAP theorem, postulated almost 10 years ago by Inktomi's Eric Brewer, states that of three highly desirable properties of distributed systems - consistency (C), availability (A), and partition-tolerance (P) - you can only choose two at any one time. For a high-traffic web site, we have to choose partition-tolerance, since it is fundamental to scaling. For a 24x7 web site, we typically choose availability. So immediate consistency has to give way.
避免分布式事务,用另外的方法尽量保证一致性
Best Practice #4: Decouple Functions Asynchronously
Techniques like SEDA (Staged Event-Driven Architecture) can be used for asynchrony inside an individual component while retaining an easy-to-understand programming model. Between components, the principle is the same -- avoid synchronous coupling as much as possible.
异步解耦,减少系统间的耦合
Best Practice #5: Move Processing To Asynchronous Flows
异步处理
Best Practice #6: Virtualize At All Levels
对上层调用者屏蔽实现细节 O-R LVS-balance都是属于这种
Best Practice #7: Cache Appropriately
避免cache滥用,造成系统对cache 可用性的依赖,影响系统的可靠性。
如何理解这些名词,如何使用它们?
1)awstats等已经先装好了的,比较难用
2)crontab无法自己编辑,必须通过cPanel进行,我现在还没有运行成功!
3)apache log 被我找到了:/var/log/domlogs/yimutian/。。。
4)awstats自己配置了一个,郁闷的是搞了半天,以前的那个认证文件弄丢了导致!
暂时先记录这些,相比dreamhost,确实限制更严格了,不过也好,俺之前在DH上的主机昨天据说已经被封禁,无法访问,郁闷之极!
之前和人合租的DreamHost主机空间被干掉了!愤怒!
昨天下午进行了数据导出,今天临晨基本打包了整个guduo.net,中午购买了FastDomain的空间,
下午的时候访问guduo.net就会出现异常,ssh也无法登陆,主机down了!
万幸!俺之前已经了数据备份。
晚上重新设置了DNS指向,现在还没完全生效,现在还是直接修改本地hosts指向到这里的!
备份恢复的过程基本还算顺利,FastDomain的cPanel和DH的还是有很大区别,碰到的几个主要问题:
1)mysql的配置设置有些不同
2)MT恢复的时候widget sets 丢失,手工修改
3)lilina的问题:Cannot redeclare class soapclient
“Cannot redeclare class soapclient”
Try this:
There seems to be a clash of PHP5 build-in soap class and the nusoap class. Simply rename all occurences of “soapclient” in all 10 nusoap files into “soapclientw” (or whatever instead of “w”) and for me it worked.