摘要: 1、拉取镜像 docker pull docker.elastic.co/elasticsearch/elasticsearch:7.1.1 2、启动 docker run -d --name es -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms512 阅读全文
posted @ 2022-03-10 15:09 大日很忧伤 阅读(826) 评论(0) 推荐(0) 编辑
摘要: docker update 服务 --restart=always docker update 服务 --restart=always 阅读全文
posted @ 2022-03-10 14:25 大日很忧伤 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 1、docker exec -it id bash2、apt-get update 3、apt-get install -y vim如果报bash: apt-get: command not found则yum install -y vim 阅读全文
posted @ 2022-03-09 17:10 大日很忧伤 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 添加crontab任务: crontab -e */1 * * * * sh /目录/xx.sh >> /目录/xx.log */1 * * * * sh /root/nb/iot-data.sh >> /root/nb/schedule/iotschedule.log 重启crontab服务: s 阅读全文
posted @ 2022-03-04 16:47 大日很忧伤 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 上一篇文档脚本手动能执行成功,crontab定时任务执行脚本不成功。 原因:cron的环境变量和shell脚本的环境变量不一样 解决办法: #方法一:定时任务里面切换到root执行() */5 * * * * su - root -c "/data/pkgs/mysql/tools/auto_bac 阅读全文
posted @ 2022-03-04 16:44 大日很忧伤 阅读(2279) 评论(0) 推荐(1) 编辑
摘要: 最近有个定时执行的脚本,校验服务是否在启动状态 写好脚本总是报错 #!/bin/sh # 在这修改程序名和程序所在目录,其他不用改 name="carte" path="/app/bigdata/data-integration/" pid=`ps -A |grep $name| awk '{pri 阅读全文
posted @ 2022-03-04 15:33 大日很忧伤 阅读(2521) 评论(0) 推荐(0) 编辑
摘要: 1:uname -r 2:yum remove docker docker-common container-selinux docker-selinux docker-engine 3:yum remove -y docker-* 4:wget http://mirrors.aliyun.com/ 阅读全文
posted @ 2022-01-28 15:07 大日很忧伤 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 最近换环境,docker安装mysql8时报错,解决方案如下 找到 my.cnf进行修改 # 添加一下数据 [client] # 默认字符集 #default-character-set=utf8 socket= /var/run/mysqld/mysqld.sock [mysql] # 默认字符集 阅读全文
posted @ 2022-01-28 14:55 大日很忧伤 阅读(976) 评论(0) 推荐(0) 编辑
摘要: 业务需要,200G文件导入服务器,报unknown filesystem type ntfs,解决方案如下 原因:CentOS默认源里没有ntfs,想要添加ntfs支持,需要自己下载编译安装或者加源yum安装。 1:wget -O /etc/yum.repos.d/epel.repo http:// 阅读全文
posted @ 2022-01-12 09:57 大日很忧伤 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 打算下载压测工具ycsb 执行命令报错 git clone https://github.com/brianfrankcooper/YCSB.git 正克隆到 'YCSB'...error: RPC failed; result=35, HTTP code = 0fatal: The remote 阅读全文
posted @ 2021-11-13 10:00 大日很忧伤 阅读(3003) 评论(0) 推荐(0) 编辑