摘要: JVM面试题(已归类) 一年一度的面试高峰期又来了,技术学习群的很多朋友问我有没有关于JVM基础面试题,网上各种面试题没有分类很混乱,无法系统性参考学习。 于是,我就把之前整理的以及我面试过的真题和答案都整理了一份分享给大家。共计108道面试题! 持续根据技术群反馈不端更新,将涵盖内容包括: Java设计模式、Spring 阅读全文
posted @ 2022-07-09 12:21 聊聊IT那些事 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 配置hadoop(master,slave1,slave2) 说明: NameNode: master DataNode: slave1,slave2 -------------------------------------------------------- A. 修改主机的m... 阅读全文
posted @ 2013-07-14 02:20 聊聊IT那些事 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 免密码ssh设置现在确认能否不输入口令就用ssh登录localhost: $ ssh localhost如果不输入口令就无法用ssh登陆localhost,执行下面的命令:1. 并修改hosts映射: 添加:(配置三台机器hosts,保证可以互相访问) $ vi /etc/hosts 127.0.0.1 localhost.localdomain localhost 192.168.126.10 master.localdomain master 192.168.126.20 slave1.localdomain slave1 192.168... 阅读全文
posted @ 2013-07-13 16:44 聊聊IT那些事 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 1.Ubuntu下用命令 (自动下载并安装) $ sudo apt-get install ssh $ sudo apt-get install rsync2.redhat linux9 i:默认已经安装 查看版本:# rpm -q openssh-server ii:设置为开机自启动 ntsysv 打开窗口 (互动式操作界面)--启动或停止服务提供了简单的界面 如果sshd服务没有启动,则在sshd前面的[]处按空格键(变为*号即可),按tab键,确定。 iii:启动ssh /etc/init.d/sshd start #启动 /etc/ini... 阅读全文
posted @ 2013-06-16 11:09 聊聊IT那些事 阅读(495) 评论(2) 推荐(0) 编辑
摘要: SecureCRTPortable 属于终端仿真程序,支持SSH(查看此处http://blog.csdn.net/macrossdzh/article/details/5691924)协议。利用CRT可以很方便操作虚拟机终端。进入正题......1. 首先,下载SecureCRTPortable软件。2.直接执行SecureCRTPortable.exe文件即可。3.执行效果图。 a.连接成功效果图 b.配置过程 1.新建sessions 点击 file->connect: 下一步:下一步:点击“完成”。2.配置session的属性 a. connection属性设置b.ssh2属性设 阅读全文
posted @ 2013-06-15 18:29 聊聊IT那些事 阅读(4294) 评论(0) 推荐(0) 编辑
摘要: 搭建JDK和Eclipse环境,首先需要把文件挂载或共享到linux虚拟机上。方式有两种: 1. 利用vwware自带的文件共享功能(建议用iso方式)。 2. 可以利用另外的软件工具。我这里用的是SSH(SshClient).大家可以打网上下载。 我再这里用的是挂载的方式,也就是把需要的软件打包为iso镜像文件,然后通过vmware的cd/dvd挂载到linux虚拟机上。 下载好以下软件: 1. JDK版本:jdk-6u13-linux-i586.zip. 2. Eclipse版本:eclipse-SDK-3.3.2-linux-g... 阅读全文
posted @ 2013-06-15 16:30 聊聊IT那些事 阅读(2121) 评论(0) 推荐(0) 编辑
摘要: 1.有关vmware worksation9的安装查找网上相关资料。(我的版本:VMware-workstation-full-9.0.2-1031769.exe) 下载地址:http://pan.baidu.com/share/link?shareid=377762&uk=38429435862.安装RedHat Linux9.需要下载的相关软件: A. 下载三张光盘(镜像文件)。 1.shrike-i386-disc1.iso 2.shrike-i386-disc2.iso 3.shrike-i386-disc3.iso B.下载一个精... 阅读全文
posted @ 2013-06-15 15:44 聊聊IT那些事 阅读(765) 评论(0) 推荐(0) 编辑
摘要: 在开发JSP与Struts时会遇到:解决jsp访问路径与Servlet访问路径不比配问题:第一种解决方法:例子: xx.jsp 该jsp存在于WEB的目录为:/admin/login.jsp 此jsp中的使用的图片路径为: ../image/bg.gif ../css/css.css 以上为正常写法,当然如果你的WEB项目下只有.jsp没有Servlet或是Action之类的Servlet是不会有问题的。但问题就出现在此项目中有了Servlet,例如Struts的Action. 如现Servlet时,通过某jsp跳到某jsp还可以,但当通过jsp访问到servlet,在通过servlet访问某 阅读全文
posted @ 2013-05-11 16:23 聊聊IT那些事 阅读(976) 评论(0) 推荐(0) 编辑
摘要: package com.dh.activiti; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.s... 阅读全文
posted @ 2018-08-09 22:12 聊聊IT那些事 阅读(237) 评论(0) 推荐(0) 编辑
摘要: // <![CDATA[ var jf = null; //创建对象 $(function(){ var options = { dom : '#test_light', //对应容器的css选择器 baseDom : "json_text" }; jf = new JsonFormater(opt 阅读全文
posted @ 2016-08-19 14:33 聊聊IT那些事 阅读(814) 评论(0) 推荐(0) 编辑
摘要: import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.*; /**... 阅读全文
posted @ 2016-08-10 18:23 聊聊IT那些事 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 1.JDK安装 a.卸载JDK (1)卸载默认的JDK 用root用户登陆到系统,打开一个终端输入 # rpm -qa|grep gcj 显示内容其中包含下面两行信息 # java-1.4.2-gcj-compat-1.4.2.0-27jpp # java-1.4.2-gcj-compat-devel-l.4.2.0-27jpp ... 阅读全文
posted @ 2016-05-01 18:13 聊聊IT那些事 阅读(287) 评论(0) 推荐(0) 编辑
摘要: http://www.oschina.net/news/69858/java-developer-need-intellij-idea-plugin 阅读全文
posted @ 2016-04-13 13:52 聊聊IT那些事 阅读(954) 评论(0) 推荐(0) 编辑
摘要: <dependency> <!-- junit 4.7 --> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <type>jar</type> <scope>test</scope></ 阅读全文
posted @ 2016-04-10 10:11 聊聊IT那些事 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: <!-- jetty 插件配置 --><plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.1.6.v20100715</version> <confi 阅读全文
posted @ 2016-04-10 10:08 聊聊IT那些事 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1.包命名规则:xxx.xxx.controllers(否则扫描不到) 2.文件命名规则 xxxController 阅读全文
posted @ 2016-04-10 09:54 聊聊IT那些事 阅读(552) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-04-09 16:21 聊聊IT那些事 阅读(7) 评论(0) 推荐(0) 编辑