浏阳一佳人

学习共享,记录生活
December 7, 2017

centos7 本地安装配置systemctl 命令

nginx 和php-fpm 举例:cd /usr/lib/systemd/system vi nginx.service [Unit] Description=The nginx HTTP and reverse proxy server After=network.target remote-fs.target nss-lookup.target [Service] Type=for...
December 6, 2017

thinkphp3.2.3 连接redis步骤

1、依赖PHP-redis 扩展 http://windows.php.net/downloads/pecl/releases/redis/ 找到适合vc库版本的包(32位)2、ThinkCacheDriverRedis在构造函数中加入$this->handler->auth($options['auth']); //加入令牌 $this->handler->...
December 1, 2017

nodejs 封装网络请求

function postData(url,param,success,type){ var querystring = require('querystring') var URL = require('url'); var os = require('os'); //处理参数 var postData; if (typeof para...
November 26, 2017

centos 磁盘绑定切换

磁盘名称:/dev/vdb如果磁盘原来绑定的是 /mnt现在要绑定 /datamount /dev/vdb /datavi /etc/fstab增加:/dev/vdb /data ext3 defaults 0 0