上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页

2012年11月12日

ERROR 2006 (HY000) at line : MySQL server has gone away

摘要: While using a script to overwrite my local database with the Prod database, I ran into this error: ERROR 2006 (HY000) at line 27652: MySQL server has gone awaySome Google-fu indicated that it was a timeout problem. I found information on fixing it online, but none of it applied to my setup -- I' 阅读全文

posted @ 2012-11-12 17:12 haven24 阅读(2302) 评论(0) 推荐(1)

图片比例问题

摘要: 原因是权限问题 图片不按照比例进行展示解决办法:$image_size = @getimagesize($src);替换成: $image_size = @getimagesize("http://".$_SERVER['HTTP_HOST']."/".$src); 阅读全文

posted @ 2012-11-12 15:43 haven24 阅读(170) 评论(0) 推荐(0)

2012年11月10日

服务器后端开发系列——《实战Nginx高性能Web服务器》 (转载)

摘要: 服务器后端开发系列——《实战Nginx高性能Web服务器》 http://blog.csdn.net/poechant/article/details/7213546安装 这一次我们要学习什么?就是用Nginx在一台机器上搭建一个最简单的显示“Hello World”的Web服务器。那我们就 step by step 来尝试吧~ 1. Nginx 程序包 目前最新的开发版本时1.1.12: Linux/Unix:nginx-1.1.12.tar.gz Windows:nginx-1.1.12.zip 我们可以下载稳定版尝试: Linux/Unix:n... 阅读全文

posted @ 2012-11-10 11:54 haven24 阅读(526) 评论(0) 推荐(0)

Nginx+proxy_cache高速缓存配置 (转载)

摘要: http://cookingbsd.blog.51cto.com/5404439/932598前言* Nginx已经具备Squid所拥有的Web缓存加速功能、清除指定URL缓存的功能。而在性能上,Nginx对多核CPU的利用,胜过Squid不少。 另外,在反向代理、负载均衡、健康检查、后端服务器故障转移、Rewrite重写、易用性上,Nginx也比Squid强大得多。这使得一台Nginx可 以同时作为“负载均衡服务器”与“Web缓存服务器”来使用。 一、 安装nginx和ngx-purge: ulimit -SHn 65535 yum install pcre pcre-devel -y .. 阅读全文

posted @ 2012-11-10 11:52 haven24 阅读(611) 评论(0) 推荐(0)

2012年11月9日

VPS满了,导致网站跑不了

摘要: vps满了。清空不必要的数据报错如下1 Can't create/write to file '/tmp/#sql_646_0.MYI' (Errcode: 122)in:[select p.products_image, pd.products_name, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_descri 阅读全文

posted @ 2012-11-09 22:54 haven24 阅读(233) 评论(0) 推荐(0)

2012年11月7日

Nginx 配置文件nginx.conf的完整配置说明-<转>

摘要: 研究这个东西好多天了...没人教,难啊...什么都得一个一个搜索。Fuck 来源 v 51cto http://blog.s135.com/tags/nginx/ 中文文档:http://wiki.nginx.org/NginxChs #用户 用户组 user www www; #工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点 worker_processes 5; #错误日志 error_log logs/error.log; #pid文件位置 pid logs/nginx.pid; worker_rlimit_nofile 8192; events { #工作... 阅读全文

posted @ 2012-11-07 14:41 haven24 阅读(259) 评论(0) 推荐(0)

2012年11月1日

Linux磁盘空间满不能提供服务时,解决注意事项(转)

摘要: 一、千万不能急着重启系统,先早到问题原因。 二、如果检查到是磁盘空间满的问题。 发现磁盘满时,不能急,小心操作,认真分析原因,然后小心应对。需要注意,以下十招不需要顺序执行,有的可能一招封喉,有的可能需要数招并用,删除操作一定要小心。如果还不行,只有采取增加硬盘,重新安装系统等“硬” 办法了。 还可以: cd \ du -h --max-depth=1|grep G|sort -n 找到最大的那个目录后进入该目录 再运行du -h --max-depth=1|grep G|-n 如果没有结果可以运行 du -h --max-depth=1|grep M|... 阅读全文

posted @ 2012-11-01 10:09 haven24 阅读(640) 评论(0) 推荐(0)

mysql日志塞满分区后,导致连接不上mysql server

摘要: 清空日志方法:1. 我最后执行如下命令,就是只保留最近3天的日志, mysql> PURGE MASTER LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 3 DAY);2.mysql> show variables like '%log%'; 查到了 | expire_logs_days | 0 | 这个默认是0,也就是logs不过期,这个是一个global的参数,所以需要执行 set global expire_logs_days=8; 这样8天前的log就会被删除了,如果有回复的需要,请做好备份工作,但这样设置还不行,下次重启.. 阅读全文

posted @ 2012-11-01 09:05 haven24 阅读(499) 评论(0) 推荐(0)

2012年10月31日

grep -i pattern files :不区分大小写地搜索。默认情况区分大小写,

摘要: grep -i pattern files :不区分大小写地搜索。默认情况区分大小写, 阅读全文

posted @ 2012-10-31 17:52 haven24 阅读(2818) 评论(0) 推荐(0)

网站出现无法访问,问题如下图所示

摘要: This is the LxAdmin Default Page for abc.com If you are seeing this page, it means that the Domain has been successfully configured on the machine, but the files has not been uploaded yet. Please contact the adminstrator for the login information..htaccess添加如下代码 DirectoryIndex index.php 阅读全文

posted @ 2012-10-31 11:27 haven24 阅读(369) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页

导航