用execvp实现时,运行adb,如果adb 服务没有启动,会启动adb服务,启动adb服务时,pipe返回的管道在读的时候堵塞了。查看了popen的源码,发现popen是用sh -c来执行的,避免了这个问题不知道sh -c做了些什么操作,使得popen可以避免这个问题代码如下: 1 #ifndef...
分类:
系统相关 时间:
2014-09-16 18:56:00
阅读次数:
296
Ubuntu上adb使用及问题解决Adb包是从解压版eclipse解压而来(adb可脱离eclipse或sdk独立使用,直接将包拷走即可)然后做了个到/sbin/下的软链接(员工电脑已做),$sudoln–s/home/IT/sdk/platform-tools/adb/sbin/,可执行which命令进行查看:$whichadbAdb版本:1.0.31(andr..
分类:
数据库 时间:
2014-09-16 16:09:51
阅读次数:
198
存在异常:ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)原因:Mysql的服务没有启动windows7启动MySQL的服务器 以管理员身份启动CMD:cd C:\dev\mysql-5.6.19-64....
分类:
数据库 时间:
2014-09-16 15:30:00
阅读次数:
152
XE7 提交 App 后,在「Prerelease」里被提示了:Build 1.0.0 does not contain the correct beta entitlement. For more information, see the iTunes Connect Developer Guid...
分类:
移动开发 时间:
2014-09-16 12:12:50
阅读次数:
228
如果本地的tnsnames.ora中未建立数据库连接,那么就是用1,否则就是用21:create database link geelyin96 connect to geelyin identified by geelyinpassword using '(DESCRIPTION = ...
分类:
数据库 时间:
2014-09-16 10:31:50
阅读次数:
237
linux mysql远程连接远程使用Navicat for mysql 客户端软件连接 mySql数据时,连接出现Can’t connect to MySQL on ’192.168.1.99’(10061)错误时,是由于MySQL不准许远程连接。修改方法如下: 1:在服务端MySQL/my...
分类:
数据库 时间:
2014-09-16 09:14:30
阅读次数:
184
(process:6471): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security...
分类:
其他好文 时间:
2014-09-15 22:55:54
阅读次数:
222
bind-address:监听的IP地址max_connect_errors:最大允许错误次数(注:是访问协议错误,若某个IP错误次数达到该阈值,则被屏蔽)max_connections:最大连接数(能同时访问server的连接个数,若达到该阈值,则不能再连接到server)skip_name_re...
分类:
数据库 时间:
2014-09-15 22:46:39
阅读次数:
372
前言: 关于多级别菜单栏或者权限系统中部门上下级的树形遍历,oracle中有connect by来实现,mysql没有这样的便捷途径,所以MySQL遍历数据表是我们经常会遇到的头痛问题,下面通过存储过程来实现。1,建立测试表和数据:DROP TABLE IF EXISTS csdn.channel; CREATE TABLE csdn.channel ( id INT(1...
分类:
数据库 时间:
2014-09-15 01:07:18
阅读次数:
383
代码:$cmd = "*3\r\n$3\r\nSET\r\n$3\r\nfoo\r\n$3\r\nbar\r\n"; // set foo bar$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);socket_connect($socket...
分类:
其他好文 时间:
2014-09-15 01:03:57
阅读次数:
181