2015年12月30日

摘要: //上传文件 // 创建一个 cURL 句柄$ch = curl_init($url);// 创建一个 CURLFile 对象$cfile = curl_file_create(__DIR__.'/22.jpg','image/jpeg','test_name');// 设置 POST 数据$dat... 阅读全文
posted @ 2015-12-30 16:52 叮当葫芦娃 阅读(695) 评论(0) 推荐(0) 编辑

2015年11月7日

摘要: 同步到本地 /home/www2/(本地路径) xx.xx.xx.xx(ip) www(rsyncd的配置文件里的模块)rsync -aP --delete hening@xxx.xx.xx.xx::www /home/www2/ --password-file=/etc/rsync.pas上传文件... 阅读全文
posted @ 2015-11-07 15:30 叮当葫芦娃 阅读(270) 评论(0) 推荐(0) 编辑

2015年7月2日

摘要: ./configure --prefix=/usr/local/libmemcached --with-memcached/usr/local/php/bin/phpize./configure --enable-memcache --with-php-config=/usr/local/php/b... 阅读全文
posted @ 2015-07-02 20:52 叮当葫芦娃 阅读(63) 评论(0) 推荐(0) 编辑
摘要: /usr/local/php/bin/phpize./configure -enable-memcached --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir --with-libmemcached-dir=/usr/lo... 阅读全文
posted @ 2015-07-02 19:09 叮当葫芦娃 阅读(71) 评论(0) 推荐(0) 编辑
摘要: php 5.6安装./configure \--prefix=/usr/local/php \--with-config-file-path=/usr/local/php/etc \--enable-inline-optimization \--disable-debug \--disable-rp... 阅读全文
posted @ 2015-07-02 18:09 叮当葫芦娃 阅读(150) 评论(0) 推荐(0) 编辑

2015年4月21日

摘要: 1 include_once 'test/vendor/autoload.php'; 2 3 use Monolog\Logger; 4 use Monolog\Handler\StreamHandler; 5 use Monolog\Formatter\LineFormatter; 6 7 ... 阅读全文
posted @ 2015-04-21 20:22 叮当葫芦娃 阅读(135) 评论(0) 推荐(0) 编辑

2015年4月20日

摘要: 主(master)只启用aof,不启用rdb从(slave)1,配置slave-of masterIp masterPort2,开启rdb3,设置只读(确保数据一致性) //slave-read-only 阅读全文
posted @ 2015-04-20 21:57 叮当葫芦娃 阅读(76) 评论(0) 推荐(0) 编辑

2015年4月17日

摘要: mysql 事务start transaction;update ...insert ...create table的不行rollback;//回滚commit;//提交redis 事务multiincrby age 1 //age+1decrby age 2 //age-2discard //取消... 阅读全文
posted @ 2015-04-17 22:52 叮当葫芦娃 阅读(305) 评论(0) 推荐(0) 编辑

2015年4月1日

摘要: 1,useradd -s /sbin/nologin mysql2,mkdir -p /data/mysql/data3,chown -R mysql:mysql /data/mysql4,yum install gcc gcc-c++ cmake ncurses-devel bison5,wget... 阅读全文
posted @ 2015-04-01 16:35 叮当葫芦娃 阅读(175) 评论(0) 推荐(0) 编辑

导航