会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大日很忧伤
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
2022年3月24日
Centos8 安装 Docker 后容器端口无法访问
摘要: 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)
2022年3月16日
docker安装emqx
摘要: 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)
2022年3月10日
Docker安装ElasticSearch7
摘要: 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服务开机自启
摘要: docker update 服务 --restart=always docker update 服务 --restart=always
阅读全文
posted @ 2022-03-10 14:25 大日很忧伤
阅读(34)
评论(0)
推荐(0)
2022年3月9日
docker容器内不能vi/vim
摘要: 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)
2022年3月4日
配置crontab定时任务
摘要: 添加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)
shell脚本手动执行成功,定时任务执行脚本不成功
摘要: 上一篇文档脚本手动能执行成功,crontab定时任务执行脚本不成功。 原因:cron的环境变量和shell脚本的环境变量不一样 解决办法: #方法一:定时任务里面切换到root执行() */5 * * * * su - root -c "/data/pkgs/mysql/tools/auto_bac
阅读全文
posted @ 2022-03-04 16:44 大日很忧伤
阅读(2651)
评论(0)
推荐(1)
关于"行18: 未预期的符号 `fi' 附近有语法错误"
摘要: 最近有个定时执行的脚本,校验服务是否在启动状态 写好脚本总是报错 #!/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)
2022年1月28日
新机centos8安装docker及配置docker路径流程
摘要: 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)
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
摘要: 最近换环境,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)
上一页
1
2
3
4
5
6
7
8
9
10
11
下一页
公告