搜索内容

最新文章

  • 未分类

    pycharm 2023.3.3 专业版激活

    前往官方下载软件,然后安装。 jetbra 下载后解压到随意一个本地路径,例如我的是D:/ 点击进入 /jetbra 补丁目录,再点击进入 /scripts 文件夹,双击执行 in……
    xiaobeikelian 2024-02-18
  • 系统运维

    flask web开发注意事项

    一、连接数据库 连接mysql的时候需要添加autocommit=True,否则当修改数据库的时候,数据库数据已经发生变化,但是flask还是读取修改前的数据。 中间件 middl……
    editor 2024-01-29
  • 系统运维

    es报错:this action would add [2] shards, but this cluster currently has [999]/[1000] maximum normal shards open

    一、原因与解决方案 这个是分片不足导致,ES7版本以上,默认的最大分片数是1000, 所以最直接的解决方案就是增大ES的maximum shards。 有2种方法:1是通过kiban……
    editor 2024-01-09
  • 系统运维

    centos /etc/rc.d/rc.local 自启动不生效问题

    在CentOS7中,官方将/etc/rc.d/rc.local 的开机自启的权限禁止掉了,他为了兼容性,设置了这个,但是并不默认启动.如果需要的话.执行以下代码 chmod +x /etc/rc.d/……
    editor 2024-01-09
  • 系统运维

    centos journalctl日志查看

    1.journalctl命令作用:Systemd 统一管理所有 Unit 的启动日志。可以只用journalctl一个命令,查看所有相关日志(内核日志和应用日志)。日志的配置文件是/etc……
    editor 2024-01-07
  • 系统运维

    centos 安装dnsmasq

    1. 安装 yum -y install dnsmasq 开放udp tcp 53 端口 2. 修改配置文件 dnsmasq.conf vi /etc/dnsmasq.conf #指定上游dns服务器 resolv-file=/etc/resolv.dnsm……
    editor 2024-01-03
  • 系统运维

    python logging

    import logging # create logger logger_name = "example" logger = logging.getLogger(logger_name) logger.setLevel(logging.ERROR) # create file……
    editor 2023-12-21
  • 系统运维

    VSCode终端出现乱码

    1. 字符编码原理 VSCode终端调用的是cmd.exe,使用中文出现乱码时,需要解决cmd的编码设置。 可以通过chcp命令来查看当前cmd的编码设置 chcp GBK2312的编码是9……
    editor 2023-12-19
  • 未分类

    python爬虫zol图片库

    import requests from lxml import html import re from concurrent.futures import ThreadPoolExecutor etree = html.etree def get_detail_href(url)……
    editor 2023-12-05
  • 系统运维

    学校版xshell和xftp

    家庭/学校免费
    editor 2023-11-20