05 2015 档案
摘要:cat all_uuid_log | grep "[a-z0-9]\{32\}"
阅读全文
摘要:./bin/mysqladmin -uroot -p123456 -S /home/allen/var/mysql/mysql.sock shutdown
阅读全文
摘要:下载源码包进入源码包的modules目录 选择你要编译的.c文件eg:/home/work/local/apache/bin/apxs -c -i -a mod_proxy_http.c选项说明:-c 执行编译操作-i 安装操作,安装一个或多个动态共享对象到服务器的modules目录-a 自动增加一...
阅读全文
摘要:httperf: A relatively well-known open source utility developed by HP, for Linux operating systems onlywebsite: http://www.hpl.hp.com/research/linux/ht...
阅读全文
摘要:mysql> explain select * from siteinfo;+----+-------------+----------+------+---------------+------+---------+------+--------+-------+| id | select_typ...
阅读全文
摘要:1234567891011[mahao01@127.0.0.1 nginx-1.2.9]$makemake-f objs/Makefilemake[1]: Entering directory `/home/mahao01/soft/nginx-1.2.9'cd/home/mahao01/local...
阅读全文
摘要:tcpdump -i eth1 -s 0 -w eth1_2.log tcp port 8893
阅读全文
摘要:1catmc.log |grepLOGIN_GET |awk'{print $9}'|sort|uniq-c
阅读全文
摘要:http://10.58.104.19:8008/site/833/3f11d2b44b7d3baa2149f26a30f8c68d/b.js?siteid=332323将一个静态请求转换成一个动态php请求123456789101112131415Alias/site/home/mahao01/s...
阅读全文
摘要:#官网下载http://pecl.php.net/package/xhproftarzxf xhprof-0.9.2.tgzcdxhprof-0.9.2/extension/sudophpize./configure--with-php-config=/usr/local/php/bin/php-c...
阅读全文
摘要:wget http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.28.0.tar.gz tar xzvf graphviz-2.28.0.tar.gz ./configure --prefix=/home/work/local/graphviz make && make install # 如果出现dot: com...
阅读全文
摘要:下载 :http://redis.io/download1234tarxzvf redis-2.8.19.tar.gzcdredis-2.8.19makePREFIX=/home/mahao01/local/redis-2.8.19maketestmake PREFIX=/some/other/di...
阅读全文
摘要:awk-F:'{if($3==0){print $1}}'/etc/passwd
阅读全文
摘要:cat access_log.09 | grep login | awk '{print $4}' | uniq -c | sort -k1 -nr | more
阅读全文
摘要:150414 16:23:07 [ERROR] Plugin'InnoDB'initfunctionreturned error.150414 16:23:07 [ERROR] Plugin'InnoDB'registration as a STORAGE ENGINE failed.150414 ...
阅读全文
摘要:./configure --prefix=/home/allen.mh/local/php --with-gd=/home/allen.mh/local/gd --with-jpeg-dir=/home/allen.mh/local/jpeg --with-png-dir=/home/allen.m...
阅读全文
摘要:set nu set shiftwidth=4set tabstop=4set softtabstop=4 set autoindentset cindentset smartindentfiletype indent on set ai! set hlsearchset incsearchset ...
阅读全文
摘要:alter table `user_movement_log` Add column GatewayId int not null default 0 AFTER `Regionid` (在哪个字段后面添加) alter table x_connection add `FEX-N752` varch...
阅读全文
摘要:对于一个web系统来说,我们使用mvc很必要, 给我们带来的是清晰的结构,易运维,易扩展,mvc 我对其的理解应该叫mxvc, 多了一个x , 这个x代表什么,x可以理解为 relay,proxy,adapter 亦可,先来看下面这张图这是我们系统的mxvc结构图, 大概分成四个部分,第一部分 ph...
阅读全文
摘要:alter table yourtable modify column yourcolumn varchar( 2000 );
阅读全文
摘要:CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
阅读全文
摘要:./scripts/mysql_install_db --user=mahao01 --basedir=/home/mahao01/local/mysql --datadir=/home/mahao01/local/mysql/data/#启动:./bin/mysqld_safe --default...
阅读全文
摘要:1 yum -y groupinstall chinese-support 2 3 vim /etc/sysconfig/i18n 4 5 LANG="zh_CN.UTF-8" 6 LANGUAGE="zh_CN.UTF-8:zh_CN.GB2312:zh_CN" 7 SUPPORTED="z...
阅读全文