1.git clone https://github.com/phpredis/phpredis.git
2./usr/local/php7/bin/phpize
提示缺autoconf
apt-get install m4
apt-get install autoconf
3../configure 报错,找不到php-config
./configure –with-php-config=/usr/local/php7/bin/php-config
4.make && make install 报错,文件各种找不到
默认分支没法给php7编译,换分支
5.git clone -b php7 https://github.com/phpredis/phpredis.git
6.重复之前步骤
7.编译通过
继续阅读php7安装redis扩展PhpRedis
月度归档: 2015 年 12 月
phpstorm XX方法
注册时选择
License server
,填
http://idea.lanyus.com/
http://idea.qinxi1992.cn
,然后点击 OK,就搞定了。
注意
http://idea.lanyus.com/
http://idea.qinxi1992.cn
务必加上最后的
/
,否则激活失败
Ubuntu编译安装PHP7.0.0
Ubuntu下迁移MySQL数据库文件目录
用Ubuntu的apt包管理工具安装的mysql数据库,默认将数据库文件保存在/var/lib/mysql目录下,时间久了数据库越来越大,所以准备挂载个新的硬盘专门存放mysql数据库。
Nginx中worker_connections的问题
转载自http://hi.baidu.com/u_chen/item/560f1504a0a77367d45a1184
查看日志,有一个[warn]: 3660#0: 20000 worker_connections are more than open file resource limit: 1024 !!
快速部署debian + VNC
install lxde
kali: apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base
ubuntu: apt-get install lxde-core lxde desktop-base
Just install LXDE as v-mos said, and start it by adding “exec startlxde” on “~/xstartup”.
加上autocutsel &生效剪贴板