异常处理 运行时try{ 插卡 输入密码和金额 2000 余额 -= 2000 吐钱
2000}catch(吐钱异常 e){ 余额 += 2000}finally{ 取卡}异常的分类: Throwable Error:错误 严重底层 ...
分类:
其他好文 时间:
2014-05-01 13:01:14
阅读次数:
290
Visual Studio 2005 移植 - WINVER,warning C4996,
error LINK1104一、WINVER Compile result: WINVER not defined. Defaulting to 0x0502
(Windows Server 2003) wi...
--MySQL里创建外键时错误的解决--------------------------------2014/04/30在MySQL里创建外键时(Alter
table xxx add constraint fk_xxx foreign key),提示错误,但只提示很简单的信息:ERROR 1005...
分类:
数据库 时间:
2014-05-01 11:53:13
阅读次数:
443
#用户 用户组 user www www;
#工作进程,根据硬件调整,有人说几核cpu,就配几个,我觉得可以多一点 worker_processes 5; #错误日志 error_log
logs/error.log; #pid文件位置 pid ...
分类:
其他好文 时间:
2014-05-01 11:20:40
阅读次数:
431
1、检查是否关闭防火墙[root@gaosheng ~]# service iptables
statusFirewall is stopped.View
Code如果防火墙没有关闭,最好关闭;生产环境下,视具体情况而定.2、上传weblogic安装包wls1036_generic.jar此步骤略3...
分类:
Web程序 时间:
2014-05-01 10:36:19
阅读次数:
698
windows下面可以主线程while loop接受input;但是觉得很丑。
linux没办法这样,可以用注册信号的办法。实现起来也不难:
#include "stdio.h"
#include "unistd.h"
#include "signal.h"
#include "error.h"
volatile bool isStop = false;
static void handl...
分类:
其他好文 时间:
2014-04-29 13:42:21
阅读次数:
418
我们都知道在Web开发中,都需要服务器,比如Java Web开发的Tomcat,WebLogic,WebSphere,现在来看利
用Tornado Web Server框架如何写一个简易的Python服务器。
一般来说只需要实现get和post方法就可以了。以上次使用redis数据库的例子说明,数据库插入代码如下:
import redis
import datetime
clas...
分类:
其他好文 时间:
2014-04-29 13:17:20
阅读次数:
397
出现“CHECK_NRPE: Error - Could not complete SSL handshake.”的错误。
问题解决的步骤:
1. 确保openssh , openssl, openssl-devel版本一致。
在centOS 上,可以运行:
yum install openssl openssl-devel
2. nagios监控端的允许地址和...
分类:
其他好文 时间:
2014-04-27 22:18:19
阅读次数:
988
" checking for SSL headers... configure: error: Cannot find ssl headers"
原因是缺少openssl-devel,安装这个库就可以解决问题。
yum -y install openssl-devel...
分类:
其他好文 时间:
2014-04-27 21:32:05
阅读次数:
283
相信其它的地方大家都懂,这里重点说下面红色粗体部分 参数设置必须与系统的 ulimit -Sn 参数一致,并且 php-fpm.conf,nginx,conf中的设置要一致,否则会出现诸多历史遗留问题以及不和谐的ERROR WRING问题以下是nginx.conf里的一些 配置信息,重点说红色部分#user nobody;
user www www;
worker_processes auto...
分类:
Web程序 时间:
2014-04-27 21:21:06
阅读次数:
734