• StableDiffusion webui ERROR: Ignored the following versions that require a different python version

    ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,=3.7,=3.7,=3.7,

    学习 2023-12-04 483

  • StableDiffusion webui 打开报错AsyncConnectionPool.__init__() got an unexpected keyword argument ‘socket_options

    找到requirements_versions.txt 在里面添加 httpx==0.24.1 然后保存,重新启动

    学习 2023-12-04 510

  • wodpress wp_list_bookmarks输出友情链接

    使用 参数 参数名 描述 order 升序 ASC 或 降序 DESC,默认 ASC。 limit -1 表示全部,1+整数表示要显示的个数。 category 以逗号分隔的类别ID列表,其中包含来自的链接。 category_name 要按名称检索链接的类别。 hide_invisible 是否显示或隐藏标记为“不可见”的链接。接受1|true或0|false。默认值1|true。 show_u…

    WordPress 2023-12-01 473

  • Linux lnmp ssl证书配置acme.sh命令

    lnmp 1.5 升级acme.sh . "/usr/local/acme.sh/acme.sh.env" /usr/local/acme.sh/acme.sh --upgrade sed -i 's/cat "\\\$CERT_PATH"\$/#cat "\\\$CERT_PATH"/g' /usr/local/acme.sh/acme.sh 手动续期 "/usr/local/acme.sh"/…

    学习 2023-11-27 373

  • lnmp 安装redis

    redis安装 进入lnmp解压后的目录,执行: ./addons.sh install redis 运行后有如下提示: 卸载 debian/ubuntu执行:update-rc.d -f redis remove centos执行:chkconfig --del redis on rm -rf /usr/local/redis rm -rf /etc/init.d/redis

    学习 2023-11-27 287

  • Linux Debian常用命令

    1.更新源 sudo apt-get update -y 2.更新已安装的包 sudo apt-get upgrade -y 3.升级系统 sudo apt-get dist-upgrade -y 4.使用 dselect 升级 sudo apt-get dselect-upgrade -y 5.了解使用依赖 sudo apt-cache depends package 6.查看该包被哪些包依赖 …

    学习 2023-11-27 519

  • Linux更换cmake版本

    先去官网http://www.cmake.org/files查看所需版本, 例如下面,我要换成3.27.8版本 mv /usr/bin/cmake /usr/bin/cmake.backup wget http://www.cmake.org/files/v3.27/cmake-3.27.8.tar.gz tar zxf cmake-3.27.8.tar.gz cd cmake-3.27.8 ./…

    学习 2023-11-27 468

  • ERROR: No matching distribution found for win32print

    执行pip install win32print的时候, 却提示这个, ERROR: Could not find a version that satisfies the requirement win32print (from versions: none) ERROR: No matching distribution found for win32print 所以需要这样安装 pip in…

    学习 2023-07-18 852

  • python pyqt

    这里只简单记录一下 安装 pip install PyQt6 pip install pyqt6-tools 第一个Qt程序 #!/usr/bin/python import sys from PyQt6.QtWidgets import QApplication, QWidget, QPushButton def main(): app = QApplication(sys.argv) w = …

    学习 2023-07-17 748

  • phpstudy apache 反代

    vhosts.conf ServerName www.test.com ServerAlias www1.test.com ProxyRequests Off Order deny,allow Allow from all ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ httpd.conf …

    学习 2023-06-28 809

  • 7z分目录逐个压缩

    首先电脑上已经安装7z, 方便起见可以先把7z加入环境变量, 当然也可以不加入环境变量, 在要压缩的目录执行通过CMD命令行执行 FOR /D %i IN ("*") DO 7z a "%~ni.7z" "%i\*" 这里不加入环境变量的话,下面7z需要指定目录 FOR /D %i IN ("*") DO 安装路径\7z a "%~ni.7z" "%i\*" 如果添加密码的话的,这里密码12345…

    学习 2023-06-05 837

  • php redis命令

    连接redis服务器 $redis = new Redis(); $redis->connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒放弃链接 返回boolean $redis->open('127.0.0.1',6379,1);//短链接(同上) $redis->pconnect('127.0.0.1',6379,1);//长链接,本地hos…

    学习 2023-03-03 1294

  • php redis

    连接 $redis = new Redis(); if (!$redis->connect('127.0.0.1', 6379)) { trigger_error('Redis连接出错!!!', E_USER_ERROR); } else { echo '连接正常'; } 获取所有的key(keys) $data = $redis->keys('*'); dump($data); 判断键对应值的类…

    学习 2023-03-02 1054

  • php mail

    首先,php邮箱发送需要使用第三方插件, PHPMailer git :https://github.com/PHPMailer/PHPMailer 安装 可在项目目录使用composer安装,当然前提电脑上已经安装过composer composer require phpmailer/phpmailer 或者可以直接去git下载程序,然后直接引入,具体可以参考作者git里说明, 我这边使用的c…

    学习 2023-03-02 966

  • php Discuz的加密解密函数

    //************************加密解密*************************/ /* * $string: 明文 或 密文 * $operation:DECODE表示解密,其它表示加密 * $key: 密匙 * $expiry:密文有效期 * */ function authcode($string, $operation = 'DECODE', $key = '…

    学习 2023-02-18 1003