Windows本地部署DeepSeek-r1
1 Downlaod访问:ollama.com 下载OllamaSetup.exe 2 安装默认安装在C盘,指定安装路径: 1OllamaSetup.exe /DIR="D:\Program Files\Ollama" 3 下载模型指定代理: 12set http_proxy=http://127.0.0.1:1080set https_proxy=http://127.0.0.1:1080 指定模型下载位置: 12OLLAMA_MODELS=E:\AI\ollama\models# 设置环境变量,默认下载路径由~/.ollama/models更改为自定义路径,不更改的话可能会把C盘填满 拉取镜像并运行 12ollama run deepseek-r1:14bollama serve 4 参考:4.1 网址参考客户端: chatbox https://chatboxai.app ( api: “http://127.0.0.1:11434“ ) Cherry Studio https://cherry-ai.com/ LibreChat...
cmd环境下设置fnm环境变量
主要问题描述 由于项目原因需要经常在windows下切换node环境,找了下FNM资料,没发现合适的文章。所以主要问题就是在不想切换linux环境,也不想用poweshell,还不使用cmder的情况下,每次打开cmd自动设置环境变量。 解决方案:解决方法1:设置autorun.cmd reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d @^%USERPROFILE^%\autorun.cmd" "2^>NUL /f 打开注册表编辑器(regedit)。 导航到:HKEY_CURRENT_USER\Software\Microsoft\Command Processor 如果没有Autorun键,右键新建一个String...
Bash Reference Manual
Bash Reference Manual Table of Contents 1 Introduction 1.1 What is Bash? 1.2 What is a shell? 2 Definitions 3 Basic Shell Features 3.1 Shell Syntax 3.1.1 Shell Operation 3.1.2 Quoting 3.1.2.1 Escape Character 3.1.2.2 Single Quotes 3.1.2.3 Double Quotes 3.1.2.4 ANSI-C Quoting 3.1.2.5 Locale-Specific Translation 3.1.3 Comments 3.2 Shell Commands 3.2.1 Reserved Words 3.2.2 Simple Commands 3.2.3 Pipelines 3.2.4 Lists of Commands 3.2.5 Compound Commands 3.2.5.1 Looping Constructs 3.2.5.2...
转载 使用Kind快速创建K8S学习环境
使用Kind快速创建K8S学习环境原文链接:kind:Kubernetes in Docker,单机运行 Kubernetes 群集的最佳方案?,查看最新版。 是否没有足够的机器运行 Kubernetes 测试环境,个人电脑配置不高的话,运行多个节点的虚拟化有点力不从心,国内公有云主机一般不支持嵌套虚拟化,一套 3M+3N 的群集环境成本太高。VMware Fusion 12.0 发布,将 Kind 带入了我们的视野,这是 Google 官方的一个工具,可能是在单机运行 Kubernetes 群集的最佳方案。笔者在一台 1C 2G 的公有云虚机上运行 Kind,也不会因为计算资源有限而无法完成。 1. 简介kind 是 Kubernetes in Docker 的简写,是一个使用 Docker 容器作为 Nodes,在本地创建和运行 Kubernetes 群集的工具。适用于在本机创建 Kubernetes 群集环境进行开发和测试。 官网:https://kind.sigs.k8s.io/ kind...
6.4.3.1 密码证件安装
本节介绍如何安装 validate_password密码验证插件。有关安装插件的一般信息,请参阅 第 5.5.1 节,“安装和卸载插件”。 笔记 如果使用安装了MySQL 5.7 MySQL Yum repository, MySQL SLES Repository,或 Oracle提供的RPM包,validate_password默认情况下,您启动MySQL服务器的第一次后使能。 要被服务器使用,插件库文件必须位于 MySQL 插件目录(由plugin_dir系统变量命名的目录)中。如有必要,通过设置plugin_dir服务器启动时的值来配置插件目录位置 。 插件库文件基本名称是 validate_password. 文件名后缀因平台.so而异(例如,对于 Unix 和类 Unix 系统,.dll对于...
如何使用 Docker Compose 安装 WordPress
介绍WordPress是一个免费的开源内容管理系统 (CMS),它构建在MySQL数据库上,并使用PHP处理。由于其可扩展的插件架构和模板系统,以及其大部分管理可以通过 Web 界面完成的事实,WordPress 是创建不同类型网站(从博客到产品页面再到电子商务网站)的流行选择。 运行 WordPress 通常需要安装LAMP(Linux、Apache、MySQL 和 PHP)或LEMP(Linux、Nginx、MySQL 和 PHP)堆栈,这可能非常耗时。但是,通过使用Docker和Docker Compose等工具,您可以简化设置首选堆栈和安装 WordPress 的过程。您可以使用_图像_,而不是手动安装单个组件,它将库、配置文件和环境变量等标准化,并在_容器中_运行这些图像,在共享操作系统上运行的隔离进程。此外,通过使用 Compose,您可以协调多个容器(例如应用程序和数据库)以相互通信。 在本教程中,您将构建一个多容器 WordPress 安装。您的容器将包括一个 MySQL 数据库、一个 Nginx Web 服务器和 WordPress...
Docker-compose 同时创建多个mysql数据库
添加环境变量:DATABASES=db1,db2,db3,db4,db5 方法一:12345678entrypoint: bash -c "DBs=($${DATABASES//,/ }); for db in $${DBs[@]}; do echo "'"CREATE DATABASE IF NOT EXISTS $$db;"'" >> /docker-entrypoint-initdb.d/create_databases.sql; done; /usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci " 方法二:12345678entrypoint:: sh -c " echo ' CREATE DATABASE IF NOT EXISTS db1; ...
No such file or directory in Unknown on line 0
Warning: Unknown: Failed to open stream: No such file or directory in Unknown on line 0Q:Fatal error: Failed opening required ‘/usr/share/nginx/html/wordpress/wordfence-waf.php’ (include_path=’.:/usr/local/lib/php’) in Unknown on line 0 A: rm /usr/share/nginx/html/wordpress/.user.ini /var/www/html/wordpress/.user.ini refresh
缩略语 、术语表
2021-02-25 缩略语 英文 中文 ACL Access Control List 访问控制列表 AF Assured Forwarding 确保转发 AGCF Access Gateway Control Function 接入网关控制功能 AMBR Aggregate Maximum Bit Rate 集合最大比特速率 AMR Adaptive Multirate 自适应多速率 AMR-WB Adaptive Multi-Rate-Wideband 宽带自适应多速率 APN Access Point Name 接入点名称 APN-AMBR APN Aggregate Maximum Bit Rate 集合最大比特速率 ARP Allocation/Retention Priority 分配保留优先级 ARP Address Resolution Protocol 地址解析协议 AS Application Server 应用服务器 A-SBC Access Session Border...
git@github.com Permission denied (publickey).
ssh -T git@github.com 12git config --global user.name "usernme"git config --global user.email "emailName" Quick setupGet started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore. …or create a new repository on the command line 1234567echo "# whatever you write" >> README.mdgit initgit add README.mdgit commit -m "first commit"git branch -M maingit remote add origin...