ITeye博客

香格里拉没有底的博客

香格里拉没有底 · 共 26 篇文章

Eclipse编译忽略静态资源

选择需要忽略的项目 右键 properties - javascript - Source - Excluded 双击进入选择Add/Add Multiple

2017-04-21 18:24 · Eclipse · 评论(0)

Mac 下配置maven环境

1.切换到用户目录 cd ~ 2.打开.bash_profile 如果没有 touch创建一个 vim .bash_profile; 添加 export M2_HOME=/Users/grande/Documents/Developer/server/apache-maven-3.3.9 export PATH=$PATH:$M2_HOME/bin 3.执行source生效 4.mvn -v 验证 效果如图:

2017-04-21 14:56 · MAC OS · 评论(0)

MAC OX 配置JDK环境变量

大家在windows里面配置JDK环境变量很容易,但是如果要在mac里面配置JDK环境变量和windows里面有所不同,具体如下: 第一: mac OS里面自带jdk,不过是1.6的版本,现在很多人使用的都是1.7甚至更高的版本,所需要替换,自己去 oracle的官网下载最新的对应的jdk版本,网址如下:http://www.oracle.com/technetwork/ Java /javase/downloads/index-jsp-138363.html; 下载完以后安装,此时会有问题出现,系统自带的jdk和我们的jdk在什么地方。 mac系统自带的jdk的安装目录在如下目录:/Sys…

2017-04-21 14:36 · MAC OS · 评论(0)

windows输出环境变量的值

今天配置java环境突然发现JAVA_HOME的变量指向怎么改都不生效,百度了一下,原来是oracle的jdk覆盖了。 解决方案: 1、echo %JAVA_HOME% 确定是否指向正确变量 2、echo %PATH% 查找JAVA_HOME配置的路径,如若不是,把JAVA_HOME 再PATH变量中前挪即可。

2017-04-21 09:45 · windows命令 · 评论(0)

linux mysql yum安装错误解决

错误: [root@localhost ~]# service mysqld start Redirecting to /bin/systemctl start mysqld.service 解决方案: 1 wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 2 rpm -ivh mysql-community-release-el7-5.noarch.rpm 3 yum install mysql-community-server

2017-01-19 16:07 · linux · 评论(0)

linux yum 安装配置

国内优秀源: 1.http://mirrors.163.com/ 2.http://mirrors.aliyun.com/ Centos 7安装yum 管理工具 rpm -ivh --nodeps http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm rpm -ivh --nodeps http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm …

2017-01-19 14:56 · linux · 评论(0)

spring task 配置

spring task 注解和配置文件配置方式: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="h…

2017-01-17 13:50 · spring · 评论(0)

openoffice linux 服务安装

1. 启动脚本编写(cd /etc/Init.d) #!/bin/bash # Boot open office so that Alfresco can do transforms. # chkconfig: 2345 55 25 # description: OpenOffice Headless # # processname: soffice # source function library . /etc/rc.d/init.d/functions RETVAL=0 VDISPLAY='99' SOFFICE_PATH='/opt/openoffice4/program/' SOF…

2017-01-10 14:52 · openoffice · 评论(0)

js屏蔽回车事件

设置 document对象onekeydown事件: document.onkeydown = function () { if (window.event && window.event.keyCode == 13) { window.event.returnValue = false; } }

2016-11-29 13:45 · javascript · 评论(0)

tomcat启动出现The JRE could not be found.Edit the server and change the JRE location

更换JDK版本后,tomcat启动出现: The JRE could not be found.Edit the server and change the JRE location. 解决方案:eclipse中:Windows->Preferences->Server->Runtime Environments 单击edit选择对应的JRE即可

2016-08-22 13:56 · tomcat · 评论(0)

PowerDesigner 提示安装打印机

问题: powerDesigner每点开一个功能就会提示安装打印机非常之可恶 解决方案: 把这个打印机服务打开即可

2016-08-22 09:27 · powerDesigner · 评论(0)

linux 安装mysql后设置root密码

在red hat 6.3 新装了一个mysql后发现初始密码root不能登录,出现错误 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方案如下: #service mysqld stop #mysqld_safe --user=mysql --skip-grant-tables --skip-networking & #mysql -u root mysql mysql> UPDATE user SET Password=PASSWORD('newpassword')…

2016-08-11 09:36 · mysql · 评论(0)

linux 设置SSH Server保持长时间连接

怎样让服务器和一定时间没有任何操作的终端自动断开连接? # vi /etc/profile 增加: TMOUT=1800 这样30分钟没操作就自动LOGOUT ** OpenSSH 基于安全的理由,如果用户连线到SSH Server 后闲置一段时间,SSH Server会在超过特定时间后自动终止SSH连线。**本人习惯长时间连接,需要做如下修改: 1、打开ssh配置文件:# vim /etc/ssh/sshd_config 加入如下两个参数保存就可以: TCPKeepAlive yes ClientAliveCountMax 360 注:前一个参数表示要保持TCP连接,后一个参数表示客户端的…

2016-08-10 10:10 · linux · 评论(0)

eclipse运行优化

使用Eclipse编辑jsp、js文件时,经常出现卡死现象,在网上百度了N次,经过N次优化调整后,卡死现象逐步好转,具体那个方法起到作用,不太好讲。将所有用过的方法罗列如下: 1、取消验证 windows–>perferences–>validation 把 除了manual 下面的全部点掉,build下只留 classpath dependency Validator 2、关闭拼写检查 windows–>perferences–>general–> editors->Text Editors->spelling 3、对于MyEclipse来讲,修改JSP页面时的编辑工具 Window > …

2016-07-20 11:05 · Eclipse · 评论(0)

openoffice windows服务安装

1、下载windows resource kit tools (rktools) 2、安装完成图如下 3、服务安装 注意路径,必须为绝对路径 C:\Users\Administrator>C:\WindowsResourceKits\instsrv.exe "openoffice" C:\WindowsResourceKits\srvany.exe 4、注册表编辑 1.运行注册表编辑器 (Regedt32.exe) 找到下面的子项︰ HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ < 创建的服务名称 > 2.新建项 Paramete…

2016-07-12 10:13 · openoffice · 评论(0)