解决linux ping: unknown host
www.baidu.com转载网址:http://www.kankanews.com/ICkengine/archives/48417.shtml解决方案:如果某台Linux服务器ping不通域名,
如下提示:[root@localhost~]#...
分类:
系统相关 时间:
2014-05-23 23:38:57
阅读次数:
747
1. 创建一个新的web工程,导入springMVC的jre包。2. web.xml添加配置
index.jsp webAppRootKey springmvc.root contextC...
分类:
编程语言 时间:
2014-05-23 22:24:41
阅读次数:
452
系统环境:
win7django版本查看:启动django项目的时候,一直找不到静态资源,很奇怪放在linux服务器上的时候好好的,拿下来随便修改了配置就说url找不到了。用wingIDE没有任何错误信息,只是告知404错误,这时候我误解以为是urlpatterns的问题,最后换pycharm编辑器...
分类:
其他好文 时间:
2014-05-23 22:16:36
阅读次数:
394
Linux环境下yum源安装GCC前提条件是有Linux环境的安装盘ISO文件在Linux系统中创建两个目录,一个是用来存放ISO文件,一个是用来挂载该ISO文件,如下:$mkdir
/root/iso;$mkdir /root/repo;把Linux安装文件ISO文件放置到iso目录下,然后用mo...
分类:
其他好文 时间:
2014-05-23 22:16:00
阅读次数:
314
File anrFile = null; String status =
Environment.getExternalStorageState(); if
(status.equals(Environment.MEDIA_MOUNTED)) { ...
分类:
其他好文 时间:
2014-05-23 12:08:36
阅读次数:
417
Debian默认不允许root登录,所以修改之。(1)让Debian以root登录修改gdm3的登录pam文件#vi
/etc/pam.d/gdm3将auth required pam_succeed_if.so user != root quiet_success注释掉
//本行前加#重启即可(2...
分类:
其他好文 时间:
2014-05-23 12:00:51
阅读次数:
447
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-23 11:54:10
阅读次数:
317
mini2440
内核启动后,可以用busybox制作一个简单的根文件系统并用nfs来启动该文件系统启动mini2440,
按任意键进入uboot,按q键进入uboot命令行:执行以下命令:set bootargs "noinitrd root=/dev/nfs rw
nfsroot=192.168...
分类:
其他好文 时间:
2014-05-23 11:52:08
阅读次数:
357
看了一句话,我们都是搬运工,github的搬运工,下面这代码搬运来自各个地方,最后成型。var
classCache = {}; function getElementsByClassName(cls, root, tag){ var elems,
classRE, rs = []; roo...
分类:
其他好文 时间:
2014-05-23 11:12:19
阅读次数:
367
由于业务需要,对EDM发出的邮件日志进行分析处理,我要做的是预处理,把posfix杂乱无章的日志中找到我需要的数据.我用javamail发的邮件,发送邮件时获取到是一个messageId,形如:2135546465.103503.1400232891548.JavaMail.root@hostnam...
分类:
其他好文 时间:
2014-05-20 09:19:16
阅读次数:
267