上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页
摘要: 1.配置sentinel.conf -------------------------------------------------- port 26379 dir "/home/app/soft/redis-2.8.19" daemonize yes logfile "/var/log/redis/sentinel.log" sentinel monitor mymaster 10.0.13... 阅读全文
posted @ 2017-02-06 09:59 也许还年轻 阅读(207) 评论(0) 推荐(0) 编辑
摘要: public interface DistributedLock { boolean getLock(String var1, String var2, int var3);//加锁 void unLock(String var1, String var2);//释放 } // // Source code recreated from a .class file by I... 阅读全文
posted @ 2017-02-06 09:54 也许还年轻 阅读(7300) 评论(1) 推荐(0) 编辑
摘要: vim /etc/sysconfig/clock cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime hwclock -w 阅读全文
posted @ 2016-11-21 15:18 也许还年轻 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1.打开cmd窗口,进入MySQL安装的bin目录 2.执行命令登录数据库,之后会出现一行要你输入密码的 mysql -u root -p 3.执行以下命令分配新用户:grant all privileges on *.* to 'root'@'%' identified by 'root'; (% 阅读全文
posted @ 2016-11-15 13:28 也许还年轻 阅读(2554) 评论(0) 推荐(0) 编辑
摘要: String fileName = StringUtils.substringBeforeLast(file.getOriginalFilename() , "."); //文件原始扩展名 String fileExtension = StringUtils.substringAfter(file. 阅读全文
posted @ 2016-10-19 11:27 也许还年轻 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: TOMCAT_PATH='/home/jyapp/apache-tomcat-7.0.59/'PID=`ps -ef |grep $TOMCAT_PATH | grep -v grep |awk '{print $2}'`kill -9 ${PID}cd $TOMCAT_PATH/bin/bin/b 阅读全文
posted @ 2016-10-17 11:44 也许还年轻 阅读(1497) 评论(0) 推荐(0) 编辑
摘要: 工作中用到的,在存储过程中的语句,简单记下: /** 判断输入日期是星期几 */ select decode(to_char(to_date(iv_date,'yyyy-mm-dd'), 'day'),'星期一','1','星期二','2','星期三','3','星期四','4','星期五','5','星期六','6','7') ... 阅读全文
posted @ 2016-09-13 14:50 也许还年轻 阅读(12547) 评论(0) 推荐(1) 编辑
摘要: select trunc(sysdate- to_date(to_char(j.create_date,'yyyy-mm-dd'),'yyyy-mm-dd')) 相差天数 from sys_user j where j.id='100008881' 阅读全文
posted @ 2016-07-25 14:38 也许还年轻 阅读(320) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-07-25 14:13 也许还年轻 阅读(1) 评论(0) 推荐(0) 编辑
摘要: package com.jy.demo.web; import java.util.Date; public class People { private String name;//姓名 private int age;//年龄 private String email; private Date date; public Date getDat... 阅读全文
posted @ 2016-07-06 11:40 也许还年轻 阅读(451) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 22 下一页