欸 这不是做过的原题吗qwq顺手码一码欸怎么各种不对啊哦以前基本没用过get_segment基本都是split的嗯 就是这个东西 要开个tmp保存一下结果不然会出奇奇怪股的事情 1 #include 2 #include 3 #include 4 #include 5 #include ...
分类:
Web程序 时间:
2016-01-07 13:27:48
阅读次数:
232
通过对Nginx访问日志进行分析即可。#!/bin/bash
functiondefine()
{
ori_log_path="/var/log/nginx/abc.access.log"
tmp_log_path="/var/log/nginx/5min_abc.access.log"
date_stamp=`date-d"-5min"+%Y:%H:%M:%S`
day_stamp=`date+%d`
}
functiongather()
{
awk-F‘[/"\[]‘-vn..
分类:
其他好文 时间:
2016-01-07 01:31:16
阅读次数:
276
连接mysql出现如下错误:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)还以为安错地方了呢,缓存文件存在了tmp下网上查了错误原因,以为要改文件权限后来发现是因...
分类:
数据库 时间:
2016-01-06 13:47:32
阅读次数:
157
1.内部变量覆盖外部变量内部变量覆盖了外部变量后,变量提升:即脚本开始运行时,变量temp已经存在了,但是没有值,所以会输出undefinedvar tmp = new Date();function f(){ console.log(tmp); if (false){ var tmp =...
分类:
Web程序 时间:
2016-01-05 20:39:47
阅读次数:
167
zabbbix的配置文件的目录/usr/lib/zabbix/alertscripts编写sendSMS.sh脚本#!/bin/bash##Filename:sendSMS.sh#Revision:1.2#Date:2015/09/07#Author:Json#Description:zabbix短信告警脚本#Notes:短信网关##脚本的日志文件LOGFILE="/tmp/SMS.log":>"$LOGFILE"exec1>"$LOGFI..
分类:
其他好文 时间:
2016-01-05 15:38:49
阅读次数:
652
1.把ida目录下android_server传到android目录中如:adbpushandroid_server/data/local/tmp/adbshell进入模拟器cd/data/local/tmp/chmod755android_server./android_server看到监听端口2...
分类:
移动开发 时间:
2016-01-05 12:34:09
阅读次数:
243
一、环境系统:centos7版本:3.10.0-229.el7.x86_64二、registry镜像1、下载registry镜像sudodockerpullregister2、启动一个容器默认情况下,会将仓库存放于容器的/tmp/registry目录下,这样如果删除容器的话,则存放于该容器中的镜像也会丢失,所以一般都会指定一个本地目录挂..
分类:
其他好文 时间:
2016-01-05 11:02:25
阅读次数:
226
voidBubbleSortNode(SListNode*&pHead)//单链表排序
{
assert(pHead);
SListNode*tail=NULL;
intBool=0;//若没有进行交换提前返回
while(tail!=pHead->next)
{
Bool=0;
SListNode*tmp=pHead;
SListNode*tmpnext=tmp->next;
while(tmp->next!=tail)
{
if(tmp->..
分类:
编程语言 时间:
2016-01-05 01:35:30
阅读次数:
335
在httpd-vhosts.conf中,虚拟主机的配置为<VirtualHost*:80>
DocumentRoot"/data/www"
ServerNamewww.123.com
</VirtualHost>当我们输入www123.com和自己主机的IP时都是能访问的,在虚拟主机配置文件中加入<VirtualHost*:80>
DocumentRoot"/tmp/123"
ServerN..
分类:
其他好文 时间:
2016-01-04 15:48:11
阅读次数:
141
可以对admin.php访问进行控制location~.*admin\.php${allow127.0.0.1; denyall;includefastcgi_params;fastcgi_passunix:/tmp/www.sock;fastcgi_indexindex.php;fastcgi_paramSCRIPT_FILENAME/data/www$fastcgi_script_name;}也可以针对全局配置server{listen80;server_namewww..
分类:
其他好文 时间:
2016-01-04 07:43:11
阅读次数:
131