<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[DCD的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/DCD</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; DCD]]></copyright><item><title><![CDATA[centos7 安装btsync]]></title><link>https://blog.csdn.net/DCD/article/details/79879436</link><guid>https://blog.csdn.net/DCD/article/details/79879436</guid><author>DCD</author><pubDate>Tue, 10 Apr 2018 12:39:20 +0800</pubDate><description><![CDATA[btsync是我很喜欢的一款同步软件，主要是可以把文件加密存放到外部存储空间，能协助备份的同时还不用担心安全问题。btsync的密钥有3种，读写key，只读key，加密key。外部存储空间直接用加密key存储，文件完全不知道是什么内容。下载并解压缩：wget https://download-cdn.resilio.com/stable/linux-x64/resilio-sync_x64.tar...]]></description><category></category></item><item><title><![CDATA[安装lnmp脚本]]></title><link>https://blog.csdn.net/DCD/article/details/51373091</link><guid>https://blog.csdn.net/DCD/article/details/51373091</guid><author>DCD</author><pubDate>Wed, 11 May 2016 14:19:13 +0800</pubDate><description><![CDATA[yum install epel-release yum-plugin-priorities yum-plugin-protectbase -y
rpm --import https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY
rpm -i https://centos6.iuscommunity.org/ius-release.rp]]></description><category></category></item><item><title><![CDATA[Yii2前后台分开用户表]]></title><link>https://blog.csdn.net/DCD/article/details/51064233</link><guid>https://blog.csdn.net/DCD/article/details/51064233</guid><author>DCD</author><pubDate>Tue, 05 Apr 2016 13:58:03 +0800</pubDate><description><![CDATA[前台：main.php
    'components' => [
        'user' => [
            'identityClass' => 'common\models\User',
            'enableAutoLogin' => true,
'idParam' => '__user',
'identityCookie' => ['nam]]></description><category></category></item><item><title><![CDATA[dokuwiki在nginx的配置]]></title><link>https://blog.csdn.net/DCD/article/details/50561756</link><guid>https://blog.csdn.net/DCD/article/details/50561756</guid><author>DCD</author><pubDate>Fri, 22 Jan 2016 14:24:38 +0800</pubDate><description><![CDATA[最近装了dokuwiki，需要在nginx上做权限限制。
apache有现成的，nginx需要在conf文件里屏蔽4个目录的访问权限。如下：
location ~ /(data|conf|bin|inc)/ {
    deny all;
}]]></description><category></category></item><item><title><![CDATA[php-fpm使用多进程池]]></title><link>https://blog.csdn.net/DCD/article/details/50541506</link><guid>https://blog.csdn.net/DCD/article/details/50541506</guid><author>DCD</author><pubDate>Tue, 19 Jan 2016 11:52:51 +0800</pubDate><description><![CDATA[参考：http://mail.cfanz.cn/index.php?c=article&a=read&id=284348
环境：cento6 nginx phpfpm
默认php-fpm只启动一个池，在/etc/php-fpm.d/www.conf
/etc/php-fpm.conf里，会加载/etc/php-fpm.d/下*.conf文件，所以直接复制出来一份www.conf修改后即可。别]]></description><category></category></item><item><title><![CDATA[限制php只能在当前目录下执行]]></title><link>https://blog.csdn.net/DCD/article/details/50536299</link><guid>https://blog.csdn.net/DCD/article/details/50536299</guid><author>DCD</author><pubDate>Mon, 18 Jan 2016 14:03:24 +0800</pubDate><description><![CDATA[为了更加安全，需要限制虚拟站点目录下的php文件只能在当前站点下运行。
在nginx的站点配置文件里，php块，增加如下代码：
fastcgi_param  PHP_VALUE  "open_basedir=/www/sitepath";
通过只在当前站点配置open_basedir来限制，如果在php.ini配置，会影响所有站点。
就是不知道为什么，每次nginx reload后，php]]></description><category></category></item><item><title><![CDATA[Yii2默认界面增加多级菜单]]></title><link>https://blog.csdn.net/DCD/article/details/50510876</link><guid>https://blog.csdn.net/DCD/article/details/50510876</guid><author>DCD</author><pubDate>Wed, 13 Jan 2016 15:11:21 +0800</pubDate><description><![CDATA[Yii 2.0.6
参考：http://blog.csdn.net/zhongyuan_1990/article/details/31789541
在css中，增加：
        .dropdown-submenu {
            position: relative;
        }
        .dropdown-submenu > .dropdown-menu ]]></description><category></category></item><item><title><![CDATA[在git.oschina上使用WebHook自动部署]]></title><link>https://blog.csdn.net/DCD/article/details/50314145</link><guid>https://blog.csdn.net/DCD/article/details/50314145</guid><author>DCD</author><pubDate>Tue, 15 Dec 2015 15:07:39 +0800</pubDate><description><![CDATA[首先创建密钥对，用于连接oschina
ssh-keygen

选择存放位置，输入密码
密钥对生成完成


将web目录改为apache用户所有。



sudo -u apache ssh-keygen -t rsa -C "email@email.com"

我这使用apache用户执行php脚本，执行上面命令创建一个密钥
会在/var/www/.ssh中看到相应的]]></description><category></category></item><item><title><![CDATA[使用密钥ssh登录到主机]]></title><link>https://blog.csdn.net/DCD/article/details/50313073</link><guid>https://blog.csdn.net/DCD/article/details/50313073</guid><author>DCD</author><pubDate>Tue, 15 Dec 2015 11:57:37 +0800</pubDate><description><![CDATA[先用密码登录到主机
将公钥信息写入 ~/.ssh/authorized_keys
.ssh 权限为700
authorized_keys 权限为600



修改vim /etc/ssh/sshd_config 
PubkeyAuthentication yes    #启用公告密钥配对认证方式 
AuthorizedKeysFile .ssh/authorized_keys  ]]></description><category></category></item><item><title><![CDATA[linux下shell脚本文件明明存在却说不存在的问题]]></title><link>https://blog.csdn.net/DCD/article/details/50281787</link><guid>https://blog.csdn.net/DCD/article/details/50281787</guid><author>DCD</author><pubDate>Sun, 13 Dec 2015 11:33:32 +0800</pubDate><description><![CDATA[大多是windows下创建的文件，非unix格式，用vim转换一下就好。


vim打开
输入
:set ff=unix]]></description><category></category></item><item><title><![CDATA[尝试使用ManifoldJS]]></title><link>https://blog.csdn.net/DCD/article/details/49780555</link><guid>https://blog.csdn.net/DCD/article/details/49780555</guid><author>DCD</author><pubDate>Wed, 11 Nov 2015 14:16:01 +0800</pubDate><description><![CDATA[github：https://github.com/manifoldjs/ManifoldJS
wiki：https://github.com/manifoldjs/manifoldJS/wiki/Getting-Started


windows下，首先安装node.js
https://nodejs.org/en/

安装5.0最新版，默认安装npm


cmd下安装man]]></description><category></category></item><item><title><![CDATA[docker学习笔记（二）导入导出镜像]]></title><link>https://blog.csdn.net/DCD/article/details/48624427</link><guid>https://blog.csdn.net/DCD/article/details/48624427</guid><author>DCD</author><pubDate>Mon, 21 Sep 2015 12:35:42 +0800</pubDate><description><![CDATA[docker导入导出镜像原来是有2套方案
1，export/import
2，save/load
区别是export导出的镜像小，save的大。
原因是save保存了版本信息，export则没有。]]></description><category></category></item><item><title><![CDATA[docker学习笔记（一）]]></title><link>https://blog.csdn.net/DCD/article/details/48597133</link><guid>https://blog.csdn.net/DCD/article/details/48597133</guid><author>DCD</author><pubDate>Sun, 20 Sep 2015 17:09:14 +0800</pubDate><description><![CDATA[docker在centos7下，可以直接#yum install docker，安装后，也是一个service
在centos6下：
yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
yum install docker-io

想自己搞套LNMP，总装这些，太麻烦了，甚至加上red]]></description><category></category></item><item><title><![CDATA[PHP安装redis扩展]]></title><link>https://blog.csdn.net/DCD/article/details/48340705</link><guid>https://blog.csdn.net/DCD/article/details/48340705</guid><author>DCD</author><pubDate>Thu, 10 Sep 2015 12:34:33 +0800</pubDate><description><![CDATA[PHP扩展有很多，参考：http://redis.io/clients#php
官方打星的就是phpredis Predis，phpredis是C写的，效率会高写，Predis是PHP写的，能直接看到源码。
下载phpredis，一方面是觉得性能好，另一方面主要是用它来存session，地址：https://github.com/phpredis/phpredis/tree/2.2.7
不知]]></description><category></category></item><item><title><![CDATA[yii2 集成mongodb]]></title><link>https://blog.csdn.net/DCD/article/details/48240979</link><guid>https://blog.csdn.net/DCD/article/details/48240979</guid><author>DCD</author><pubDate>Sun, 06 Sep 2015 11:15:51 +0800</pubDate><description><![CDATA[首先，在本地安装mongodb的php扩展。
参考：http://us1.php.net/manual/zh/book.mongo.php
本地是windows，下载dll扩展文件，放到php的ext目录下。
下载地址：https://pecl.php.net/package/mongo

需要先知道自己本地PHP环境，涉及到Thread Safety和Architecture，可以用p]]></description><category></category></item><item><title><![CDATA[ab压nginx集群失败率的问题]]></title><link>https://blog.csdn.net/DCD/article/details/47006439</link><guid>https://blog.csdn.net/DCD/article/details/47006439</guid><author>DCD</author><pubDate>Wed, 22 Jul 2015 17:11:51 +0800</pubDate><description><![CDATA[感觉很奇怪，集群里有2台服务器时，ab是50%失败率，3台是67%失败率，不知道怎么回事，但的确和服务器数量有关系。
后来才明白，ab把第一次请求到的content-length作为基准，如果后边的不同，则认为失败。只要把相关页面搞成一样的就可以了。


参考：http://www.programgo.com/article/55082933572/]]></description><category></category></item><item><title><![CDATA[mongodb启动的一些警告处理方法]]></title><link>https://blog.csdn.net/DCD/article/details/46967883</link><guid>https://blog.csdn.net/DCD/article/details/46967883</guid><author>DCD</author><pubDate>Mon, 20 Jul 2015 14:30:49 +0800</pubDate><description><![CDATA[mongodb启动时一些警告
echo never >/sys/kernel/mm/transparent_hugepage/enabled

echo never>/sys/kernel/mm/transparent_hugepage/defrag

vi /etc/security/limits.d/90-nproc.conf //修改1024 为32000
重启mongod]]></description><category></category></item><item><title><![CDATA[centos安装xdebug]]></title><link>https://blog.csdn.net/DCD/article/details/46624571</link><guid>https://blog.csdn.net/DCD/article/details/46624571</guid><author>DCD</author><pubDate>Wed, 24 Jun 2015 17:30:51 +0800</pubDate><description><![CDATA[参考：http://segmentfault.com/a/1190000002608306
首先下载xdebug的源码，到http://www.xdebug.com/download.php
#wget http://www.xdebug.com/files/xdebug-2.3.3.tgz
解压缩
#phpize
#./configure
#make
#make install
]]></description><category></category></item><item><title><![CDATA[linux自动校时]]></title><link>https://blog.csdn.net/DCD/article/details/46607787</link><guid>https://blog.csdn.net/DCD/article/details/46607787</guid><author>DCD</author><pubDate>Tue, 23 Jun 2015 17:02:47 +0800</pubDate><description><![CDATA[首先安装yum install ntpdate
crontab -e
0 * * * * /usr/sbin/ntpdate s1a.time.edu.cn

加入上面一行，完成。]]></description><category></category></item><item><title><![CDATA[html5通过浏览器调用手机相机]]></title><link>https://blog.csdn.net/DCD/article/details/46361555</link><guid>https://blog.csdn.net/DCD/article/details/46361555</guid><author>DCD</author><pubDate>Thu, 04 Jun 2015 14:56:03 +0800</pubDate><description><![CDATA[基本需求，是点击网页中头像图片，弹出提示：手机、相册、文件管理器……
相机拍照后，自动上传图片。不知道为什么，相册选择的图片无法正常上传。








.up_icon,.up_input {position: absolute;top: 10px;left: 110px;width: 64px;height: 64px;z-index: 2}
.up_icon {overflow:]]></description><category></category></item></channel></rss>