摘要: centos8 防火墙启动 systemctl start firewalld 查看状态 systemctl status firewalld 查看开放的端口 firewall-cmd --list-ports 打开我们所需的端口 firewall-cmd --permanent --add-por 阅读全文
posted @ 2022-03-24 10:17 大日很忧伤 阅读(765) 评论(0) 推荐(0)
摘要: 1、docker pull emqx/emqx; 2、docker run -dit --restart=always -d --name emqx -e EMQX_HOST="127.0.0.1" -e EMQX_NAME="emqx" -p 4369:4369 -p 4370:4370 -p 5 阅读全文
posted @ 2022-03-16 16:26 大日很忧伤 阅读(2301) 评论(0) 推荐(0)
摘要: 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 大日很忧伤 阅读(894) 评论(0) 推荐(0)
摘要: docker update 服务 --restart=always docker update 服务 --restart=always 阅读全文
posted @ 2022-03-10 14:25 大日很忧伤 阅读(34) 评论(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 大日很忧伤 阅读(376) 评论(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 大日很忧伤 阅读(121) 评论(0) 推荐(0)
摘要: 上一篇文档脚本手动能执行成功,crontab定时任务执行脚本不成功。 原因:cron的环境变量和shell脚本的环境变量不一样 解决办法: #方法一:定时任务里面切换到root执行() */5 * * * * su - root -c "/data/pkgs/mysql/tools/auto_bac 阅读全文
posted @ 2022-03-04 16:44 大日很忧伤 阅读(2651) 评论(0) 推荐(1)
摘要: 最近有个定时执行的脚本,校验服务是否在启动状态 写好脚本总是报错 #!/bin/sh # 在这修改程序名和程序所在目录,其他不用改 name="carte" path="/app/bigdata/data-integration/" pid=`ps -A |grep $name| awk '{pri 阅读全文
posted @ 2022-03-04 15:33 大日很忧伤 阅读(2846) 评论(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 大日很忧伤 阅读(832) 评论(0) 推荐(0)
摘要: 最近换环境,docker安装mysql8时报错,解决方案如下 找到 my.cnf进行修改 # 添加一下数据 [client] # 默认字符集 #default-character-set=utf8 socket= /var/run/mysqld/mysqld.sock [mysql] # 默认字符集 阅读全文
posted @ 2022-01-28 14:55 大日很忧伤 阅读(1070) 评论(0) 推荐(0)