1,nginx error 找不到位置 一般需要修改/usr/local/nginx/conf/nginx.conf(慎重修改 有可能引起其他网站问题)
2,502 error
情况1: nginx 挂掉:
命令:/usr/local/nginx/sbin/nginx-s reload
之后等待一会儿
情况2:php 挂掉:
首先需要修改/usr/local/php-5.6.0/et...
分类:
Web程序 时间:
2015-04-20 18:34:44
阅读次数:
126
题目:
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.
提示:
Did you use extra space?
A straight forward solution using O(mn) space is probably a bad idea....
分类:
其他好文 时间:
2015-04-19 22:52:07
阅读次数:
166
最近写一个shell脚本的时候遇到这样一个错误#!/bin/shright=disk1part=${right//[a-zA-Z]}提示:bad substitution在命令行输入的时候,又是运行正确的。查了下有人说把sh改为bash,发现问题解决。#!/bin/bash也就是不同的命令解释器的兼...
分类:
系统相关 时间:
2015-04-17 01:14:10
阅读次数:
273
模板类function是一个通用的多态函数包装器,它的实例可以存储、拷贝并调用任何可调用对象- 函数、lambda表达式、bind表达式等其他函数对象。还可以是成员函数指针或数据成员的指针。对空的function实例调用将会抛出std::bad_function_call异常。#include
#include int main()
{
std:...
分类:
其他好文 时间:
2015-04-16 21:55:20
阅读次数:
150
题目链接
看到这题的示意图也是醉了~题意:给你一个k,他是两个素数之积,然后给了一个数字L,然后找到具体是哪两个素数相乘等于k,较小的那个素数是否小于L,若小于L就输出 "BAD"外加较小的那个素数,否则就输出“GOOD”,
刚拿到这题目,有些钻牛角尖外加题意没看清楚,一开始纠结于 K很大,若想具体找出两个素数不可能,因为总有一个很大很大,求出其中一个素数 是否在10^6内是可以的,但是那时候...
分类:
其他好文 时间:
2015-04-14 21:34:28
阅读次数:
114
1、错误描述
严重: Exception starting filter struts2
java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class org.apache.commons.lang3.StringUtils)
at org.apache.catal...
分类:
编程语言 时间:
2015-04-13 22:58:54
阅读次数:
211
在使用RemoteView创建自定义通知视图的时候一启动通知栏应用就停止运行。查看错误提示,开始时为StatusBar: Caused by: android.content.res.Resources$NotFoundException: File res/drawable/fm_statusba...
分类:
移动开发 时间:
2015-04-11 20:42:17
阅读次数:
247
问题: Pull出现:/libexec/git-core/git-sh-setup: line 83: /bin/sed: Bad file number。尝试Revert、Clean Up均没有解决。最后决定重新从服务器Clone,发现还是不行。解决方法:修改本地Git配制文件添加master至....
分类:
其他好文 时间:
2015-04-11 17:32:43
阅读次数:
499
REST API 接口要求 requster json 的 lifeCycle 域只能填 YOUNG, OLD,对于其他的 lifeCycle,都要给 requester 返回 bad request 消息。public class DataCategory { LifeCycle lifeC...
分类:
编程语言 时间:
2015-04-11 11:31:18
阅读次数:
245
3390: [Usaco2004 Dec]Bad Cowtractors牛的报复Time Limit:1 SecMemory Limit:128 MBSubmit:69Solved:49[Submit][Status][Discuss]Description奶牛贝茜被雇去建设N(2≤N≤1000)个...
分类:
其他好文 时间:
2015-04-10 23:42:58
阅读次数:
168