异常处理 运行时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
                             
                         
                    
                        
                            
                            
                                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
                             
                         
                    
                        
                            
                            
                                进程的权限继承自创建进程用户和用户所属的用户组。用户有专用数据结构来表示权限—访问令牌(Access Token)。访问令牌包括两个部分:一个是令牌所表示的用户,包括用户标识符(SID),用户所属的用户组等;另一部分是“权限”(Privilege)。
在进程访问安全对象时,会用到SID。每个安全对象都有访问控制列表(ACL),ACL说明了哪些用户( SID)能访问本对象,哪些不能,以及能进行哪种...
                            
                            
                                分类:
其他好文   时间:
2014-04-29 13:13:21   
                                阅读次数:
346
                             
                         
                    
                        
                            
                            
                                出现“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
                             
                         
                    
                        
                            
                            
                                Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'!     
     解决方法:
setenforce 0...
                            
                            
                                分类:
移动开发   时间:
2014-04-27 21:18:05   
                                阅读次数:
450