#!/usr/bin/python
#-*-coding:utf-8-*-
importparamiko,os,datetime
server_ip=‘192.168.1.123‘
server_user=‘root‘
server_passwd=‘10241010‘
server_port=22
#local_dir=‘C:\Python27‘
#remote_dir=‘/soft2/nba/‘
defssh_connect():
ssh=paramiko.SSHClient()
ssh.set_missi..
分类:
编程语言 时间:
2014-05-27 03:51:40
阅读次数:
283
#include #include /* for sleep() */#include /*
for uintptr_t */#include /* for in*() and out*() functions */#include /* for
ThreadCtl() */#include...
分类:
其他好文 时间:
2014-05-26 22:04:49
阅读次数:
285
首先确定短信猫正常连接到主机,并安装SIM卡。先用超级终端测试短息猫能不能用。安装minicom:#sudo apt-get install
minicom安装完成后,执行#sudo minicom -s使用光标上下选择:Serial port
setup,如下图按A,设置端口号,COM1对应/de...
分类:
编程语言 时间:
2014-05-26 15:44:09
阅读次数:
444
shell中执行sh文件时需要开子进程,因此export的环境变量在子进程中,若想要sh中定义的脚本生效,使用source命令,并且可以被子进程继承。而子进程export的内容父进程获取不到
分类:
其他好文 时间:
2014-05-26 13:51:41
阅读次数:
226
MainRecv.cpp#include #include #include #pragma
comment(lib,"ws2_32.lib")#define RECV_IP "127.0.0.1"#define RECV_PORT
8899#define LEN_RECV_BUF 2048int ...
分类:
其他好文 时间:
2014-05-26 12:07:41
阅读次数:
276
Several ports(8080,8009)required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port, To start this server you will need to stop the other process or change t...
分类:
编程语言 时间:
2014-05-26 03:41:22
阅读次数:
364
条款46 转发函数
难度:3
编写转发函数的最好方式是什么?基本答案很简单,但是我们还是可以学到标准定案之前做出的一个微妙的语言变化。
转发函数是将任务转发给其他函数或对象的有用工具,尤其是在高效完成转发的时候。
评论下面的转发函数。你会修改它吗?如果会,怎样修改?
// file f.cpp
//
#include "f.h"
/*...*/
bool f( X x...
分类:
编程语言 时间:
2014-05-24 18:23:39
阅读次数:
330
linux centos 下代理http、https、ftp全局使用代理:export
http_proxy=http://host:port/export https_proxy=http://host:port/export
ftp_proxy=http://host:port/使用wget按需...
分类:
系统相关 时间:
2014-05-24 07:53:34
阅读次数:
420
Linux系统通过软限制和硬限制,制约了打开文件的最大个数,而且每个端口侦听的连接数受限于/etc/sytctl.conf中的ip_local_port_range的范围,那么nginx是如何做到轻量级和高并发的。
Nginx的进程模型
各个work进程间通过accept_mutex互斥锁进行连接的获取,以防止惊群现象的发生(即所有进程都收到通知,却...
分类:
其他好文 时间:
2014-05-22 17:11:39
阅读次数:
364
应该能更早出的第四弹,被虚拟机错误搅乱,迟迟没有上线,不得已将所有节点用puppet完成上线,稍后整理第五弹(非你不可自动化)也即将上线:)zabbix简介zabbix是基于Php的开源监控软件基于多重数据采集SNMP,Agent,Ping,Port多重告警通知Mail,Jabber,SMS可以完成多种操作平台甚至于设..
分类:
其他好文 时间:
2014-05-20 21:21:38
阅读次数:
607