摘要: /: 根目录,一般根目录下只存放目录,不要存放文件,/etc、/bin、/dev、/lib、/sbin应该和根目录放置在一个分区中/bin:/usr/bin: 可执行二进制文件的目录,如常用的命令ls、tar、mv、cat等。/boot: 放置linux系统启动时用到的一些文件。/boot/vmli 阅读全文
posted @ 2015-07-24 17:57 ChangCrazy 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 二叉树的每个结点至多只有二棵子树(不存在度大于2的结点),二叉树的子树有左右之分,次序不能颠倒。二叉树的第i层至多有2^{i-1}个结点;深度为k的二叉树至多有2^k-1个结点;对任何一棵二叉树T,如果其终端结点数为n_0,度为2的结点数为n_2,则n_0=n_2+1。一棵深度为k,且有2^k-1个... 阅读全文
posted @ 2015-07-24 10:38 ChangCrazy 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: ';?> 阅读全文
posted @ 2015-07-24 02:26 ChangCrazy 阅读(504) 评论(0) 推荐(0) 编辑
摘要: $v) { $sql = 'SELECT * FROM '; $sql .= 'INFORMATION_SCHEMA.TABLES '; $sql .= 'WHERE '; $sql .= "table_name = '{$v['TABLE_NAME']}' AND table_schema = '{$database}'"; $table_result... 阅读全文
posted @ 2015-07-24 02:14 ChangCrazy 阅读(431) 评论(0) 推荐(0) 编辑
摘要: 编写shell脚本 vi /etc/init.d/nginx 添加权限 注册服务 测试启动 约定目录 /usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini 启动,测试 #测试php-f 阅读全文
posted @ 2015-07-24 02:09 ChangCrazy 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 创建数据库CREATE DATABASE IF NOT EXISTS $database DEFAULT CHARSET utf8 COLLATE utf8_general_ci;CREATE DATABASE $database DEFAULT CHARACTER SET utf8 COLLATE... 阅读全文
posted @ 2015-07-24 02:01 ChangCrazy 阅读(120) 评论(0) 推荐(0) 编辑
摘要: $count = 1000;for($i=0;$i $test_array[$j+1]){ $tmp = $test_array[$j]; $test_array[$j] = $test_array[$j+1]; $test_arra... 阅读全文
posted @ 2015-07-24 01:39 ChangCrazy 阅读(145) 评论(0) 推荐(0) 编辑
摘要: npm:http://npm.taobao.org/系统镜像文件:http://mirrors.163.com/http://mirrors.aliyun.com/http://backup.mirrors.ustc.edu.cn/cdn:http://cdn.code.baidu.com/http... 阅读全文
posted @ 2015-07-24 00:59 ChangCrazy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 将以下代码保存为php-fpm,修改路径为自己的路径(有php.ini的)#!/bin/bash## Startup script for the PHP-FPM server.## chkconfig: 345 85 15# description: PHP is an HTML-embedded... 阅读全文
posted @ 2015-07-24 00:51 ChangCrazy 阅读(300) 评论(0) 推荐(0) 编辑