上一页 1 2 3 4 5 6 7 ··· 21 下一页
摘要: - elastcisearch 生命周期策略 ``` PUT _ilm/policy/deeplang-logger-policy { "policy" : { "phases" : { "warm" : { "min_age" : "7d", "actions" : { "allocate" : 阅读全文
posted @ 2023-07-20 13:19 lixinliang 阅读(180) 评论(1) 推荐(0) 编辑
摘要: ### mongodb数据迁移 - 操作 ``` --备份单个表 mongodump -u superuser -p 123456 --port 27017 --authenticationDatabase admin -d myTest -c d -o /backup/mongodb/myTest 阅读全文
posted @ 2023-07-07 20:11 lixinliang 阅读(73) 评论(0) 推荐(0) 编辑
摘要: ### Elasticsearch 数据迁移 - 使用elaticsearch-dump 方式进行迁移 ``` # 安装nodejs cd /opt wget https://npm.taobao.org/mirrors/node/v10.15.3/node-v10.15.3-linux-x64.t 阅读全文
posted @ 2023-07-07 19:50 lixinliang 阅读(79) 评论(0) 推荐(0) 编辑
摘要: ### 飞书邮箱报警设置 - vi /etc/mail.rc ``` set ssl-verify=ignore set nss-config-dir=/etc/pki/nssdb set from=xxxx@yyy.ai set smtp=smtps://smtp.feishu.cn:465 se 阅读全文
posted @ 2023-06-08 10:07 lixinliang 阅读(79) 评论(0) 推荐(0) 编辑
摘要: ### 分区 ``` linux 默认是 MBR分区,最多四个主分区 一种是GUID(GPT)分区,GUID(GPT)最多支持128个主分区,没有扩展分区和逻辑盘,支持2.2T容量以上的硬盘分区 ``` ### 需求是每个用户 200GB 分区挂载 ``` [root@lexun20 ~]# lsb 阅读全文
posted @ 2023-06-05 17:59 lixinliang 阅读(129) 评论(0) 推荐(0) 编辑
摘要: ### 权限设置 - 需求: 所有除 root 用户外的普通用户拥有对指定数据目录的所有权限 - 方式一: - 模拟 ``` # 创建两个用户 useradd test1 useradd test2 # 创建指定数据目录 mkdir /export/yp # setfacl 设置权限 setfacl 阅读全文
posted @ 2023-05-21 14:52 lixinliang 阅读(338) 评论(0) 推荐(0) 编辑
摘要: python 操作阿里云对象存储oss 阿里云账号要有操作oss 权限 安装 OSS SDK pip install oss2 上传文件 # -*- coding: utf-8 -*- import oss2 import os # 阿里云账号AccessKey拥有所有API的访问权限,风险很高。强 阅读全文
posted @ 2023-04-23 13:29 lixinliang 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 探测Nginx 服务监控 #coding: utf-8 import requests,json,os,time def Alarm(img): data = { "msg_type": "interactive", "card": { "elements": [{ "tag": "div", "t 阅读全文
posted @ 2023-04-21 14:31 lixinliang 阅读(206) 评论(0) 推荐(0) 编辑
摘要: python 批量爬取邮箱地址 #coding: utf-8 import requests import bs4 #解析网页 import lxml import re headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; 阅读全文
posted @ 2023-03-24 17:52 lixinliang 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 标签选择器 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>小米</title> <style type="text/css"> #menu{ background: red; height: 80px; } 阅读全文
posted @ 2023-03-22 13:58 lixinliang 阅读(16) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 21 下一页