摘要: 系统优化 # 配置主机名 hostnamectl set-hostname xxx # 主机名称解析 cat /etc/hosts 172.18.129.68 xxx # 主机安全配置 关闭firewalld systemctl stop firewalld systemctl disable fi 阅读全文
posted @ 2022-09-08 18:00 刘小懒 阅读(173) 评论(0) 推荐(0) 编辑
摘要: MongoDb 命令查询所有数据库列表 CODE: show dbs 如果想查看当前连接在哪个数据库下面,可以直接输入db CODE: db Admin 想切换到test数据库下面 CODE: use test switched to db test db Test 想查看test下有哪些表或者叫c 阅读全文
posted @ 2021-08-04 10:19 刘小懒 阅读(1581) 评论(0) 推荐(0) 编辑
摘要: 同一个Mongodb实例下: 切换到源库 use db_source; # db_source = 需要拷贝数据的库 var test_copy = db_source.table.find(); # table = 要迁移的表 use db_target; # db_target = 拷贝的目标库 阅读全文
posted @ 2021-08-04 10:16 刘小懒 阅读(1066) 评论(0) 推荐(0) 编辑
摘要: sudo amazon-linux-extras install docker sudo service docker start sudo usermod -a -G docker ec2-user docker info 阅读全文
posted @ 2021-07-29 18:53 刘小懒 阅读(337) 评论(0) 推荐(0) 编辑
摘要: vim mongodb.yaml apiVersion: apps/v1 kind: Deployment metadata: name: mongodb labels: app: mongodb spec: replicas: 1 selector: matchLabels: app: mongo 阅读全文
posted @ 2021-01-04 18:30 刘小懒 阅读(360) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # Author: 刘小懒 # example:python3 feishu.py 参数 import json import sys import requests # 你复制的webhook地址 url 阅读全文
posted @ 2020-12-09 15:31 刘小懒 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: vim docker-compose.yaml entrypoint: sh -c "echo java -Xmx824m -jar /test.jar --server.port=9999 --spring.profiles.active=test >start.sh && chmod 750 s 阅读全文
posted @ 2020-08-18 14:42 刘小懒 阅读(320) 评论(0) 推荐(0) 编辑
摘要: vim kibana.yml xpack.reporting.csv.maxSizeBytes: 2097152000 # csv文件大小,默认为10485760(10MB) xpack.reporting.queue.timeout: 3000000 # 超时时间,默认是120000(2分钟) 重 阅读全文
posted @ 2020-08-11 17:05 刘小懒 阅读(5094) 评论(0) 推荐(0) 编辑
摘要: ​ 环境准备: ​ 系统: centos7 ​ vlc版本: 3.0.11 安装vlc 登录到需要部署vlc的那台机器上, yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum i 阅读全文
posted @ 2020-08-11 14:05 刘小懒 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: 1. 系统环境: 底层系统:CentOS Linux release 8.1.1911 (Core 负载均衡:192.168.0.115: 9117 web1: 192.168.0.115:9113 web2: 192.168.0.115:9111 注意:关闭selinux, 防火墙 2. dock 阅读全文
posted @ 2020-07-02 16:46 刘小懒 阅读(1283) 评论(0) 推荐(0) 编辑