sockaddr结构体sockaddr的缺陷:struct sockaddr 是一个通用地址结构,这是为了统一地址结构的表示方法,统一接口函数,使不同的地址结构可以被bind() , connect() 等函数调用;sa_data把目标地址和端口信息混在一起了struct sockaddr { un...
分类:
其他好文 时间:
2014-07-16 19:22:47
阅读次数:
232
问题:利用Python连接Oracle时报错,完整过程如下import cx_Oracleconn = cx_Oracle.connect('testma/dingjia@192.168.88.139:1521/orcl')Traceback (most recent call last): Fi....
分类:
数据库 时间:
2014-07-16 18:50:04
阅读次数:
2108
[root@luozhonghua ~]# /usr/bin/mysqladmin -u root password 'aaaaaa'
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/li...
分类:
数据库 时间:
2014-07-15 12:54:54
阅读次数:
258
1、每过一段时间线上业务就会出现如下错误:kHost‘XXXXX‘isblockedbecauseofmanyconnectionerrors;unblockwith‘mysqladminflush-hosts‘Connectionclosedbyforeignhost2、需要使用mysqladminflush-hosts解锁用户3、查看错误日志4、查看官方文档对max_connect_errors的解释如下当..
分类:
数据库 时间:
2014-07-15 12:10:59
阅读次数:
409
SQL0752N Connecting to a database is not permitted within a logical unit ofwork when the CONNECT type 1 setting is in use. SQLSTATE=0A001解释:发出 COMMIT ...
分类:
数据库 时间:
2014-07-14 21:33:15
阅读次数:
332
1 使用connect-mongdo时,报错:Cannot read property 'Store' of undefined解决: require('connect-mongo')的时候加一个参数express,如下: var express = require('express'); var ...
分类:
其他好文 时间:
2014-07-14 00:30:23
阅读次数:
298
mysqli 更严谨 安全 高效php 5个版本,5.2、5.3、5.4、5.5,怕跟不上时代,新的服务器直接上5.5,但是程序出现如下错误:Deprecated: mysql_connect(): The mysql extension is deprecated and will be remo...
分类:
数据库 时间:
2014-07-14 00:05:11
阅读次数:
514
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218
1.“Cannot connect creator comm socket /tmp/qt_temp.u14973/stub-socket: No such file or directory ”的解决方法
2.”ptrace 不允许的操作“的解决方法...
分类:
其他好文 时间:
2014-07-12 23:20:51
阅读次数:
709
Problem Description
Xiao Ming is traveling around several cities by train. And the time on the train is very boring, so Xiao Ming will use the mobile Internet. We all know that mobile phone receives ...
分类:
其他好文 时间:
2014-07-12 21:28:48
阅读次数:
197