想将mysql 的TCP 封死,所有外部链接由我的proxy来控制,so 写了一个 tcp 转 unix socket 的 proxy。
package main
import (
"os"
"fmt"
"net"
"io"
"sync"
"time"
)
type proxy struct{
Host string
Port string
Local string...
分类:
其他好文 时间:
2014-08-27 00:27:36
阅读次数:
270
内容摘自《系统虚拟化:原理与实现》PCI 总线架构 PCI总线是典型的树结构。把北桥中host-PCI桥看做根,总线中其他PCI-PCI桥,PCI-ISA桥(ISA总线转PCI总线桥)等桥设备和直接连PCI总线的设备看做节点,整个PCI架构可以概括成下图: 通过桥,PCI可以很容易被扩展,并且与.....
分类:
其他好文 时间:
2014-08-26 21:20:56
阅读次数:
336
近期须要弄个CLI命令接口程序,初步设想是须要支持历史命令翻阅,tab键命令补全这种一个东西。经查阅相关文档,深耕百度一番!(google近期不太正常)实在恼火。发现readline果真是个好东西,于是将其先编译成arm平台。./configure CC=arm-linux-gcc --host=....
分类:
其他好文 时间:
2014-08-26 21:11:56
阅读次数:
933
#!/usr/bin/envpython#coding=utf-8importparamikoimporttime,datetime,threadingdefssh(ip,user,passwd,command):ssh=paramiko.SSHClient()ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())try:ssh.connect(ip,port=16333,username=user,password=passwd)exceptpar..
分类:
编程语言 时间:
2014-08-26 19:54:27
阅读次数:
237
importmultiprocessingimporttime,datetimedefSsh_Cmd(host,CmdFile):elog=open(‘error.log‘,‘a+‘)log=open(‘7z.log‘,"a+")forCmdinopen(CmdFile).readlines():Cmd=Cmd.strip()ifnotlen(Cmd)orCmd.startswith(‘#‘):continuessh=paramiko.SSHClient()ssh.set_missing_host_key_p..
分类:
编程语言 时间:
2014-08-26 19:54:07
阅读次数:
326
./configure --prefix=/arm/jrtplib/share_jrtplib_jthread --host=arm-linux CC=/usr/local/arm-2007q3/bin/arm-none-linux-gnueabi-gccCXX=/usr/local/arm-200...
分类:
其他好文 时间:
2014-08-26 19:28:46
阅读次数:
313
虚拟机网络配置:
虚拟机设置里打开网络连接:
Linux系统远程登录管理工具:
桥接:虚拟机利用本机真实网卡与真实计算机通信;设置跟windows同一网段地址,可以与windows通信,也可以与局域网内同网段也可以访问。需要占用地址。
host-only
使用虚拟机虚拟出的网卡VMNet1,只能跟你真实机通信,不能跟局域网通信,不能上外网。
NAT:使用虚拟机...
分类:
系统相关 时间:
2014-08-26 13:47:06
阅读次数:
324
What Is a Servlet?
A servlet is a Java programming language class used to extend the capabilities of servers that host applications accessed by means of a request-response programming model. Although...
分类:
编程语言 时间:
2014-08-26 09:55:46
阅读次数:
218
if ($host ~* "\d+\.\d+\.\d+\.\d+"){ return 400;}其实说白了, 就是进行host主机头过滤,使用正则来判断下.
分类:
其他好文 时间:
2014-08-26 09:42:55
阅读次数:
176
route1.作用route表示手工产生、修改和查看路由表。2.格式#route[-add][-net|-host]targetaddress[-netmaskNm][dev]If]#route[-delete][-net|-host]targetaddress[gwGw][-netmaskNm][dev]If]3.主要参数-add:增加路由。-delete:删除路由。-net:路由到达的是一个网络,而不是..
分类:
系统相关 时间:
2014-08-25 19:34:25
阅读次数:
293