备忘
davissuperman
这个作者很懒,什么都没留下…
展开
-
redis php admin
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.gitcd phpRedisAdmingit clone https://github.com/nrk/predis.git vendor翻译 2015-10-09 13:49:13 · 307 阅读 · 0 评论 -
英文拜年
Best wishes for the year to come!恭贺新禧!Good luck in the year ahead! 祝吉星高照!May you come into a good fortune! 恭喜发财!Live long and proper! 多福多寿!May many fortunes find their way to转载 2014-01-26 10:23:42 · 441 阅读 · 0 评论 -
redis 多数据库
http://www.ttlsa.com/redis/redis-database/一台服务器上都快开启200个redis实例了,看着就崩溃了。这么做无非就是想让不同类型的数据属于不同的应用程序而彼此分开。那么,redis有没有什么方法使不同的应用程序数据彼此分开同时又存储在相同的实例上呢?就相当于mysql数据库,不同的应用程序数据存储在不同的数据库下。redis下,转载 2015-11-04 10:46:01 · 1032 阅读 · 0 评论 -
Zabbix
http://www.ttlsa.com/zabbix/zabbix-pdf-new-v2/Zabbix从入门到精通中文手册PDF更新预告距离上一个版本发布已经过去了9个多月,这期间zabbix文章也增加了不少。应该更新《Zabbix从入门到精通》这本PDF了。BTW发布的这几个月得到很多SA们的喜爱与支持,这让我非常的欣慰。本次的更新以增加新内容为主,修改错误为辅转载 2015-11-04 10:47:58 · 325 阅读 · 0 评论 -
magento patch php version
Getting the PHP 5.4 patch for Magento Enterprise Edition (EE) and Community Edition (CE)Magento has a patch that enables you to use PHP 5.4.x with Magento Enterprise Edition (EE) and Magento Communi转载 2015-07-17 15:09:18 · 461 阅读 · 0 评论 -
PID 4 system port 80
http://my.oschina.net/swchenyuzhe/blog/374043因为Apache无法启动的原因,用netstat命令查看了一下80端口是否被占用了,如下?12C:\Users\Maple>netstat -ano | findstr 0.0.0.0:80 TCP 0.0.0.0:80转载 2015-06-04 01:37:51 · 637 阅读 · 0 评论 -
CRONJOB 无法起作用
阿里云服务器 当在命令行执行的时候 非常好 可以生成文件但是在CRONJOB中就是不行50 0 * * * /alidata/www/tools/dump.sh > /dev/null 2>&1最后 发现必须使用绝对路径 否则不行 50 0 * * * /bin/sh /alidata/www/tools/dump.sh > /dev/null 2>&1原创 2015-03-19 10:56:52 · 653 阅读 · 0 评论 -
通过http user-agent判断是否为手机浏览器
http://www.nowamagic.net/librarys/veda/detail/934http://www.nowamagic.net/librarys/veda/detail/934转载 2014-10-14 15:06:53 · 7005 阅读 · 0 评论 -
Git 备忘
1. Config$ git config --global user.name "John Doe"$ git config --global user.email [email protected]原创 2013-03-18 11:34:15 · 516 阅读 · 0 评论 -
APACHE 优化
1. 选择合适的MPM event prefork and worker2. keep-alive 保持连接3. hostnamelookup off4. 反向代理来加速和减轻负载5. max-client 设置6. mode_cache 使用CACHE7. mod_deflate 压缩模块原创 2013-04-11 14:01:16 · 491 阅读 · 0 评论 -
WEB 优化 话题
1. 前段优化雅虎YSLOW 22条Javascript 压缩expire tags设置2. PHP 优化缓存APC - opcodememcache代码 - OOPTDD3. mysql 优化sql语句 左链接,语句不要破坏索引,避免FULL 表使用索引引擎的使用solr xapian4. APACHE优化5. 服务器优化原创 2013-04-11 14:01:53 · 424 阅读 · 0 评论 -
MEMCACHE distribute
/* * //local distribute$memcache = new Memcache;$memcache->addServer('localhost', 11211);$memcache->addServer('localhost', 11212);$memcache->addServer('localhost', 11213);//$memStats = $me原创 2012-12-05 17:47:22 · 206 阅读 · 0 评论 -
php upload file
原创 2012-11-01 10:34:12 · 380 阅读 · 0 评论 -
apache ubuntu 相关操作
1. 查看加载的MODULEsudo apache2ctl -t -D DUMP_MODULES2. 如何加载rewrite moduleLoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so3. 在服务器上没有/archivers/567.html这个物理文件时,重定向到i原创 2012-11-01 11:50:23 · 259 阅读 · 0 评论 -
Mysql 题目
MySQL数据库作发布系统的存储,一天五万条以上的增量,预计运维三年1. 分表,依照月来分2. 读写分离3. 独立的图片服务器4. 分布式架构5. 负载均衡6. 缓存原创 2012-11-01 12:02:07 · 233 阅读 · 0 评论 -
如何解决多进程读写同一个文件
flock()参数: LOCK_EX 独占LOCK_UN 解锁if(flock($file,LOCK_EX)){....}else{ echo "Please wait";}翻译 2012-10-31 17:18:38 · 1112 阅读 · 0 评论 -
PHP CLI 传递参数
fwrite(STDOUT, "Name");$name = fgets(STDIN);fwrite(STDOUT, $name);======================argc argv原创 2012-10-31 17:08:48 · 249 阅读 · 0 评论 -
HTTP 状态码
HTTP2XX - 成功200 - 请求成功 被请求的资源 文本或者图片将会在响应信息中返回3XX - 重定向301 - 永久的重定向302 - 临时的重定向如果文件不存在,会报302 found错但是可以加上第一行 就会返回301 //header( "HTTP/1.1 301 Moved Permanently" );header("Locat翻译 2012-10-31 16:47:50 · 283 阅读 · 0 评论 -
C sizeof 用法
#include #include #include int main(){//printf("int length equal %d \n",sizeof(int));// print int lengthint var = 100;//printf("var length equal %d \n",sizeof(var)); //print variab原创 2012-09-18 15:57:18 · 465 阅读 · 0 评论 -
C strcpy 用法
1. C function strcpy 包含在 string.h 文件中2. 复制字符串#include #include #include int main(){ char *s="hello world \n";char s2[2014];strcpy(s2,s);printf("s2 equal %s \n",s2);return 0;}原创 2012-09-18 15:32:50 · 437 阅读 · 0 评论 -
YII 备忘
1. PHPUNIT报错The file PHPUnit_Extensions_Story_TestCase.php is part of the packagePHPUnit_Story, which can be installed with:pear install phpunit/PHPUnit_Story原创 2013-06-08 13:51:49 · 406 阅读 · 0 评论 -
备忘 - 如何升级 PHPUNIT
First, install PEAR.sudo apt-get install php-pearNext, tell PEAR to update its own channel.sudo pear channel-update pear.php.netThen, tell PEAR to upgrade itself to the newest version.sudo翻译 2013-05-31 13:45:05 · 808 阅读 · 0 评论 -
mysql 乱码
character_set_server = utf8http://www.blogjava.net/wldandan/archive/2007/09/04/142669.html转载 2013-11-05 09:51:53 · 330 阅读 · 0 评论 -
想要看的文章
1.小米的面试经历 http://blog.chunshengster.me/2013/08/san_shi_zhi_huo_2.html原创 2013-08-27 17:18:31 · 458 阅读 · 0 评论 -
JAVASCRIPT 自动跳转 代码
echo 该页将在 3秒后自动跳转! var int=self.setInterval("countdown()",1000); function countdown(){ var t=document.getElementById("setouttime").innerHTML-原创 2013-09-05 14:30:05 · 807 阅读 · 0 评论 -
ubuntu - eclipse 乱码
首先要修改/var/lib/locales/supported.d这个文件夹的权限,否则不能修改该文件夹下的local文件,使用如下命令 sudo chmod -R 777 /var/lib/locales/supported.d修改/var/lib/locales/supported.d/local文件,在文件中添加zh_CN.GBK GBKzh_CN.GB2312 GB2312转载 2013-08-12 17:21:11 · 359 阅读 · 0 评论 -
文档 用 微软雅黑
文档 用 微软雅黑原创 2013-08-20 15:24:13 · 1382 阅读 · 0 评论 -
sphinx - 安装
1. ubuntu apt-get install sphinxsearch2. php 使用CN 99的源3.sudo apt-get install libsphinxclient-dev4. sudo pear install pecl/sphinx原创 2013-07-29 11:32:21 · 528 阅读 · 0 评论 -
phpunit - selenium
1. http://phpunit.de/manual/3.1/en/selenium.html原创 2013-07-02 12:18:36 · 599 阅读 · 0 评论 -
smg
http://localhost/cook/index.php/api/famousdish/detail/id/3{data: {famousdish: {id: "3",title: "鱿鱼",popularcomment: "GOOD",restaurantid: "4"},restauran原创 2013-07-10 09:45:56 · 498 阅读 · 0 评论 -
Symfony2 教程 - 备忘
1.Jobeet Tutorial with Symfony2 http://www.ens.ro/2012/03/21/jobeet-tutorial-with-symfony2/2,。 使用Symfony2的组件创建自己的PHP框架(第一部分)http://chrisyue.com/posts/272.%E4%BD%BF%E7%94%A8symfony2原创 2013-05-31 20:58:22 · 1193 阅读 · 0 评论 -
C strcmp
#include #include #include int main(){char * str = "aquit";int i = strcmp(str,"quit");printf("strcmp equal %d \n",i);char * str2 = "qzuit";int i2 = strcmp(str2,"quit");prin原创 2012-09-18 16:28:21 · 529 阅读 · 0 评论