JAVA EE
文章平均质量分 65
不会编程同学
爱生活,不爱Bug
展开
-
Shell 脚本http监听服务
#!/bin/bash#设置变量,url为你需要检测的目标网站的网址(IP或域名)url=www.baoidu.com#定义函数check_http:#使用curl命令检查http服务器的状态#-m设置curl不管访问成功或失败,最大消耗的时间为5秒,5秒连接服务为相应则视为无法连接#-s设置静默连接,不显示连接时的连接速度、时间消耗等信息#-o将curl下载的页面内容导出到/dev/null(默认会在屏幕显示页面内容)#-w设置curl命令需要显示的内容%{http_code},指定.原创 2022-04-28 18:55:40 · 517 阅读 · 0 评论 -
shell 监控本地jar包程序进程,并重启
#!/bin/sh# 必须配置,引入环境变量;不然使用crond 定时执行脚本无法启动Java应用source /etc/profile#当前时间now=`date +"%Y-%m-%d %H:%M:%S"`file_name="/var/local/scripts/fastdfs/logs/push-fast-dfs.log" #重启脚本的日志,保证可写入,保险一点执行 chmod 777 data.logpid=0proc_num(){ num=`ps -ef | grep '...原创 2022-04-28 17:11:09 · 448 阅读 · 0 评论 -
FastDFS配置https加密存取图片
将fastdfs改为https存取主要有几个步骤:将/etc/fdfs/目录下的tracker.conf,storage.conf,client.conf的http.server_port改为443 配置nginx 的SSL模块:https://www.cnblogs.com/ghjbk/p/6744131.html 配置SSL证书 :https://www.cnblogs.com/grimm/p/5938496.html一.将/etc/fdfs/目录下的conf配置文件的http.server.原创 2021-01-29 16:58:39 · 1198 阅读 · 0 评论 -
EL表达式 三木运算使用
${customer.isActive==true ?"有效":"无效"}原创 2017-01-04 12:23:59 · 1782 阅读 · 0 评论 -
SQL语句删除字段中包含的某个字符
比如车牌 晋A12345 中的 晋 字。有的行是没有的,只要删除有的sql语句:-- Oracle update 表 set 列 = replace (列,'晋','') where 列 like '%晋%'or update 表 set 列 = '晋' || 列 where 列 not like '%晋%'-- MySQLupd原创 2017-03-02 17:15:21 · 9184 阅读 · 0 评论 -
Maven 安装教程
安装maven:1. 获得maven最新安装包http://maven.apache.org/download.html2. 解压,放置任意文件夹下3. 创建环境变量,MAVEN_HOME,在值中填写maven安装路径4. 将maven加入环境变量path中,在path的值后面附加%MAVEN_HOME%\bin;5. 开启新的dos窗口,输入mvn -v命令,获得正确输出时表原创 2017-04-25 11:11:38 · 286 阅读 · 0 评论 -
java.security.NoSuchAlgorithmException: AES KeyGenerator not available
ssm+shiro项目中用到AES 加密报异常异常信息Caused by: java.lang.IllegalStateException: Unable to acquire AES algorithm. This is required to function.at org.apache.shiro.crypto.AbstractSymmetricCipherService.ge原创 2017-05-16 17:29:53 · 9333 阅读 · 0 评论 -
ElasticsearchDemo
DEMO使用技术点:Maven+ SpringBoot + JDK 1.8.0_151 + ElasticSearch-2.3.3 + ElasticSearch-analysis-ik-1.9.3 + typeahead.js输入框输入信息后,自动提示补全控件 + jqPaginator.js分页控件+ Thymeleaf 页面模板显示 Github 地址:https://github.co原创 2017-12-20 14:25:42 · 2771 阅读 · 7 评论