-------------------------------------------查看命令---------------------------------------Displaycu//查看全部配置命令Displayiprouting-table//查看路由器的路由表DisplayiPinterfacebrief//查看接口iP地址Displayinterfaceg0/0/0//查看接口状态Displaymac-address//查..
分类:
其他好文 时间:
2014-05-27 04:17:04
阅读次数:
389
开门见山,操作如下:首先,在前端nginx上需要做如下配置:location/{proxy_passhttp://test1;proxy_set_hearderhost$host;proxy_set_headerX-Real_IP$remoute_addr;proxy_set_header$proxy_add_x_forwarded_for;};nginx会在把请求转向后台real-server前把http报头中的ip地址进..
分类:
其他好文 时间:
2014-05-27 04:03:48
阅读次数:
321
Cisco交换机上配置端口安全性的方法:静态安全MAC地址:静态MAC地址是使用switchportport-securitymac-addressmac-address接口配置命令手动配置的。以此方法配置的MAC地址存储在地址表中,并添加到交换机的运行配置中。动态安全MAC地址:动态MAC地址是动态获取的,并且仅存储在..
分类:
其他好文 时间:
2014-05-27 03:49:16
阅读次数:
278
原文地址:来做一个微信打印机吧 -- 微信打印的设计思路参考最近微信打印机小火了一把,比如印美团,747微信打印机,都是利用微信公共平台实现照片的打印。 具体流程:扫描二维码关注公共主页发送图片发送微信打印机上的打印码简单三步,实现微信打印照片的功能。那么它是怎么实现的呢?在此提供一下自己的思路供大家参考。源码已经写好了,确实可行。如果大家有好的思路欢迎一起分享^_^微信的后台接口用户把照片发给...
分类:
微信 时间:
2014-05-22 13:07:17
阅读次数:
446
【题目】
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2).
You are given a target value to search. If found in the array return its index, otherwise return -1.
You may assume no du...
分类:
其他好文 时间:
2014-05-22 10:43:12
阅读次数:
310
SELECT a.sid, a.serial#, b.sql_text FROM
v$session a, v$sqltext bWHERE a.sql_address = b.address AND a.sid =
&sidORDER BY b.piece
分类:
数据库 时间:
2014-05-22 05:13:59
阅读次数:
314
In the previous section we saw how to use
vectors to solve geometry problems. Now we are going to learn how to use some
basic linear algebra to do lin...
分类:
其他好文 时间:
2014-05-22 04:17:01
阅读次数:
549
Find a number which appears once in an array with
all the other numbers appear twice.
分类:
其他好文 时间:
2014-05-22 01:08:40
阅读次数:
278
=> build/tools/zipalign:
out/host/linux-x86/bin/zipalign (host)=> build/tools/atree:
out/host/linux-x86/bin/atree (host)=> build/tools:=> build/to...
分类:
移动开发 时间:
2014-05-22 00:26:32
阅读次数:
2792
1.文件和目录的默认权限在Linux中,我们创建文件或者目录的时候,并没有指定user,group,other这三类用户的权限,实际上umask(遮罩码)决定了创建时的默认权限。如果是文件,就用666-umask;如果是目录就用777-umask。记住LINUX的法则之一:文件默认情况下不应具有可执行权限。2...
分类:
系统相关 时间:
2014-05-20 22:51:07
阅读次数:
576