场景:在使用linux过程中,我们常用telnet来测试对方服务器某个端口是否开通,但linux默认没有安装telnet客户端,很多时候临时安装telnet会比较麻烦,这时候就可以使用python来做简单测试了。python
importsocket
s=socket.socket()
s.connect(("IP",port))
s.close注:其实就..
分类:
编程语言 时间:
2014-08-28 15:02:00
阅读次数:
305
本文介绍了当启动SQL Server Configuration Manager时发生“Cannot connect to WMI provider”时的处置措施。
分类:
数据库 时间:
2014-08-28 14:31:39
阅读次数:
182
从文件连接数据库,连接字符串是finance/oracle@orcl 其中 finance是用户名,oracle是密码,orcl是实例名。发现这个问题:ORA-12154: TNS:could not resolve the connect identifier specified。TNS:无法解析...
分类:
其他好文 时间:
2014-08-28 11:06:39
阅读次数:
223
今天安装MYSQL遇到MYSQL ERROR 1130: Host is not allowed to connect to this MySQL server,试了很多办法都不行skip-grant-tables 放在my.ini [mysqld]1、更改任意主机登陆mysql>usemysql;...
分类:
数据库 时间:
2014-08-28 11:02:49
阅读次数:
207
测试环境模拟:
SQL> drop table t_col_type purge;
create table t_col_type(id varchar2(20),col2 varchar2(20),col3 varchar2(20));
insert into t_col_type select rownum,'abc','efg' from dual connect by level...
分类:
其他好文 时间:
2014-08-27 23:28:28
阅读次数:
331
VS2013无法链接到TFS(Visual studio online),错误TF31001,TF31002TF31002: Unable to connect to VisualStudio Online with VS 2013but I can using web access - Windo...
分类:
其他好文 时间:
2014-08-27 21:48:38
阅读次数:
213
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=3371题目不难 稍微注意一下 要把已经建好的城市之间的花费定义为0,在用普通Prim算法就可以了;我没有用克鲁斯卡尔算法(Kruskal's algorithm),因为这题数据比较大,而且要处理大量的数据...
分类:
其他好文 时间:
2014-08-27 20:30:38
阅读次数:
221
USB调试
USB调试插线什么的很麻烦,手机的USB口容易损坏,多台设备的时候更是烦恼多多
AdbWireless的使用
https://github.com/Skywriter-se/adbWireless
这个APK允许设备通过wifi网络进行调试,使用起来很简单。
安装APK(手机必须ROOT),点击中间的大按钮就启动了,在下方会显示 adb connect 192...
分类:
移动开发 时间:
2014-08-27 18:48:18
阅读次数:
261
一、Login登陆验证步骤:
1、赋值,用$_POST将id和password传递给loginProcess.php登陆验证页面。
2、建立数据库连接 $conn=mysql_connect($host,$username,$password);
3、选择数据库 mysql_select_db(empmanage);
4、定义sql语句 $sql=”select passwo...
分类:
Web程序 时间:
2014-08-27 18:41:38
阅读次数:
197
首先要确保两台机子直接IP能够互相ping通
然后使用SCP命令从第一台主机向第二台主机拷贝文件
scp src chiwei@192.168.8.144:/home/chiwei/mydisk/buffer_scp_file
ssh: connect to host 192.168.8.144 port 22: Connection refused
l...
分类:
系统相关 时间:
2014-08-27 16:35:48
阅读次数:
354