搜索 提交
  • 根据ibd文件还原docker容器内mysql数据库

    1.创建配置文件 /dp/docker/file/mysql052/conf/my.cnf [client] default-character-set = utf8mb4 [mysql] default-character-set = utf8mb4 [mysqld] port=3306 m
  • centos安装git-lfs

    git下载大文件用的,不安装的后果是git clone时 大文件只colone出来一个连接文件 curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sh yum instal
  • python | pip 镜像源

    清华镜像源 https://pypi.tuna.tsinghua.edu.cn/simple 镜像源使用方法 在pip install 安装包名称 -i 镜像源 -i http://pypi.douban.com/simple/ --trusted-host=pypi.douban.com/simp
  • docker centos7部署Langchain-Chatchat + chatglm3-6b 实现本地知识库

    创建容器 docker run -d --name centos-glm -v /dp/docker/file/glm:/usr/local/glm -p 820:22 -p 8501:8501 --privileged=true centos:7 /usr/sbin/initdocker run
  • centos 安装 Conda

    在终端中,使用以下命令下载Miniconda安装脚本: wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh 使用以下命令运行安装脚本: bash Miniconda3-latest-Linux-x86_
  • mysql创建新用户

    -- 创建新用户 CREATE USER '用户名'@'%' IDENTIFIED BY '密码';   -- 分配权限 GRANT ALL PRIVILEGES ON 数据为.* TO '用户'@'%';   -- 刷新权限 FLUSH PRIVILEGES; %表
  • 返回一个包含一个package的所有目录

    如所有包含org.anyline的目录,有可能是在jar中 Enumeration<URL> urls = ConfigTable.class.getClassLoader().getResources("org/anyline/"); while (urls.hasMoreElem
  • Class.getResource("/")与Class.getResource("")

    getResource("/")返回项目classes目录,返回protocol=file getResource("")返回当前类所在的目录,有可能是jar内部目录如 file:/D:/jar/maven/org/anyline/anyline-core/8.7.2-SNAPSHOT/anylin
  • The request was rejected because the URL contained a potentially malicious String "//"

    The request was rejected because the URL contained a potentially malicious String "//" 一般是因为nginx配置代理是多拼写了个/ 如 location /api { proxy_pass  http
  • 检测服务器端口是否开放

    nmap -Pn ip -p 80,443
  • 修改或隐藏onlyoffice的LOGO图标

    修改或隐藏onlyoffice的LOGO图标 如果是开源版本 直接修改CSS文件 /var/www/onlyoffice/documentserver/web-apps/apps/documenteditor/main/resources/css/app.css中的#header-logo
  • Java配置日志级别

    java.util.logging.Logger.getLogger("org.apache.http.wire").setLevel(java.util.logging.Level.OFF); logback的日志级别 ch.qos.logback.classic.LoggerContext l
  • rpm安装 NebulaGraph单机测试版

    参考【官方文档】 nebula有三组服务graph、meta、storage graph:可以理解成客户端要连接就是连接的这个 storage:存储数据 meta:元数据、帐号、权限(这个不用管,安装过程中不需要操作) 下面的安装文件执行后会一次安装好这3个服务。 安装完成后连接graph(
  • docker容器内mysql 备份还原

    备份压缩 docker exec -i  容器ID  mysqldump -u数据库帐号 -p数据库密码  数据库名 | gzip > 宿主机目录/bak_`date '+%Y%m%d%H%M%S'`.sql.gz 还原 解压文件 ungzip&nbs
  • onlyoffice下载/Editor.bin 403 (Forbidden)

    http://ip/cache/files/data/b195a5987360badbf069/Editor.bin/Editor.bin?md5=lVr8ODn1JRfI4Pu_Svz8qA&expires=1708742317&filename=Editor.bin 在/etc/
  • Docker安装部署星瑞格 SinoDB

    下载镜像https://forum.sinoregal.cn/t/topic/202 wget https://forum.sinoregal.cn/files/SinoDB-V16.8-docker.tar 1.导入镜像文件 docker load < SinoDB_V1
  • Power Designer - pdm批量将空的comment改成name

    Tools-->Execute Commands-->Edit/Run Script... 输入以下脚本 Run 或者直接根据name生成SQL,参考【PowerDesinger根据列name生成列注释】 Option Explicit ValidationMode = True Int
  • select2赋值

    $('.').val('123').trigger('change');
  • mysql登录命令

    mysql -h127.0.0.1 -uroot -p1234 -P3306
  • docker安装gbase 8s

    docker pull liaosnet/gbase8s:2.0.1a2_2 镜像名太长了改个名 docker tag liaosnet/gbase8s:2.0.1a2_2 gbase8s docker rmi liaosnet/gbase8s:2.0.1a2_2 启动容器 doc