All Posts
用宝塔Docker简单部署OpenWebUI教程
Open WebUI 官方仓库:open-webui准备工作一台安装了宝塔面板的 VPS 服务器(教程使用 Ubuntu 20.x 发行版)在宝塔中安装 Docker(docker-compose) 环境快速开始使用 SSH 工具或在宝塔面板中打开终端连接到 VPS 服务器创建一个文件夹,用来存放项目相关文件,命令如下: mkdir openwebui cd openwebui # 创建docker-compose.yml文件 touch docker-compose.yml docker-compose.yml 文件内容如下: services: open-web...
CSS ICON 原生CSS3绘制的各种 icon小图标
CSS3绘制的各种 icon小图标。 点击以下链接进入:CSS ICON
centos7的yum.repos.d文件夹文件,换到阿里云
centos不维护了,现在安装东西非常麻烦。备份后清空文件夹。然后下载阿里云的源文件。curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo替换到阿里云的源。
CN2GIA、9929、CMIN2
CN2GIA是电信优化线路,电信用户用这个线路最合适 9929是联通优化线路,联通用户用这个线路最合适 CMIN2是移动优化线路,移动用户用这个线路最合适
CSS画箭头
.span_down{ font-size:0.8em;/*大小*/ padding:0.4em; width: 14px; height: 14px; border-top: 3px solid #b9b9b9; /*上面的线条*/ border-right: 3px solid #b9b9b9;/*右边线条*/ transform: rotate(135deg);/*主要是这个旋转45度*/ } 控制旋转方向,变化方向。
一键剑皇
wget https://github.com/maintell/webBenchmark/releases/download/0.5/webBenchmark_linux_x64 chmod +x webBenchmark_linux_x64 ./webBenchmark_linux_x64 -c 32 -s https://www.test.test/wp-content/uploads/2023/07/08e979ad13111354.png
nginx配置中的error_page一些用法
使用字段:http, server, location, location中的if字段以下代码返回状态是50x。 error_page 502 503 /50x.html; location = /50x.html { root /usr/share/nginx/html; } 以下代码返回状态是200。 error_page 502 503 =200 /50x.html; location = /50x.html { root /usr/share/nginx/html; } 也可以设置一个named location,然后在里边做对应的处理,这...
PHP或与非,”OR“”AND“
或:||或or 表示逻辑或,即多个满足一个。与: &&与and 表示逻辑与,多个同时满足 它们的区别在于运算的优先级不同,优先级为&&>=>and
js获取get传值的方法,并加以判断
获得值: //获取get传值的方法 function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) return decodeURI(r[2]); return null; } var zhonglei=getQueryString("zho...
网址自动生成二维码
qrcode.min.js文件 var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this.parsedData=[];for(var b=[],d=0,e=this.data.length;e>d;d++){var f=this.data.charCodeAt(d);f>65536?(b[0]=240|(1835008&f)>>>18,b[1]=128|(258048&f)>>>12,b[2]=128|(4032&f)>>>6,b[3]=128|63&f):f>2048?(b[0]=...