摘要: 系统环境Centos 6.5这篇文章不适用6以下的系统,因为会碰到这个错误[Mon Sep 22 18:13:02 2014] [error] [client 10.209.75.90] Truncated or oversized response headers received from da... 阅读全文
posted @ 2014-09-23 14:35 txwsqk 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 前言:做运维的很重要的基础工作就是监控,之前都是统计数据入库,然后前端js图表插件出图,费时费力,可定制性差前几天接触到了ELK(logstash, elasticsearch, kibana)这套日志收集展示工具集,的确很方便,但是手头没有那么大的存储啊也不是所有的日志数据都需要,然后就发现了gr... 阅读全文
posted @ 2014-09-16 14:55 txwsqk 阅读(71933) 评论(5) 推荐(5) 编辑
摘要: 先来个httpclient的maven依赖 org.apache.httpcomponents httpclient 4.3SimpleHttpClient.javapackage com.openapi.TestPojo;import java.io.IOException;im... 阅读全文
posted @ 2014-08-16 14:01 txwsqk 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: package com.txwsqk.reflect;public class Car { private String brand; private String color; private int maxspeed; public Car(){} public Car(String bran... 阅读全文
posted @ 2014-06-30 15:41 txwsqk 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Settings-user{ "font_face": "Consolas", "font_size": 13, "line_padding_bottom": 0, "line_padding_top": 0, "highlight_line": true, "fade_fold_buttons": false, "rulers": [79], "show_minimap": false, "draw_wh 阅读全文
posted @ 2013-11-28 23:52 txwsqk 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 1 livecd安装下载地址 http://software.opensuse.org/131/zh_CN我下载的kde版本的livecd,不像ubuntu支持ultraiso的U盘安装,也不支持像ubuntu那样的硬盘启动下面说下opensuse的livecd U盘启动解压下载的iso,会得到两个img映像的文件,一个4M的0.img和一个700多M的1.img,这个大的img才是有用的,把它重命名为opensuse.iso,拷贝到fat32的分区,因为我是win7,分区都是NTFS,所以我拷贝到了U盘。忘记说了还要把iso里面的linux和initrd文件放到U盘,这个用来启动,我是win 阅读全文
posted @ 2013-11-28 23:03 txwsqk 阅读(940) 评论(0) 推荐(0) 编辑
摘要: 系统: win-7 32bit关闭杀毒软件,关闭防火墙(保险起见)各位从tp-link的官网下载自己对应的固件http://www.tp-link.com.cn/product/list_portablerouter.html我以我的路由器举例 TL-wr700n路由器的管理界面ip地址是 192.168.1.253这个路由器只有一个网线接口,而且不能使用无线升级,所以先把路由器的工作模式改为ap接入点模式ap接入点模式不提供dhcp,所以你先把你电脑的有线网卡ip地址设置为跟管理ip一个网段,比如192.168.1.200(不要跟无线的ip地址重复)找跟网线直连路由器和你的电脑,因为你的无线 阅读全文
posted @ 2013-09-22 13:53 txwsqk 阅读(809) 评论(0) 推荐(0) 编辑
摘要: 一个文件1.txt,内容如下 a b c d e 目的把列变行,输出为: a b c d e 脚本如下: awk 'BEGIN{RS="";FS="\n";OFS=" "}{print }' test a b c d e 理论上应该实现我们想要的 a b c d e 问题出在这里Understanding$0It is important to remember that$0is thefullrecord, exactly as it was read from... 阅读全文
posted @ 2013-08-02 20:04 txwsqk 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 这几天做一个小项目,动态生成表格,动态删除行,最后ajax提交表格每一行中第一列的内容存在数组中<html><head> <script type="text/javascript" src="jquery-1.9.1.min.js"></script> <script type="text/javascript"> $(function(){ $("#sub").click(function(){ var tbdata = new Array(); $( 阅读全文
posted @ 2013-05-17 00:07 txwsqk 阅读(682) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # Description : Virtual Host Manage Script # Below is the json format description: # 1. Add new user # {"website":"www.baidu.com", "ftp":["user","passwd"], "mysql":["db_name","m_us... 阅读全文
posted @ 2013-03-19 18:26 txwsqk 阅读(2371) 评论(0) 推荐(0) 编辑