可以参考Express官网关于路由一节:http://expressjs.com/guide/routing.html1:通过使用GET、POST方式定义主页路由,app.js:var express = require('express');var app = express();app.get(...
分类:
其他好文 时间:
2015-02-09 20:10:13
阅读次数:
159
NetworkMapGOAL:PC0communicationwithPC1Environment:CiscoPacketTracerCondition1.Route12.Switch13.PC3ConnectionSwitchfa0/1------PC0Switchfa0/2------PC1Switchfa0/3------fa0/0RouteSettingsWorkstationPC0STATICIP:192.168.1.2255.255.255.0192.168.1.1PC1STATICIP:192...
分类:
其他好文 时间:
2015-02-09 11:09:34
阅读次数:
196
临时修改ip地址ifconfigeth0up//端口启用
ifconfigeth0down//端口关闭
ifconfigeth0192.168.1.10//只修改ip地址
ifconfigeth0192.168.1.10/24或者ifconfigeth01.1.1.1netmask255.0.0.0//修改ip地址和掩码临时修改网关route//查看路由表
netstat-rn//查看路由表
routedeldefault..
分类:
其他好文 时间:
2015-02-08 15:33:44
阅读次数:
1146
模版变量from flask import Flask, render_templateapp = Flask(__name__)@app.route('/')def index(): user='valentine' return render_template('index.html',user...
分类:
其他好文 时间:
2015-02-08 15:17:17
阅读次数:
159
题目:find the mincost routeTime Limit: 1000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2801 Accepted Submission(s): 1115Problem Description杭州有N个景区,景区之间有一些双...
分类:
其他好文 时间:
2015-02-07 20:22:07
阅读次数:
429
转自http://www.cnblogs.com/peida/archive/2013/03/05/2943698.htmlLinux系统的route命令用于显示和操作IP路由表(show/manipulatetheIProutingtable)。要实现两个不同的子网之间的通信,需要一台连接两个网络...
分类:
其他好文 时间:
2015-02-06 20:19:43
阅读次数:
211
本文将以 linux 源码分析,在 linux 下的策略路由的实现。...
分类:
系统相关 时间:
2015-02-06 16:46:50
阅读次数:
312
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to
...
分类:
其他好文 时间:
2015-02-06 15:06:34
阅读次数:
180
尝试telnet一个ip的一个端口,来测试端口是否通。结果:反馈像是说这个地址不在路由表里。这种问题。有两个处理方法可能主机开启防火墙,做了阻挡。checkiptables,我们执行iptables-F清除所有防火墙规则然后再关闭防火墙再尝试telnet还是报错。那么跳到处理22.该地址段不在路..
分类:
Web程序 时间:
2015-02-06 11:35:18
阅读次数:
773