ICode9

精准搜索请尝试: 精确搜索
  • nginx反向代理WebSocket2022-01-06 17:04:28

    原文:nginx反向代理WebSocket | 飞污熊博客 (xncoding.com) WebSocket协议相比较于HTTP协议成功握手后可以多次进行通讯,直到连接被关闭。但是WebSocket中的握手和HTTP中的握手兼容, 它使用HTTP中的Upgrade协议头将连接从HTTP升级到WebSocket。这使得WebSocket程序可以更容易的使用现

  • python自动升级三方库2022-01-01 23:30:16

    #!/usr/bin/python # -*- coding: utf-8 -*- import sys import subprocess # 由于pip内置对象已失效,自己做了一个自动升级三方库的脚本 # from pip._internal.utils.misc import get_installed_distributions # 备份三方文件放到桌面 # call("pip freeze > requirements.txt"

  • Winget2021-12-31 02:03:07

    概述 管理 Windows 中软件的工具,堪比 Linux 中的包管理工具(apt),也与 scoop 类似,只不过 Winget 是官方推出的,这里放出官方文档 常用命令 默认下载路径是 C:\Users\xxx\AppData\Local\Programs REM 查看全部可下载软件(大约 3045 个) winget show REM 查看已经安装的全部软件 winget l

  • Python2.7升级pip失败解决办法2021-12-29 14:37:53

    CentOS下通过 pip install --upgrade pip 升级pip版本失败,解决方法如下: Python2.7自带pip版本为8.1, pip install --upgrade pip总是报错 wget wget https://bootstrap.pypa.io/get-pip.py #Python3.6以上使用这个进行升级pip wget https://bootstrap.pypa.io/pip/2.7/get-pip.pyp

  • pip升级(Python pip upgrade)2021-12-29 08:02:42

            查看pip版本的时候提示pip升级了 虽然下边介绍了upgrade pip的方法,但对于小白来说还是有些不明觉厉的。在浏览器搜索了一篇详细(傻瓜式)的说明后,pip终于升级成功了。 用win+R打开命令行 在命令行中输入cd\后回车 cd\ 按下回车后界面显示 找到Python

  • SpringBoot + SpringBatch + Quartz整合定时批量任务2021-12-26 18:59:14

    点击“终码一生”,关注,置顶公众号 每日技术干货,第一时间送达! 1、引言 最近一周,被借调到其他部门,赶一个紧急需求,需求内容如下: PC网页触发一条设备升级记录(下图),后台要定时批量设备更新。这里定时要用到Quartz,批量数据处理要用到SpringBatch,二者结合,可以完成该需求。 由于之前,

  • pip装包出现持续自动降版本,一直失败2021-12-21 12:02:57

    问题:distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') 今天安装uiautomator2和anyjson的时候, pip install 失败,然后自动往下降版本,每次setup也都会失败 问题点在于pip安装工具和setuptools版本不对 如果不确定具体版本,可

  • PostgreSQL版本通过pg_upgrade升级(9.6.21升级到13.2)2021-12-18 22:02:52

    PostgreSQL版本通过pg_upgrade升级(9.6.21升级到13.2) PG升级前版本:9.6.21 PG升级后版本:13.2 docker:18.06.3-ce 1、先下载相应的镜像,里面已经安装了PG各个版本:9.6、10、11、12、13 [root@wcbpg ~]# docker pull lhrbest/lhrpgall:1.0 创建镜像 [root@wcbpg ~]#docker run -d

  • ubuntu20.04 关闭升级提示2021-12-14 08:00:07

      在界面下可以关掉自动升级,但是,每次还是会弹出升级提示,解决方法: sudo systemctl disable apt-daily.service apt-daily-upgrade.service sudo systemctl disable apt-daily.timer apt-daily-upgrade.timer sudo systemctl stop apt-daily.service apt-daily-upgrade.service su

  • alpin2021-12-13 04:00:07

    alpine 更新apk源 echo "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories //清华大学源 echo "https://mirrors.ustc.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories //中科大源 echo "http://mirrors.aliyun.com/a

  • brew 的常用语法2021-12-09 11:04:51

    brew命令大全 brew search xxx 例如:brew search mysql #搜索 brew install xxx 例如:brew install mysql #安装 brew info xxx 例如:brew info mysql #查询 主要查看具体的信息及依赖关系当前版本注意事项等 brew update

  • 升级pip操作:WARNING: You are using pip version ; however,.. is available.You should consider ..command.2021-12-06 21:30:37

    一、检查warning内容: WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available. You should consider upgrading via the 'e:\anaconda3\python.exe -m pip install --upgrade pip' command. 二、读懂warning内容: 正在使用pip xxx版本;然而版本xxx是

  • ubuntu部署W13SCAN2021-12-05 22:02:42

    w13scan的安装与使用 遇到的问题: 1、安装pip3 sudo apt-get install python3-pip         需要更新pip3     pip install --upgrade pip   sudo pip install pip3   sudo pip install pip=21.3.1   sudo pip install pip==21.3.1 pip install --upgrade pip   全都

  • Nginx反向代理WebSocket链接失败问题2021-12-02 14:04:01

    问题记录:本地socket测试无误后部署发现 WebSocket connection to "xxx/xxx" failed  解决方案: 在nginx.conf的http模块添加如下内容 map $http_upgrade $connection_upgrade { default upgrade; '' close; } 其次在反向配置中Nginx Location下添加如下代码

  • mysql小版本升级2021-11-29 14:32:11

    基于mysql5版本的升级   官网英文文档: https://dev.mysql.com/doc/refman/5.7/en/upgrade-binary-package.html  参考链接 : 中文文档: 链接地址没找到。。。。               就地升级 1、备份数据库数据 ,使用Navicat导出数据库数据   2、备份 配置文件 cp /etc/my.c

  • Old ST-LINK firmware detected.do you want to upgrade it?升级固件2021-11-28 15:31:06

    一段时间没有使用st-link烧写程序了。打开keil5准备把程序烧写到stm32板子上时,报错Old ST-LINK firmware detected.do you want to upgrade it?经查,发现是stlink固件太旧了,需要升级。升级就升级吧,结果点击之后没反应。于是上网搜解决方案。原来就是到stm32官网下载st-link utility

  • [亲测有效]Failed to connect to https://changelogs.ubuntu.com/meta-release-lts.2021-11-16 17:00:45

    问题描述: Ubuntu登陆首页后提示如下信息: Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings 解决: 1.移除 sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-available 2.运行 sudo ./usr

  • nginx反向代理Grafana2021-11-09 15:00:31

    官方文旦地址:https://grafana.com/tutorials/run-grafana-behind-a-proxy/ 一级路径 只需要修改nginx配置文件 # this is required to proxy Grafana Live WebSocket connections. map $http_upgrade $connection_upgrade { default upgrade; '' close; } server { listen

  • 安装hive使用mysql作为元数据遇到的一些问题2021-11-09 11:32:57

    安装hive使用mysql作为元数据遇到的一些问题 报错以下这个是因为没有初始化mysql作为元数据 Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '“APP”.“NUCLEUS_ASCII”

  • armbian stretch更换国内源2021-11-05 02:00:36

    FX的N1中刷入armbian uname -a linux aml 5.0.2-aml-s905 #5.77 SMP PREEMPT Mon Apr 1 17:41:33 MSK 2019 aarch64 GNU/Linux 更换国内源,与debian不同,发现清华源有不少缺失,没有找到适合的阿里源,中科大源能够比较好的进行更新,不同源的维护不一样啊,源服务器不是简单的镜像。 nano /

  • Ubuntu命令笔记2021-11-04 09:05:44

    Ubuntu命令笔记 更新软件 sudo apt update sudo apt upgrade sudo apt dist-upgrade #内核更新 sudo reboot #重启,更新内核需要重启一下 安装pwntools apt update apt install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential python3 -m pip

  • How to disable daily upgrade and clean on Ubuntu 16.042021-11-03 09:35:16

    How to disable daily upgrade and clean on Ubuntu 16.04 回答1 At first I tried: sudo apt-get remove unattended-upgrades But it was insufficient. I also had to do this: sudo systemctl stop apt-daily.timer sudo systemctl disable apt-daily.timer sudo systemct

  • 宝塔设置workman 的wss2021-11-01 21:33:46

      upstream wss { # 这里的localhost是映射本地服务器,也可以是外网ip,2345是我ws开启的端口。 server localhost:8585; }    location /wss { proxy_pass http://127.0.0.1:8585; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgr

  • WebSocket无法连接问题2021-10-26 16:00:14

    问题描述: 最近在研究rosbridge,其原理如下图,浏览器与rosbridge server也是通过WebSocket连接的,但发现有连接不上的情况。 原因: 情况 1: 做服务器的PC IP地址变更,导致原IP连接不上。是因为做服务器的PC用了DHCP自动分配IP的方式,自动分配的IP有一定的时限,超过一定时限后变更IP

  • 使用arpspoof &&顺便更新kali源2021-10-11 21:34:01

    kali使用arpspoof时没有时, 1.换kali源 cd到 /etc/apt下,使用vim修改sources.list, 注释掉第二行, 选用你的源, 这里跳过kali自带的官方源(ps:太慢了) 选用 #中科大 deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib deb-src http://mirrors.ustc.edu.cn/kal

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有