会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Debm.Zhang
浮名利,拟拼休,是非莫挂心头。 ---柳永<如鱼水>
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
2015年1月30日
Notice : Soft open files now is 1024, We recommend greater than 10000
摘要: 在研究 workerman 时, 报了这个错误, 感觉只是个notice级别的, 就一直给忽略掉了, 今天有时间, 就查了一下.其实本质就是 ulimit 这个命令打开一个命令行, 输入 ulimit -a可以查看到, 当前系统所有的限制[root@butterfly ~]# ulimit -aco...
阅读全文
posted @ 2015-01-30 15:58 Debm.Zhang
阅读(268)
评论(0)
推荐(0)
2015年1月19日
php declare (ticks = N)
摘要: A tick is an event that occurs for everyNlow-level tickable statements executed by the parser within thedeclareblock. The value forNis specified using...
阅读全文
posted @ 2015-01-19 17:30 Debm.Zhang
阅读(824)
评论(0)
推荐(0)
2015年1月17日
使用 trait 时报PHP Parse error: syntax error, unexpected 'use' (T_USE) 这个错误
摘要: 找一大圈原因, 最后终于找到了, 不是PHP版本的原因[], 是自己把use 写到了类里的方法里了.这个东东, 不能脱离类单独使用, 否则的话, 会被认为是命名空间了.测试例子如下// Trait.phptrait CustomerFunctionsTrait { public functio...
阅读全文
posted @ 2015-01-17 18:21 Debm.Zhang
阅读(6568)
评论(0)
推荐(0)
2015年1月7日
yii2 and short_open_tag
摘要: 在看yii2的时候, 在main文件里看到了这样一段代码language ?>而我查看了php.ini里的配置, short_open_tag=Off, 是关闭的.于是查了 php.net 关于 short_open_tag 的说明, 其中有一句This directive also affecte...
阅读全文
posted @ 2015-01-07 11:03 Debm.Zhang
阅读(240)
评论(0)
推荐(0)
2015年1月6日
Nginx负载均衡配置实例详解
摘要: http://www.php100.com/html/program/nginx/2013/0905/5525.html负载均衡是我们大流量网站要做的一个东西,下面我来给大家介绍在Nginx服务器上进行负载均衡配置方法,希望对有需要的同学有所帮助哦。负载均衡先来简单了解一下什么是负载均衡,单从字面上...
阅读全文
posted @ 2015-01-06 15:32 Debm.Zhang
阅读(172)
评论(0)
推荐(0)
2015年1月5日
Could not fetch https://api.github.com/repos/RobinHerbots/jquery
摘要: 使用 composer 安装YII2时, 如题所示提示, 原因是由于yii安装中, 需要有一些相关的认证[或许说是composer的认证], 如有如下提示Could not fetch https://api.github.com/authorizations, enter your GitHub ...
阅读全文
posted @ 2015-01-05 18:58 Debm.Zhang
阅读(3494)
评论(0)
推荐(0)
2014年12月31日
linux(centos)上配置nginx、mysql、php-fpm、redis开机启动<转>
摘要: 原文http://levi.cg.am/archives/2925I、nginx开机启动在/etc/init.d/目录下创建脚本1vi /etc/init.d/nginx更改脚本权限1chmod 775 /etc/init.d/nginx编写脚本内容1234567891011121314151617...
阅读全文
posted @ 2014-12-31 10:31 Debm.Zhang
阅读(442)
评论(0)
推荐(0)
php-fpm 启动参数及重要配置详解<转>
摘要: 原文地址 http://levi.cg.am/archives/3127约定几个目录/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini一,php-fpm的启动参数1234567891...
阅读全文
posted @ 2014-12-31 10:09 Debm.Zhang
阅读(314)
评论(0)
推荐(0)
2014年12月30日
Nginx报错:Sorry, the page you are looking for is currently unavailable. Please try again later.
摘要: 查看了进程, nginx, php-fpm都在运行, 排除程序错误, 那么就是配置的问题了.一个可能的错误, 是由于配置中的fastcgi_pass 配置错了错误的配置如下server { listen 80; server_name localhost; #cha...
阅读全文
posted @ 2014-12-30 18:34 Debm.Zhang
阅读(110197)
评论(1)
推荐(1)
mcrypt.h not found. Please reinstall libmcrypt
摘要: 在centos上对php5.6进行源码安装的时候, 出现了如题所示错误提示, 原因是由于centos源不能安装libmcrypt-devel,由于版权的原因没有自带mcrypt的包解决办法使用php mcrypt 前必须先安装Libmcryptlibmcrypt源码安装方法:cd /usr/loca...
阅读全文
posted @ 2014-12-30 10:09 Debm.Zhang
阅读(314)
评论(1)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
14
下一页
公告