2017年6月24日

摘要: 1、先进入指定目录,比如:cd /var/ftp/ss 2、输入指定命令,相关命令如下介绍: 最近24小时内修改过的文件 find ./ -mtime 0 前48~24小时修改过的文件 find ./ -mtime 1 最近30分钟修改的.php文件 find . -name '*.php' -mm 阅读全文
posted @ 2017-06-24 17:12 simon123 阅读(2356) 评论(0) 推荐(0) 编辑

2017年5月8日

摘要: 参考http://www.cnblogs.com/huqiang/p/5333975.html 阅读全文
posted @ 2017-05-08 22:45 simon123 阅读(138) 评论(0) 推荐(0) 编辑

2017年3月27日

摘要: 输入命令 du -sh /* | sort -nr 会列出根目录文件夹的大小 看到哪个文件夹比较大 删除相应的缓存,重启服务器即可 阅读全文
posted @ 2017-03-27 12:53 simon123 阅读(2307) 评论(0) 推荐(0) 编辑

2017年2月3日

摘要: <?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","300","100%")?><table width="100%" border="0" cellpaddin 阅读全文
posted @ 2017-02-03 22:59 simon123 阅读(319) 评论(0) 推荐(0) 编辑

2016年12月9日

摘要: 我们站长查看网站访问数据,分析IP来源是我们站长的日常工作,对一些异常的IP段,我们首先要区分是否是搜索引擎蜘蛛的IP段,以免误伤,下面我们就以2段IP为例,一个是百度蜘蛛的220.181.108.140,另外一个是非百度蜘蛛的180.91.55.21。看看应该如何区分百度搜索引擎蜘蛛的IP段。 一 阅读全文
posted @ 2016-12-09 15:02 simon123 阅读(271) 评论(0) 推荐(0) 编辑

2016年11月12日

摘要: 1、PHP-FPM高负载的解决办法 http://blog.haohtml.com/archives/11162 2、Nginx优化配置 http://blog.haohtml.com/archives/6213 http://www.oschina.net/translate/nginx-setu 阅读全文
posted @ 2016-11-12 00:17 simon123 阅读(212) 评论(0) 推荐(0) 编辑

2016年11月7日

摘要: /etc/php-fpm.d 2.1进程数 php-fpm初始/空闲/最大worker进程数 pm.max_children = 300 pm.start_servers = 20 pm.min_spare_servers = 5 pm.max_spare_servers = 35 2.2最大处理请 阅读全文
posted @ 2016-11-07 23:08 simon123 阅读(259) 评论(0) 推荐(0) 编辑

2016年11月6日

摘要: 500错误,因为文件句柄限制了访问量 ulimit -n可以看到默认的1024 ulimit -n 65535 这样可以设置为大些 但重启服务器又变成1024 永久性解决办法: 步骤一 /etc/security/limits.conf在后面加上:* soft nofile 10240* hard 阅读全文
posted @ 2016-11-06 20:37 simon123 阅读(136) 评论(0) 推荐(0) 编辑

2016年11月3日

摘要: 把memcache.php放在可以访问的位置,默认账户admin,密码admin 参考http://a.linji.cn/2011/12/memcachedphp.txt http://linji.cn/4161.html#toc-memcached7 具体代码如下: 阅读全文
posted @ 2016-11-03 23:05 simon123 阅读(158) 评论(0) 推荐(0) 编辑

2016年9月25日

该文被密码保护。 阅读全文
posted @ 2016-09-25 23:34 simon123 阅读(76) 评论(0) 推荐(0) 编辑

导航