摘要: 查看: crontab -l 修改: crontab -e //添加新的定时任务按i 例: */30 * * * * /data/download-server/server.sh restart //半小时执行一次 阅读全文
posted @ 2021-01-19 09:46 julian_chang 阅读(96) 评论(0) 推荐(0)
摘要: curl -L "http://localhost:8080/get_token" curl -H "Content-Type: application/json" -X POST -d '{"test": "testval" }' "http://localhost:80808/api" //po 阅读全文
posted @ 2021-01-19 09:39 julian_chang 阅读(70) 评论(0) 推荐(0)
摘要: 1.在表格中混用float与double会出现数值不准确的情况 保持一种类型,比如double,jdk8以后有lambda 可以统计返回结果是double的 2.在表格中插入公式 SXSSFCell cellttsum = tailrow.createCell(y); String colStrin 阅读全文
posted @ 2020-07-14 11:57 julian_chang 阅读(434) 评论(0) 推荐(0)
摘要: #!/bin/sh declare -A myMap myMap["test.ts"]="yw_0001.ts" //需要改名的map function getfile(){ echo $1 for file in $1/* do if test -f $file then echo $file a 阅读全文
posted @ 2020-06-29 15:37 julian_chang 阅读(210) 评论(0) 推荐(0)
摘要: 远程登录FTP过慢,解决: 在vsftpd.conf文件中加入: vi /etc/vsftpd/vsftpd.conf reverse_lookup_enable=NO 保存后重新启动vsftpd: service vsftpd restart reverse_lookup_enable=NO表示不 阅读全文
posted @ 2020-06-28 15:09 julian_chang 阅读(1296) 评论(0) 推荐(1)
摘要: 1.sha1 shasum *.* 2.md5 md5 *.* 3.查看目录下文件个数 ls -l |grep "^-"|wc -lll -rt //按时间降序 | tac 是升序 4.查看当前所有目录大小 du -sh * 5.把文件夹下的某些文件名导入到txt中 find . -type f - 阅读全文
posted @ 2020-01-19 15:56 julian_chang 阅读(155) 评论(0) 推荐(0)
摘要: 批量修改服务器上的文件名 rename src dest scope rename 20191230 20201230 *.info 源和目标是都要修改的部分 阅读全文
posted @ 2020-01-19 15:44 julian_chang 阅读(244) 评论(0) 推荐(0)
摘要: 查询逗号有多少个语句: select title, video_ids, (char_length( video_ids ) - char_length(replace(video_ids,',','' ))) as b, episode from album; 原理:字符串总长度减去掉逗号后的长度 阅读全文
posted @ 2020-01-19 15:39 julian_chang 阅读(354) 评论(0) 推荐(0)
摘要: 1.下载 http://kafka.apache.org/downloads 2.解压&启动 tar -xzf kafka_2.11-2.3.0.tgz cd kafka_2.11-2.3.0 ./bin/zookeeper-server-start.sh config/zookeeper.prop 阅读全文
posted @ 2019-12-02 14:52 julian_chang 阅读(195) 评论(0) 推荐(0)
摘要: Redis 现在安装已经特别简单了,用官网的命令快速安装: 1.下载 https://redis.io/download 或者 wget http://download.redis.io/releases/redis-5.0.7.tar.gz 2.解压&安装 $ tar xzf redis-5.0. 阅读全文
posted @ 2019-12-02 11:25 julian_chang 阅读(378) 评论(0) 推荐(0)