上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 网上看了很多资料大多比较繁琐,而且很多不能再最新的CentOS6上执行成功,最后还是自己写了一份,以供日后备用:1.首先是写 service脚本service脚本需要进入到目录/etc/init.d中,然后touch memcached,最后vim memcached后进行脚本编写,脚本如下:#chkconfig:3456060#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin exportPATH exportLANG=en_US.UTF-8start() { echo-n$& 阅读全文
posted @ 2013-04-13 10:08 helloyb 阅读(233) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><html> <head> <meta content="text/html; charset=utf-8" http-equiv=&qu 阅读全文
posted @ 2013-04-10 17:25 helloyb 阅读(770) 评论(0) 推荐(0)
摘要: 系统:centos 5.51.修改php文件大小限制vi /etc/php.ini找到:max_execution_time = 30 ,这个是每个脚本运行的最长时间,单位秒,修改为:max_execution_time = 150找到:max_input_time = 60,这是每个脚本可以消耗的时间,单位也是秒,修改为:max_input_time = 300找到:memory_limit = 128M,这个是脚本运行最大消耗的内存,根据你的需求更改数值,这里修改为:memory_limit = 256M找到:post_max_size = 8M,表单提交最大数据为 8M,此项不是限制上. 阅读全文
posted @ 2013-03-27 13:30 helloyb 阅读(941) 评论(0) 推荐(0)
摘要: Windows下的Memcache安装:1. 下载memcache的windows稳定版,解压放某个盘下面,比如在c:\memcached2. 在终端(也即cmd命令界面)下输入 'c:\memcached\memcached.exe -d install' 安装3. 再输入: 'c:\memcac 阅读全文
posted @ 2013-03-21 15:16 helloyb 阅读(196) 评论(0) 推荐(0)
摘要: 当前项目中,linux下memcached的启动/结束的方式默认情况下memcached安装到/usr/local/bin下。进入安装目录,启动memcached:/usr/local/memcached/bin/memcached -d -c 10240 -m 1024 -u root获取运行状态:echo stats | nc localhost 11211(可以查看出pid) 或使用ps -ef|grep memcached停止memcached:kill -9 pid (-9表示强制杀死,pid 为进程的进程标识符)-d 选项是启动一个守护进程,-m 是分配给Memcache使用的内存 阅读全文
posted @ 2013-03-19 15:53 helloyb 阅读(294) 评论(0) 推荐(0)
摘要: configure: error: memcache support requires ZLIB. Use --with-zlib-dir=<DIR> to specify prefix where ZLIB include and library are locatedERROR: `/var/cache/php-pear/memcache-2.2.5/configure --enable-memcache-session=yes' failedmake sure you have zlib-devel installedyum install zlib-devel 阅读全文
posted @ 2013-03-18 16:15 helloyb 阅读(1559) 评论(0) 推荐(0)
摘要: cPanel/WHM Server. /var is 100% fullI know with a couple of my older installs and some datacenter custom installs. /var is put onto its own partition. Often this partition is not big enough and you sometimes find your logs fulling up the partition to 100% disk space. In /var are the logs, mysql data 阅读全文
posted @ 2013-03-16 09:48 helloyb 阅读(246) 评论(0) 推荐(0)
摘要: 系统概况,主机CentOS6.2 Apache2.4 php5.3.6 mysql5.5开始:首先得确认apache是否已经加载了mod_deflate模块1.httpd -M在结果中查看是否有 deflate_module (shared) 这样的一行字段,如果有说模块己加成功。如果没有需先安装加载mod_deflate模块。确认你的Apache 版本2.0以上有deflate 模块,也就是找到http.conf 配置文件查找是否有LoadModule deflate_module modules/mod_deflate.so一般是默认有的,记得要是前面有“#”就去掉使之生效。2 如果此模块 阅读全文
posted @ 2013-03-15 12:06 helloyb 阅读(372) 评论(0) 推荐(0)
摘要: 在一般情况下,CentOS已经默认安装了libevent的二进制库,但是没有安装相应的开发所用的头文件。所以,你可以使用如下命令来安装:yum install libevent-devel接着可以去http://memcached.org/下载最新的memcached发布版本。解压缩:tar -xzvf memcached-1.4.4.tar.gz配置:cd memcached-1.4.4./configure –with-libevent=/usr/备注:如果 libevent 不是安装在 /usr 目录下,那么需要把 libevent-1.4a.so.1 拷贝/链接到 /usr/lib . 阅读全文
posted @ 2013-03-15 11:56 helloyb 阅读(183) 评论(0) 推荐(0)
摘要: 需要在产品展示左侧添加一个热销商品栏目,但是后台模板设置中,商品详细页并没有热销商品这个项目标签。没办法只有自己想办法增加一个。下面记录下解决方法,希望能帮助到大家。1、首先的增加一个lbi模板文件,比如我的详细页左侧热销商品,用已有的goods_related.lbi复制成一个新的goods_hot.lbi,这样做的目的,主要是我想直接借用浏览历史这个栏目的样式。还是贴下我的goods_related.lbi代码:<meta http-equiv="Content-Type" content="text/html; charset=utf-8"& 阅读全文
posted @ 2013-02-22 10:14 helloyb 阅读(840) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页