最近在用Nginx发布多个站点测试,使用了87、88端口, 88端口访问正常,87端口就怎么也访问不了, 点击更多,提示错误代码:ERR_UNSAFE_PORT 不安全的端口?尼玛就只靠端口就能解决不安装问题了? 不想修改浏览器设...
分类:
其他好文 时间:
2015-08-07 20:31:51
阅读次数:
281
约瑟夫环问题// 约瑟夫环.cpp : 定义控制台应用程序的入口点。
//#include "stdafx.h"
#include
#include
#include
/*常量定义*/
#define OK 0 //成功执行
#define Err_Memory -1 //内存分配错误...
分类:
其他好文 时间:
2015-08-06 18:32:19
阅读次数:
116
#define ret_ok 1
#define ret_err 1
int judge_score(int score,char *ch)
{
if(score > 100 || score
{
printf("The score you input should little than 100 and bigger than 0\n");
return ret_err...
分类:
其他好文 时间:
2015-08-06 00:37:32
阅读次数:
210
转自:http://blog.chinaunix.net/uid-20196318-id-28769.html最近在使用filp_open打开文件时遇到到一个问题,当打开一个并不存在的文件时,filp_open返回值值为0xfffffffe,而并不是0(NULL),这是因为内核对返回指针的函数做了特...
分类:
其他好文 时间:
2015-08-05 12:14:45
阅读次数:
100
当你的应用有调用存储过程,而节点有几十个或者上百个,找错是不是一个很麻烦的事情,这个时候,我建议写到数据库中,下面是我做的一个demo.
1. 建立错误日志记录表
drop table PUB_PROC_ERR_LOG purge;
create table PUB_PROC_ERR_LOG
(
LOG_ID NUMBER,
MODULE_NAME VARCHAR2(...
分类:
数据库 时间:
2015-08-04 19:11:01
阅读次数:
184
解决办法:http://stackoverflow.com/questions/4037125/namespace-err-an-attempt-is-made-to-create-or-change-an-object-in-a-way-which-ihttp://docs.spring.io/s...
分类:
其他好文 时间:
2015-08-01 14:13:37
阅读次数:
209
首先看springMVC的配置文件:
errors/error
errors/err
...
分类:
编程语言 时间:
2015-08-01 06:27:54
阅读次数:
142
1、使用了一个小程序输出所有的errno对应的error字符串,代码如下#include void showError(int err){ printf("errno : %5d , error : %s\n", err, strerror(err));}void showAllErr()...
分类:
系统相关 时间:
2015-07-31 18:16:41
阅读次数:
340
发送程序package mainimport ( "fmt" "log" "github.com/streadway/amqp")func failOnError(err error, msg string) { if err != nil { log.Fata...
分类:
其他好文 时间:
2015-07-31 10:15:05
阅读次数:
314
Promise是异步代码实现控制流的一种方式。这一方式可以让你的代码干净、可读并且健壮。
比如,你用来异步处理文件事件的回调代码:
fs.readFile('directory/file-to-read', function(err, file){
if (error){
//handle error
} else {
//do some...
分类:
Web程序 时间:
2015-07-30 00:49:46
阅读次数:
141