- 第1步win10宿主机与虚拟机通过NAT共享上网互通
学习3人组
大数据大数据
VM的CentOS采用NAT共用宿主机网卡宿主机器无法连接到虚拟CentOS要实现宿主机与虚拟机通信,原理就是给宿主机的网卡配置一个与虚拟机网关相同网段的IP地址,实现可以互通。1、查看虚拟机的IP地址2、编辑虚拟机的虚拟网络的NAT和DHCP的配置,设置虚拟机的网卡选择NAT共享模式3、宿主机的IP配置,确保vnet8的IPV4属性与虚拟机在同一网段4、ping测试连通性[root@localh
- Centos7配置网络
挨踢的懒猫
我们的机器刚装完系统不能上网,需要根据信息技术部分配的IP对网络进行配置。一、列出网卡ifconfig会发现列出了两张网卡,ens160:主机的以太网卡lo:本地回环网卡。二、配置网络由于我们的IP都是静态分配,而CentOS默认是使用DHCP动态获取IP,所以ens160网卡没有IP,需要手动配置IP等信息。1.配置以太网卡sudovi/etc/sysconfig/network-scripts
- 计算机网络笔记分享(第六章 应用层)
寒页_
计算机网络计算机网络笔记
文章目录六、应用层6.1域名系统DNS解析的两种查询方式6.2文件传送协议FTP简单传输协议TFTP6.3远程终端协议TELNET6.4万维网WWW统一资源定位符URL超文本传输协议HTTP万维网的文档HTML万维网的信息检索系统博客和微博社交网站6.5电子邮件6.6动态主机配置协议DHCP6.7简单网络管理协议SNMP6.8应用进程跨越网络的通信几种常用的系统调用6.9P2P应用介绍学习计算机网
- 如何修改电脑网络ip地址呢?
快解析
在讲如何做IP地址修改之前,首先要给大家普及一下IP地址的分类。IP地址分为公网IP和私网IP,公网IP是网络运营商(电信/联通)分配给我们的,这个IP可以在互联网中被访问;私网IP是路由器的DHCP(动态主机分配协议)分配给我们的,该IP只能在局域网内部使用。公网IP由于是运营商分配的,我们无法修改,所以本文讲的IP地址修改是修改私网IP。那么什么情况下我们要手动修改IP地址呢?我列举了两种最常
- h3c交换机配置dhcp详细教程
西坡不是东坡
网络运维ip
实验室要求主机无需手动配置ip地址,只要连接网线,即可自动获取IP地址。实验室的交换机用的是H3C,下面通过控制台在华三交换机上配置DHCP服务。1.连接交换机通过ssh连接交换机2.进入系统视图system-view3.启用dhcp服务[H3C]dhcpenable4.进行dhcp服务配置4.1配置地址池#设置ip地址池名字,vlan1-dhcp是我设置的名字,可根据自己情况设置[H3C]dhc
- 银河麒麟高级服务器操作系统V10SP2(X86)PXE服务端部署以及测试
熊08
服务器运维linuxkylin
银河麒麟高级服务器操作系统V10SP2(X86)PXE服务端部署以及测试一系统环境1.1服务端/客户端系统版本1.2服务端环境信息二组件安装部署2.1安装软件包2.1.1uefi配置2.1.2legacy配置2.2dhcp服务配置2.2.1uefi配置2.2.2legacy配置2.3xinetd服务配置2.4http服务配置2.4.1uefi配置2.4.2legacy配置2.5grub配置2.5.
- ubuntu 设置固定ip地址 或设置自动获取ip地址
遝鱈丿閒人灬
服务器服务器linuxubuntu
查看ubuntu网卡信息名ipaddr1.lo:2.enp1s03.docker04.br-eff5ea5eea78修改配置文件sudovi/etc/network/interfaces#Theprimarynetworkinterface#autoenp1s0#ifaceenp1s0inetdhcp//这两行是用来设定自动获取ip地址的enp1s0即为第一步中的网卡名autoenp1s0ifac
- arm64架构 统信UOS搭建PXE无盘启动Linux系统(麒麟桌面为例)
满满的伤疤
linux架构运维
arm64架构统信UOS搭建PXE无盘启动Linux系统(麒麟桌面为例)搞了好久搞得头疼哎1、准备服务器UOS服务器准备服务IP这里是192.168.1.1001.1、安装程序yuminstall-ydhcptftptftp-serverxinetdnfs-utilsrpcbind2、修改配置2.1、修改dhcpd.confvi/etc/dhcp/dhcpd.conf##DHCPServerCon
- ensp典型中小型企业网搭建(带无线)
小王网
毕设课设网络协议网络安全
摘要该设计规划的是一个公司的网络搭建,采用接入层、核心层、汇聚层三层网络。所有接入层汇聚层交换机运行MSTP和VRRP协议,做冗余备份,保护设备和链路稳定性。运行ospf动态路由协议,方便路由维护。使用dhcp动态分配地址,便于ip地址管理。出口采用防火墙设备,保护网络安全。同时在防火墙上做SNAT,可以让公司内网访问外网。在防火墙上做DNAT,可以让外部网络访问公司服务器。一、设计思路每个部门划
- DHCP分配IP地址详细流程讲解(附图,建议PC观看)
冯富江的技术博客
tcp/ip网络协议网络DHCP分配IP地址
目录一、DHCP分配IP地址流程:第一步:DHCPClient请求IP——DHCPClient以广播的方式发出DHCPDiscover报文第二步:server响应——DHCPServer向DHCPClient发送一个DHCPOffer报文第三步:DHCPClient选择IP——DHCPClient会发出一个广播的DHCPRequest报文,在选项字段中会加入选中的DHCPServer的IP地址和需
- TCP/IP基础笔记之ARP, DHCP
neilengineer
WIFIassociation成功后的操作和ethernet差不多,ARP和DHCP是其中2个常用协议。ARP作用是把IP地址转换为对应的EthernetMAC地址。在BSD-styleOS,每条ARPentry在ARP表里的时间是20分钟。在得到任何ARPreply前,PC可以连续75秒发ARPrequests。具体时间和实现相关。GratuitousARP(免费ARP)包括gratuitous
- dhcp服务器1(dhcp原理,arp协议原理)
Lucky_Lu0
linux服务器运维apache网络
一.dhcp工作原理dhcp(DynamicHostconfigurationProtocol,动态主机配置协议)是一个局域网的网络协议,它主要是通过客户端发送广播数据包给整个物理网段内的所有主机,若局域网内有DHCP服务器时,才会响应客户端的IP参数要求。客户端取得IP参数的过程如下:(1)客户端:利用广播数据包发送搜索DHCP服务器的数据包若客户端网络设置使用DHCP协议取得IP,则当客户端开
- 网络——ARP、DHCP、ICMP协议
real_vavid
计算机学科基础综合网络408
ARP协议完成主机或路由器IP地址到MAC地址的映射,是工作在网络层的一个自动进行的协议。(解决下一跳走哪的问题)使用过程:检查ARP高速缓存,有对应表项则写入MAC帧,没有则用目的MAC地址为FF-FF-FF-FF-FF-FF的帧封装并广播ARP请求分组,同一局域网中所有主机都能收到该请求。目的主机收到请求后就会向源主机单播一个ARP响应分组,源主机收到后将此映射写入ARP缓存(10-20min
- IP协议DNS/ARP/ICMP/DHCP辅助技术
wwl-飞行者
计算机网络
IP协议相关技术在网络通信中仅仅依靠IP是无法通信的,需要用到一些辅助技术,包括DNS/ARP/ICMP/DHCP等等技术。1.DSN:通常访问某个网络时,直接是用域名访问,如“www.baidu.com”,由于IP地址难以记忆,DNS的作用是将字符串自动转化为IP地址。DNS调查IP地址时,向域名服务器进行查询,域名服务器首先会在自己的数据库进行查找,若有该域名对应的IP地址就返回,若没有向上一
- 网工面试题总结-38道
曾经我也很执着
笔记网络udptcp/ip
目录1.简述OSI【开放式系统互联参考模型】七层模型主要功能2.描述TCP和UDP协议的主要区别3.介绍TCP的三次握手机制?为什么TCP的三次握手需要三次?4.什么是DHCP?描述工作过程?5.什么是ARP?谈谈ARP协议的主要功能。6.什么是广播域?什么是冲突域?7.什么是NAT?有哪些NAT?8.简述IP数据包结构?并且对这些内容进行解析?9.RIP协议的防环机制有哪些?10.RIP协议的计
- docker安装实验和docker容器的使用,云计算技术与应用报告
不自律的自律_input
云计算docker
题目:Docker的安装和使用实验环境:ubuntu16.04,虚拟机的网络模式设为NAT模式,IP地址通过虚拟DHCP服务器自动分配。实验内容和要求:安装Docker并进行相关实验,熟悉Docker的相关操作。实验包括Docker的安装、镜像和容器的使用、容器的连接、容器间的通信和Nginx的使用。实验原理和机制:Docker是一种构建在LXC之上,基于进程容器的轻量级虚拟化解决方案,实现了应用
- 简单快速-虚拟机搭建K8S集群
WANDEMOandSTEDAT
kubernetes运维linux
0》、虚拟机需要固定IP:etc/sysconfig/network-scripts/ifcfg-ens33BOOTPROTO=dhcp改成:BOOTPROTO=staticIPADDR=192.168.31.160DNS1=192.168.31.2GATEWAY=192.168.31.2重启网络servicenetworkrestart1》、所有机器关闭防火墙和firewalld服务system
- 静态IP地址(ISP)适合什么应用场景?
Tony聊跨境
网络代理IP跨境电商网络ip
随着互联网的普及和发展,越来越多的设备和应用需要接入网络。在这些情况下,动态主机配置协议(DHCP)成为一种常见的选择,因为它会自动为客户端分配IP地址。然而,在某些特定场景下,静态IP地址(ISP)可能是更好的选择。本文将讨论静态IP地址适用于哪些应用场景1.哪些应用场景适合使用静态IP地址a.服务器托管在服务器托管环境中,静态IP地址是理想的选择。由于服务器需要向外界提供服务,使用静态IP地址
- DHCP服务异常与IP地址管理挑战
IP数据云
tcp/ip网络智能路由器DHCP
DHCP是一种计算机网络协议,主要用于自动分配IP地址、子网掩码、网关、DNS等网络参数给客户端设备。它是局域网中实现自动IP地址分配的重要协议,极大地简化了网络管理员对IP地址的管理,使得设备接入网络更加简单、快捷和安全。DHCP服务异常,可能会导致设备无法正确获取IP地址和其他网络参数,从而影响网络连接和通信。因此,了解DHCP服务异常的原因及相应的解决方法显得尤为重要。DHCP服务异常的原因
- DHCP部署与防护
小Z资本
网安学习网络安全服务器
DHCP动态主机配置协议:获取响应的ip地址(自动分配),配置dns、网关使用udp协议(比tcp速度快)tcp安全,重传机制udp速度快dhcp服务器67dhcp客户端68手工配置(dhcp服务器将手动配置的IP地址分给客户),自动配置(客户端第一次向服务器申请ip地址,永久分配ip地址),动态配置(租约有关)DHCP报文:discover报文offerrequest:请求ip地址;租约到期ac
- 华为AC+AP上线配置
LeslieLiang
参考原帖:https://blog.51cto.com/maguangjie/17723351.拓扑搭建拓扑图.jpg2.配置思路导图华为无线配置导图.jpg3.配置步骤AC基础配置[AC6605]vlanbatch100101#创建vlan[AC6605]dhcpenable#开启DHCP服务VLAN配置[AC6605]intvlan100[AC6605-Vlanif100]descriptio
- 为什么有了MAC还需要IP?
吃小南瓜�
计算机网络面试
目录MAC地址(MediaAccessControlAddress)IP地址(InternetProtocolAddress)为什么需要两者?IP地址和MAC地址在网络通信中扮演着不同的角色,它们各自有独特的功能和用途。下面是它们的主要区别和为什么两者都需要的原因:使用MAC地址通信使用IP地址通信定位在物理网络中路由数据包跨网络OSI模型第二层OSI模型第三层通过DHCP由制造商分配IP地址易伪
- DNS、网关、IP、DHCP
Covirtue
tcp/ip网络协议网络
DNS、网关、IP、DHCP:深入剖析与理解在计算机网络的世界中,DNS、网关、IP和DHCP是四个至关重要的概念,它们共同构建了互联网的基础架构,确保了数据的准确传输和设备的有效连接。本文将深入剖析这四个概念,帮助读者更好地理解它们的工作原理及其在网络中的作用。DNS:域名系统的核心**DNS(DomainNameSystem)**是互联网基础设施的关键组件,负责将人类可读的域名(如www.ex
- DHCP(动态主机配置协议)详解
云夏之末
网络协议网络
动态主机配置协议DHCP(DynamicHostConfigurationProtocol,动态主机配置协议)是RFC1541(已被RFC2131取代)定义的标准协议,该协议允许服务器向客户端动态分配IP地址和配置信息。DHCP协议支持C/S(客户端/服务器)结构,主要分为两部分:1、DHCP客户端:通常为网络中的PC、打印机等终端设备,使用从DHCP服务器分配下来的IP信息,包括IP地址、DNS
- DHCP原理及配置
確定饿的猫
网络linux运维
目录一、DHCP原理DHCP介绍DHCP工作原理DHCP分配方式工作原理DHCP重新登录DHCP优点二、DHCP配置一、DHCP原理1DHCP介绍大家都知道,现在出门很多地方基本上都有WIFI,那么有没有想过这样一个问题,平时在家里都是“固定”的ip地址,那么如果出门连接了公共的WIFI,会怎样获得,获得什么ip地址呢?其实,这里就涉及到了DHCP动态分配。之前我们配置ens33网卡的时候,通常都
- 二级路由器如何做端口映射
chenglanche9990
网络
上网的时分经常会遇到这样的情况,一个路由器不能够满意运用需求;为了解决这个问题,能够在增加一个二级路由器,对网络进行扩展。那么二级路由器怎样设置呢?主要把第一个路由器设置好能够上网,第二个路由器封闭DHCP并更改路由地址,首先把第一个路由器设置好能够正常上网,我们也可以用iis7服务器监控工具直接来修改端口。一、路由器设置:1、输入路由器背面的地址并输入密码点击确定。2、在弹出的对话框中勾选下次不
- 配置PXE预启动执行环境:使用PXE装机服务器网络引导装机
shyuu_
网络linux服务器云计算运维运维开发
文章目录PXE概述PXE批量部署的优点基本的部署过程搭建的前提条件搭建配置PXE装机服务器1.准备CentOS7安装源(YUM仓库)2.安装并启用TFTP服务3.安装并启用DHCP服务4.准备Linux内核和初始化镜像文件5.准备PXE引导程序6.安装FTP服务并准备CentOS7安装源7.配置启动菜单文件8.关闭防火墙并验证PXE网络安装PXE概述PXE(PrebootExecutionEnvi
- DHCP服务(基础小白必学)
耗同学一米八
Linux基础知识(小白必看)php开发语言
DHCP服务文章目录DHCP服务一、DHCP介绍二、DHCP应用场景三、DHCP工作原理3.1)工作方式3.2)工作原理解析3.3)计算机获得IP的时间点3.4)租约更新阶段四、DHCP服务器部署4.1)DHCP安装4.2)DHCP配置文件详解4.3)DHCP启动五、DHCP作用域5.1)DHCP服务配置5.2)重启DHCP服务,生效配置5.3)测试IP分发5.4)通过DHCP服务器租约文件查看具
- 华为Gre 手动配置实例
Young143
华为网络
R1配置syssysnameHFdhcpenableacl2000rule1permitso192.168.10.00.0.0.255intg0/0/0ipadd192.168.10.25424dhcpselectintintg0/0/1ipadd12.0.0.124natoutbound2000iproute-s0.0.0.0012.0.0.2interfaceTunnel0/0/1tunnel
- 华为ENSP配置 三层交换机DHCP配置加VLAN划分实验
一个懒鬼
华为网络
实验拓扑图如下:LSW5三层交换机配置:#sysnameLSW5#vlanbatch1020#dhcpenable#ippool1gateway-list192.168.1.254network192.168.1.0mask255.255.255.0dns-list8.8.8.8#ippool2gateway-list192.168.2.254network192.168.2.0mask255.2
- Java序列化进阶篇
g21121
java序列化
1.transient
类一旦实现了Serializable 接口即被声明为可序列化,然而某些情况下并不是所有的属性都需要序列化,想要人为的去阻止这些属性被序列化,就需要用到transient 关键字。
- escape()、encodeURI()、encodeURIComponent()区别详解
aigo
JavaScriptWeb
原文:http://blog.sina.com.cn/s/blog_4586764e0101khi0.html
JavaScript中有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:,decodeURI,decodeURIComponent 。
下面简单介绍一下它们的区别
1 escape()函
- ArcgisEngine实现对地图的放大、缩小和平移
Cb123456
添加矢量数据对地图的放大、缩小和平移Engine
ArcgisEngine实现对地图的放大、缩小和平移:
个人觉得是平移,不过网上的都是漫游,通俗的说就是把一个地图对象从一边拉到另一边而已。就看人说话吧.
具体实现:
一、引入命名空间
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Controls;
二、代码实现.
- Java集合框架概述
天子之骄
Java集合框架概述
集合框架
集合框架可以理解为一个容器,该容器主要指映射(map)、集合(set)、数组(array)和列表(list)等抽象数据结构。
从本质上来说,Java集合框架的主要组成是用来操作对象的接口。不同接口描述不同的数据类型。
简单介绍:
Collection接口是最基本的接口,它定义了List和Set,List又定义了LinkLi
- 旗正4.0页面跳转传值问题
何必如此
javajsp
跳转和成功提示
a) 成功字段非空forward
成功字段非空forward,不会弹出成功字段,为jsp转发,页面能超链接传值,传输变量时需要拼接。接拼接方式list.jsp?test="+strweightUnit+"或list.jsp?test="+weightUnit+&qu
- 全网唯一:移动互联网服务器端开发课程
cocos2d-x小菜
web开发移动开发移动端开发移动互联程序员
移动互联网时代来了! App市场爆发式增长为Web开发程序员带来新一轮机遇,近两年新增创业者,几乎全部选择了移动互联网项目!传统互联网企业中超过98%的门户网站已经或者正在从单一的网站入口转向PC、手机、Pad、智能电视等多端全平台兼容体系。据统计,AppStore中超过85%的App项目都选择了PHP作为后端程
- Log4J通用配置|注意问题 笔记
7454103
DAOapachetomcatlog4jWeb
关于日志的等级 那些去 百度就知道了!
这几天 要搭个新框架 配置了 日志 记下来 !做个备忘!
#这里定义能显示到的最低级别,若定义到INFO级别,则看不到DEBUG级别的信息了~!
log4j.rootLogger=INFO,allLog
# DAO层 log记录到dao.log 控制台 和 总日志文件
log4j.logger.DAO=INFO,dao,C
- SQLServer TCP/IP 连接失败问题 ---SQL Server Configuration Manager
darkranger
sqlcwindowsSQL ServerXP
当你安装完之后,连接数据库的时候可能会发现你的TCP/IP 没有启动..
发现需要启动客户端协议 : TCP/IP
需要打开 SQL Server Configuration Manager...
却发现无法打开 SQL Server Configuration Manager..??
解决方法: C:\WINDOWS\system32目录搜索framedyn.
- [置顶] 做有中国特色的程序员
aijuans
程序员
从出版业说起 网络作品排到靠前的,都不会太难看,一般人不爱看某部作品也是因为不喜欢这个类型,而此人也不会全不喜欢这些网络作品。究其原因,是因为网络作品都是让人先白看的,看的好了才出了头。而纸质作品就不一定了,排行榜靠前的,有好作品,也有垃圾。 许多大牛都是写了博客,后来出了书。这些书也都不次,可能有人让为不好,是因为技术书不像小说,小说在读故事,技术书是在学知识或温习知识,有些技术书读得可
- document.domain 跨域问题
avords
document
document.domain用来得到当前网页的域名。比如在地址栏里输入:javascript:alert(document.domain); //www.315ta.com我们也可以给document.domain属性赋值,不过是有限制的,你只能赋成当前的域名或者基础域名。比如:javascript:alert(document.domain = "315ta.com");
- 关于管理软件的一些思考
houxinyou
管理
工作好多看年了,一直在做管理软件,不知道是我最开始做的时候产生了一些惯性的思维,还是现在接触的管理软件水平有所下降.换过好多年公司,越来越感觉现在的管理软件做的越来越乱.
在我看来,管理软件不论是以前的结构化编程,还是现在的面向对象编程,不管是CS模式,还是BS模式.模块的划分是很重要的.当然,模块的划分有很多种方式.我只是以我自己的划分方式来说一下.
做为管理软件,就像现在讲究MVC这
- NoSQL数据库之Redis数据库管理(String类型和hash类型)
bijian1013
redis数据库NoSQL
一.Redis的数据类型
1.String类型及操作
String是最简单的类型,一个key对应一个value,string类型是二进制安全的。Redis的string可以包含任何数据,比如jpg图片或者序列化的对象。
Set方法:设置key对应的值为string类型的value
- Tomcat 一些技巧
征客丶
javatomcatdos
以下操作都是在windows 环境下
一、Tomcat 启动时配置 JAVA_HOME
在 tomcat 安装目录,bin 文件夹下的 catalina.bat 或 setclasspath.bat 中添加
set JAVA_HOME=JAVA 安装目录
set JRE_HOME=JAVA 安装目录/jre
即可;
二、查看Tomcat 版本
在 tomcat 安装目
- 【Spark七十二】Spark的日志配置
bit1129
spark
在测试Spark Streaming时,大量的日志显示到控制台,影响了Spark Streaming程序代码的输出结果的查看(代码中通过println将输出打印到控制台上),可以通过修改Spark的日志配置的方式,不让Spark Streaming把它的日志显示在console
在Spark的conf目录下,把log4j.properties.template修改为log4j.p
- Haskell版冒泡排序
bookjovi
冒泡排序haskell
面试的时候问的比较多的算法题要么是binary search,要么是冒泡排序,真的不想用写C写冒泡排序了,贴上个Haskell版的,思维简单,代码简单,下次谁要是再要我用C写冒泡排序,直接上个haskell版的,让他自己去理解吧。
sort [] = []
sort [x] = [x]
sort (x:x1:xs)
| x>x1 = x1:so
- java 路径 配置文件读取
bro_feng
java
这几天做一个项目,关于路径做如下笔记,有需要供参考。
取工程内的文件,一般都要用相对路径,这个自然不用多说。
在src统计目录建配置文件目录res,在res中放入配置文件。
读取文件使用方式:
1. MyTest.class.getResourceAsStream("/res/xx.properties")
2. properties.load(MyTest.
- 读《研磨设计模式》-代码笔记-简单工厂模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
package design.pattern;
/*
* 个人理解:简单工厂模式就是IOC;
* 客户端要用到某一对象,本来是由客户创建的,现在改成由工厂创建,客户直接取就好了
*/
interface IProduct {
- SVN与JIRA的关联
chenyu19891124
SVN
SVN与JIRA的关联一直都没能装成功,今天凝聚心思花了一天时间整合好了。下面是自己整理的步骤:
一、搭建好SVN环境,尤其是要把SVN的服务注册成系统服务
二、装好JIRA,自己用是jira-4.3.4破解版
三、下载SVN与JIRA的插件并解压,然后拷贝插件包下lib包里的三个jar,放到Atlassian\JIRA 4.3.4\atlassian-jira\WEB-INF\lib下,再
- JWFDv0.96 最新设计思路
comsci
数据结构算法工作企业应用公告
随着工作流技术的发展,工作流产品的应用范围也不断的在扩展,开始进入了像金融行业(我已经看到国有四大商业银行的工作流产品招标公告了),实时生产控制和其它比较重要的工程领域,而
- vi 保存复制内容格式粘贴
daizj
vi粘贴复制保存原格式不变形
vi是linux中非常好用的文本编辑工具,功能强大无比,但对于复制带有缩进格式的内容时,粘贴的时候内容错位很严重,不会按照复制时的格式排版,vi能不能在粘贴时,按复制进的格式进行粘贴呢? 答案是肯定的,vi有一个很强大的命令可以实现此功能 。
在命令模式输入:set paste,则进入paste模式,这样再进行粘贴时
- shell脚本运行时报错误:/bin/bash^M: bad interpreter 的解决办法
dongwei_6688
shell脚本
出现原因:windows上写的脚本,直接拷贝到linux系统上运行由于格式不兼容导致
解决办法:
1. 比如文件名为myshell.sh,vim myshell.sh
2. 执行vim中的命令 : set ff?查看文件格式,如果显示fileformat=dos,证明文件格式有问题
3. 执行vim中的命令 :set fileformat=unix 将文件格式改过来就可以了,然后:w
- 高一上学期难记忆单词
dcj3sjt126com
wordenglish
honest 诚实的;正直的
argue 争论
classical 古典的
hammer 锤子
share 分享;共有
sorrow 悲哀;悲痛
adventure 冒险
error 错误;差错
closet 壁橱;储藏室
pronounce 发音;宣告
repeat 重做;重复
majority 大多数;大半
native 本国的,本地的,本国
- hibernate查询返回DTO对象,DTO封装了多个pojo对象的属性
frankco
POJOhibernate查询DTO
DTO-数据传输对象;pojo-最纯粹的java对象与数据库中的表一一对应。
简单讲:DTO起到业务数据的传递作用,pojo则与持久层数据库打交道。
有时候我们需要查询返回DTO对象,因为DTO
- Partition List
hcx2013
partition
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of th
- Spring MVC测试框架详解——客户端测试
jinnianshilongnian
上一篇《Spring MVC测试框架详解——服务端测试》已经介绍了服务端测试,接下来再看看如果测试Rest客户端,对于客户端测试以前经常使用的方法是启动一个内嵌的jetty/tomcat容器,然后发送真实的请求到相应的控制器;这种方式的缺点就是速度慢;自Spring 3.2开始提供了对RestTemplate的模拟服务器测试方式,也就是说使用RestTemplate测试时无须启动服务器,而是模拟一
- 关于推荐个人观点
liyonghui160com
推荐系统关于推荐个人观点
回想起来,我也做推荐了3年多了,最近公司做了调整招聘了很多算法工程师,以为需要多么高大上的算法才能搭建起来的,从实践中走过来,我只想说【不是这样的】
第一次接触推荐系统是在四年前入职的时候,那时候,机器学习和大数据都是没有的概念,什么大数据处理开源软件根本不存在,我们用多台计算机web程序记录用户行为,用.net的w
- 不间断旋转的动画
pangyulei
动画
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: M
- 自定义annotation
sha1064616837
javaenumannotationreflect
对象有的属性在页面上可编辑,有的属性在页面只可读,以前都是我们在页面上写死的,时间一久有时候会混乱,此处通过自定义annotation在类属性中定义。越来越发现Java的Annotation真心很强大,可以帮我们省去很多代码,让代码看上去简洁。
下面这个例子 主要用到了
1.自定义annotation:@interface,以及几个配合着自定义注解使用的几个注解
2.简单的反射
3.枚举
- Spring 源码
up2pu
spring
1.Spring源代码
https://github.com/SpringSource/spring-framework/branches/3.2.x
注:兼容svn检出
2.运行脚本
import-into-eclipse.bat
注:需要设置JAVA_HOME为jdk 1.7
build.gradle
compileJava {
sourceCompatibilit
- 利用word分词来计算文本相似度
yangshangchuan
wordword分词文本相似度余弦相似度简单共有词
word分词提供了多种文本相似度计算方式:
方式一:余弦相似度,通过计算两个向量的夹角余弦值来评估他们的相似度
实现类:org.apdplat.word.analysis.CosineTextSimilarity
用法如下:
String text1 = "我爱购物";
String text2 = "我爱读书";
String text3 =