#!/bin/bashprintf"本脚本包含ip地理位置查询及已知域名查询IP\n"printf"######################################\n"printf"/tmp/dns.txt需要查询的域名列表目录\n"printf"/tmp/dns_ip.txt存放查询后的域名及IP对应目录\n"printf"######################################\n"pri..
分类:
其他好文 时间:
2017-07-12 15:12:55
阅读次数:
143
图: 配置文件: 主服务器的配置如下: global_defs { router_id NodeA}vrrp_instance VI_1 { state MASTER #设置为主服务器 interface ens33 #监测网络接口 virtual_router_id 51 #主、备必须一样 pri ...
分类:
其他好文 时间:
2017-07-12 10:03:32
阅读次数:
199
public class EsUtil { private static TransportClient client; private static ResourceBundle resource = ResourceBundle.getBundle("es"); /** 索引库名称 */ pri ...
分类:
编程语言 时间:
2017-07-11 14:44:09
阅读次数:
287
AWK,aho,weinberger,kernighanGAWK,GNUawk我们在linux上使用的awk其实是gawk的链接文件基本用法gawk[options]‘program‘fileprogram:PATTERN语句之间用分号分割ps:‘{print$1,$2,$3}’options:-F:指明输入时用到的字段分隔符,默认是空白分隔符cat/etc/fstab|tail-4|awk‘{pri..
分类:
其他好文 时间:
2017-07-11 14:31:19
阅读次数:
152
1.PRI -> 进程的优先级,大部分系统(Linux、UCOSII)都是数字越低优先级越高,进程就优先运行 , Linux中的PRI(new) = PRI(old) + nice ,其中 , PRI(old)为系统算法决定 ,在创建时被赋予不同的值,用户不可修改 ,用户只能通过修改nice来修改进 ...
分类:
系统相关 时间:
2017-07-11 11:49:24
阅读次数:
298
import java.util.*; public class Bank{ public static void main(String []agrs){ //给用户开一个键盘录入的入口 Scanner input = new Scanner (System.in); System.out.pri... ...
分类:
编程语言 时间:
2017-07-07 13:18:48
阅读次数:
172
log4py.py日志重构类
importdatetime
importsys
importtraceback
importcodecs
importtypes
importlogging
importos
importtime
#log编码全部按utf8处理
loglevels={‘stdout‘:[‘info‘,‘debug‘,‘warn‘,‘error‘,‘fatal‘],
‘file‘:[‘info‘,‘debug‘,‘warn‘,‘error‘,‘fatal‘]
}
#pri..
分类:
编程语言 时间:
2017-07-07 10:14:36
阅读次数:
205
#include int main() { int a=0,b=0; scanf("%d",&a); if(a>=800) { b=a-800; printf("%d",b); } else{ pri... ...
分类:
编程语言 时间:
2017-07-06 22:49:38
阅读次数:
146
不知道一个论坛的数据库该怎么设计 姑且先这样搞 user表 + + + + + + +| Field | Type | Null | Key | Default | Extra |+ + + + + + +| user_id | int(10) | NO | PRI | NULL | auto_in ...
分类:
数据库 时间:
2017-07-05 21:22:05
阅读次数:
242
1. problem description: as the title show, i miss the first problem using pt-online-schema-change tool to modify the table online. no more message pri ...
分类:
其他好文 时间:
2017-07-04 18:28:23
阅读次数:
536