当前位置: 首页 > news >正文

Clickhouse 配置参考

Clickhouse 配置参考

适用版本 21.3.9.84

config.xml 配置

<?xml version="1.0"?>
<!--NOTE: User and query level settings are set up in "users.xml" file.
-->
<yandex><access_control_path>/data/clickhouse/clickhouse-server/access/</access_control_path><logger><!-- Possible levels: https://github.com/pocoproject/poco/blob/poco-1.9.4-release/Foundation/include/Poco/Logger.h#L105 --><level>trace</level><log>/data/clickhouse/clickhouse-server/logs/clickhouse-server.log</log><errorlog>/data/clickhouse/clickhouse-server/logs/clickhouse-server.err.log</errorlog><size>1000M</size><count>10</count><!-- <console>1</console> --><!-- Default behavior is autodetection (log to console if not daemon mode and is tty) --></logger><!--display_name>production</display_name--><!-- It is the name that will be shown in the client --><http_port>8123</http_port><tcp_port>9000</tcp_port><mysql_port>9004</mysql_port><!-- For HTTPS and SSL over native protocol. --><!--<https_port>8443</https_port><tcp_port_secure>9440</tcp_port_secure>--><!-- Port for communication between replicas. Used for data exchange. --><interserver_http_port>9009</interserver_http_port><!-- Hostname that is used by other replicas to request this server.If not specified, than it is determined analoguous to 'hostname -f' command.This setting could be used to switch replication to another network interface.--><!--<interserver_http_host>example.yandex.ru</interserver_http_host>--><!-- Listen specified host. use :: (wildcard IPv6 address), if you want to accept connections both with IPv4 and IPv6 from everywhere. --><!-- <listen_host>::</listen_host> --><!-- Same for hosts with disabled ipv6: --><!-- <listen_host>0.0.0.0</listen_host> --><!-- Default values - try listen localhost on ipv4 and ipv6: --><!--<listen_host>::1</listen_host>--><!-- Don't exit if ipv6 or ipv4 unavailable, but listen_host with this protocol specified --><!-- <listen_try>0</listen_try> --><!-- Allow listen on same address:port --><!-- <listen_reuse_port>0</listen_reuse_port> --><!-- <listen_backlog>64</listen_backlog> --><max_connections>4096</max_connections><keep_alive_timeout>120</keep_alive_timeout><!-- Maximum number of concurrent queries. --><max_concurrent_queries>100</max_concurrent_queries><!-- Set limit on number of open files (default: maximum). This setting makes sense on Mac OS X because getrlimit() fails to retrievecorrect maximum value. --><!-- <max_open_files>262144</max_open_files> --><!-- Size of cache of uncompressed blocks of data, used in tables of MergeTree family.In bytes. Cache is single for server. Memory is allocated only on demand.Cache is used when 'use_uncompressed_cache' user setting turned on (off by default).Uncompressed cache is advantageous only for very short queries and in rare cases.--><uncompressed_cache_size>8589934592</uncompressed_cache_size><!-- Approximate size of mark cache, used in tables of MergeTree family.In bytes. Cache is single for server. Memory is allocated only on demand.You should not lower this value.--><mark_cache_size>5368709120</mark_cache_size><!-- Path to data directory, with trailing slash. --><path>/data/clickhouse/clickhouse-server/</path><!-- Path to temporary data for processing hard queries. --><tmp_path>/data/clickhouse/clickhouse-server/tmp/</tmp_path><!-- Policy from the <storage_configuration> for the temporary files.If not set <tmp_path> is used, otherwise <tmp_path> is ignored.Notes:- move_factor              is ignored- keep_free_space_bytes    is ignored- max_data_part_size_bytes is ignored- you must have exactly one volume in that policy--><!-- <tmp_policy>tmp</tmp_policy> --><storage_configuration><disks><default><keep_free_space_bytes>10737418240</keep_free_space_bytes></default></disks></storage_configuration><!-- Directory with user provided files that are accessible by 'file' table function. --><user_files_path>/data/clickhouse/clickhouse-server/user_files/</user_files_path><!-- Path to configuration file with users, access rights, profiles of settings, quotas. --><users_config>users.xml</users_config><!-- Default profile of settings. --><default_profile>default</default_profile><!-- System profile of settings. This settings are used by internal processes (Buffer storage, Distibuted DDL worker and so on). --><!-- <system_profile>default</system_profile> --><!-- Default database. --><default_database>default</default_database><!-- Server time zone could be set here.Time zone is used when converting between String and DateTime types,when printing DateTime in text formats and parsing DateTime from text,it is used in date and time related functions, if specific time zone was not passed as an argument.Time zone is specified as identifier from IANA time zone database, like UTC or Africa/Abidjan.If not specified, system time zone at server startup is used.Please note, that server could display time zone alias instead of specified name.Example: W-SU is an alias for Europe/Moscow and Zulu is an alias for UTC.--><timezone>Asia/Shanghai</timezone><!-- You can specify umask here (see "man umask"). Server will apply it on startup.Number is always parsed as octal. Default umask is 027 (other users cannot read logs, data files, etc; group can only read).--><!-- <umask>022</umask> --><!-- Perform mlockall after startup to lower first queries latencyand to prevent clickhouse executable from being paged out under high IO load.Enabling this option is recommended but will lead to increased startup time for up to a few seconds.--><mlock_executable>true</mlock_executable><!-- Configuration of clusters that could be used in Distributed tables.https://clickhouse.tech/docs/en/operations/table_engines/distributed/--><remote_servers incl="clickhouse_remote_servers"/><zookeeper incl="zookeeper-servers" optional="true"/><!-- Substitutions for parameters of replicated tables.Optional. If you don't use replicated tables, you could omit that.See https://clickhouse.yandex/docs/en/table_engines/replication/#creating-replicated-tables--><macros incl="macros" optional="true"/><!-- Reloading interval for embedded dictionaries, in seconds. Default: 3600. --><builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval><!-- Maximum session timeout, in seconds. Default: 3600. --><max_session_timeout>3600</max_session_timeout><!-- Default session timeout, in seconds. Default: 60. --><default_session_timeout>60</default_session_timeout><!-- Serve endpoint fot Prometheus monitoring. --><!--
NaN        port - port to setup server. If not defined or 0 than http_port usedmetrics - send data from table system.metricsevents - send data from table system.eventsasynchronous_metrics - send data from table system.asynchronous_metrics--><prometheus><endpoint>/metrics</endpoint><port>9363</port><metrics>true</metrics><events>true</events><asynchronous_metrics>true</asynchronous_metrics></prometheus><!-- Query log. Used only for queries with setting log_queries = 1. --><query_log><!-- What table to insert data. If table is not exist, it will be created.When query log structure is changed after system update,then old table will be renamed and new table will be created automatically.--><database>system</database><table>query_log</table><!--PARTITION BY expr https://clickhouse.yandex/docs/en/table_engines/custom_partitioning_key/Example:event_datetoMonday(event_date)toYYYYMM(event_date)toStartOfHour(event_time)--><partition_by>toYYYYMM(event_date)</partition_by><!-- Instead of partition_by, you can provide full engine expression (starting with ENGINE = ) with parameters,Example: <engine>ENGINE = MergeTree PARTITION BY toYYYYMM(event_date) ORDER BY (event_date, event_time) SETTINGS index_granularity = 1024</engine>--><!-- Interval of flushing data. --><flush_interval_milliseconds>7500</flush_interval_milliseconds><ttl>event_date + INTERVAL 30 DAY DELETE</ttl></query_log><!-- Trace log. Stores stack traces collected by query profilers.See query_profiler_real_time_period_ns and query_profiler_cpu_time_period_ns settings. --><trace_log><database>system</database><table>trace_log</table><partition_by>toYYYYMM(event_date)</partition_by><flush_interval_milliseconds>7500</flush_interval_milliseconds><ttl>event_date + INTERVAL 30 DAY DELETE</ttl></trace_log><!-- Query thread log. Has information about all threads participated in query execution.Used only for queries with setting log_query_threads = 1. --><query_thread_log><database>system</database><table>query_thread_log</table><partition_by>toYYYYMM(event_date)</partition_by><flush_interval_milliseconds>7500</flush_interval_milliseconds><ttl>event_date + INTERVAL 30 DAY DELETE</ttl></query_thread_log><!-- Uncomment if use part log.Part log contains information about all actions with parts in MergeTree tables (creation, deletion, merges, downloads).<part_log><database>system</database><table>part_log</table><flush_interval_milliseconds>7500</flush_interval_milliseconds></part_log>--><compression incl="clickhouse_compression"><!--<!- - Set of variants. Checked in order. Last matching case wins. If nothing matches, lz4 will be used. - -><case><!- - Conditions. All must be satisfied. Some conditions may be omitted. - -><min_part_size>10000000000</min_part_size>        <!- - Min part size in bytes. - -><min_part_size_ratio>0.01</min_part_size_ratio>   <!- - Min size of part relative to whole table size. - -><!- - What compression method to use. - -><method>zstd</method></case>--></compression><!-- Allow to execute distributed DDL queries (CREATE, DROP, ALTER, RENAME) on cluster.Works only if ZooKeeper is enabled. Comment it if such functionality isn't required. --><distributed_ddl><!-- Path in ZooKeeper to queue with DDL queries --><path>/clickhouse/task_queue/ddl</path><!-- Settings from this profile will be used to execute DDL queries --><!-- <profile>default</profile> --></distributed_ddl><!-- Settings to fine tune MergeTree tables. See documentation in source code, in MergeTreeSettings.h --><!--<merge_tree><max_suspicious_broken_parts>5</max_suspicious_broken_parts></merge_tree>--><merge_tree><parts_to_delay_insert>5000</parts_to_delay_insert><parts_to_throw_insert>5000</parts_to_throw_insert><max_delay_to_insert>2</max_delay_to_insert><max_suspicious_broken_parts>5</max_suspicious_broken_parts><max_parts_in_total>100000</max_parts_in_total></merge_tree><!-- Protection from accidental DROP.If size of a MergeTree table is greater than max_table_size_to_drop (in bytes) than table could not be dropped with any DROP query.If you want do delete one table and don't want to change clickhouse-server config, you could create special file <clickhouse-path>/flags/force_drop_table and make DROP once.By default max_table_size_to_drop is 50GB; max_table_size_to_drop=0 allows to DROP any tables.The same for max_partition_size_to_drop.Uncomment to disable protection.--><!-- <max_table_size_to_drop>0</max_table_size_to_drop> --><!-- <max_partition_size_to_drop>0</max_partition_size_to_drop> --><!-- Please do not remove this line. --><listen_host>0.0.0.0</listen_host><zookeeper incl="zookeeper-servers" optional="true"/><macros incl="macros" optional="true"/><include_from>/etc/clickhouse-server/metrika.xml</include_from><max_table_size_to_drop>0</max_table_size_to_drop>
</yandex>

metrika.xml 配置

<?xml version="1.0" encoding="UTF-8"?>
<yandex><clickhouse_remote_servers><default_cluster><shard><internal_replication>true</internal_replication><replica><host>127.0.1.2</host><port>9000</port><user>xxx</user><password>xxx</password></replica><replica><host>127.0.0.3</host><port>9000</port><user>xxx</user><password>xxx</password></replica></shard></default_cluster></clickhouse_remote_servers><zookeeper-servers><node><host>127.1.1.15</host><port>2181</port></node><node><host>127.1.1.16</host><port>2181</port></node><node><host>127.1.1.17</host><port>2181</port></node></zookeeper-servers>
</yandex>

users.xml配置

<yandex><!-- Profiles of settings. --><profiles><!-- Default settings. --><default><!-- Maximum memory usage for processing single query, in bytes. --><max_memory_usage>250000000000</max_memory_usage><!--<max_memory_usage_for_all_queries>100000000000</max_memory_usage_for_all_queries>--><!-- Use cache of uncompressed blocks of data. Meaningful only for processing many of very short queries. --><use_uncompressed_cache>0</use_uncompressed_cache><!-- How to choose between replicas during distributed query processing.random - choose random replica from set of replicas with minimum number of errorsnearest_hostname - from set of replicas with minimum number of errors, choose replicawith minimum number of different symbols between replica's hostname and local hostname(Hamming distance).in_order - first live replica is chosen in specified order.first_or_random - if first replica one has higher number of errors, pick a random one from replicas with minimum number of errors.--><load_balancing>random</load_balancing><max_partitions_per_insert_block>0</max_partitions_per_insert_block><background_pool_size>32</background_pool_size><max_compress_block_size>10485760</max_compress_block_size><min_insert_block_size_rows>10000000</min_insert_block_size_rows><min_insert_block_size_bytes>1024000000</min_insert_block_size_bytes></default><!-- Profile that allows only read queries. --><readonly><readonly>1</readonly></readonly></profiles><!-- Users and ACL. --><users><!-- If user name was not specified, 'default' user is used. --><root><!-- Password could be specified in plaintext or in SHA256 (in hex format).If you want to specify password in plaintext (not recommended), place it in 'password' element.Example: <password>qwerty</password>.Password could be empty.If you want to specify SHA256, place it in 'password_sha256_hex' element.Example: <password_sha256_hex>65e84be33532fb784c48129675f9eff3a682b27168c0ea744b2cf58ee02337c5</password_sha256_hex>Restrictions of SHA256: impossibility to connect to ClickHouse using MySQL JS client (as of July 2019).If you want to specify double SHA1, place it in 'password_double_sha1_hex' element.Example: <password_double_sha1_hex>e395796d6546b1b65db9d665cd43f0e858dd4303</password_double_sha1_hex>How to generate decent password:Execute: PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha256sum | tr -d '-'In first line will be password and in second - corresponding SHA256.How to generate double SHA1:Execute: PASSWORD=$(base64 < /dev/urandom | head -c8); echo "$PASSWORD"; echo -n "$PASSWORD" | sha1sum | tr -d '-' | xxd -r -p | sha1sum | tr -d '-'In first line will be password and in second - corresponding double SHA1.--><password>xxxxx</password><!-- List of networks with open access.To open access from everywhere, specify:<ip>::/0</ip>To open access only from localhost, specify:<ip>::1</ip><ip>127.0.0.1</ip>Each element of list has one of the following forms:<ip> IP-address or network mask. Examples: 213.180.204.3 or 10.0.0.1/8 or 10.0.0.1/255.255.255.02a02:6b8::3 or 2a02:6b8::3/64 or 2a02:6b8::3/ffff:ffff:ffff:ffff::.<host> Hostname. Example: server01.yandex.ru.To check access, DNS query is performed, and all received addresses compared to peer address.<host_regexp> Regular expression for host names. Example, ^serverdd-dd-d.yandex.ru$To check access, DNS PTR query is performed for peer address and then regexp is applied.Then, for result of PTR query, another DNS query is performed and all received addresses compared to peer address.Strongly recommended that regexp is ends with $All results of DNS requests are cached till server restart.--><networks incl="networks" replace="replace"><ip>::/0</ip></networks><!-- Settings profile for user. --><profile>default</profile><!-- Quota for user. --><quota>default</quota><access_management>1</access_management></default></users><!-- Quotas. --><quotas><!-- Name of quota. --><default><!-- Limits for time interval. You could specify many intervals with different limits. --><interval><!-- Length of interval. --><duration>3600</duration><!-- No limits. Just calculate resource usage for time interval. --><queries>0</queries><errors>0</errors><result_rows>0</result_rows><read_rows>0</read_rows><execution_time>0</execution_time></interval></default></quotas>
</yandex>

相关文章:

Clickhouse 配置参考

Clickhouse 配置参考 适用版本 21.3.9.84 config.xml 配置 <?xml version"1.0"?> <!--NOTE: User and query level settings are set up in "users.xml" file. --> <yandex><access_control_path>/data/clickhouse/clickhous…...

thinkphp实现图像验证码

示例 服务类 app\common\lib\captcha <?php namespace app\common\lib\captcha;use think\facade\Cache; use think\facade\Config; use Exception;class Captcha {private $im null; // 验证码图片实例private $color null; // 验证码字体颜色// 默认配置protected $co…...

【Pandas】pandas DataFrame where

Pandas2.2 DataFrame Indexing, iteration 方法描述DataFrame.head([n])用于返回 DataFrame 的前几行DataFrame.at快速访问和修改 DataFrame 中单个值的方法DataFrame.iat快速访问和修改 DataFrame 中单个值的方法DataFrame.loc用于基于标签&#xff08;行标签和列标签&#…...

redis利用备忘录

fofa: icon_hash"864611937" 防护&#xff1a; redis的安全设置&#xff1a;设置完毕&#xff0c;需要重加载配置文件启动redis 1.绑定内网ip地址进行访问 2. requirepass设置redis密码 3.保护模式开启protected-mode开启&#xff08;默认开启&#xff09; 4.最好把…...

【dify实战】chatflow结合deepseek实现基于自然语言的数据库问答、Echarts可视化展示、Excel报表下载

dify结合deepseek实现基于自然语言的数据库问答、Echarts可视化展示、Excel报表下载 观看视频&#xff0c;您将学会 在dify下如何快速的构建一个chatflow&#xff0c;来完成数据分析工作&#xff1b;如何在AI的回复中展示可视化的图表&#xff1b;如何在AI 的回复中加入Excel报…...

医疗行业如何构建合成数据平台?——技术、合规与实践全景

目录 医疗行业如何构建合成数据平台&#xff1f;——技术、合规与实践全景 一、为什么医疗领域尤需合成数据&#xff1f; 二、平台功能全景图 ✅ 模块划分&#xff1a; 三、典型合成数据生成方式 1. 结构化病例合成 2. 医学图像生成 3. 多轮医生-患者问答合成 四、数据…...

6.8.最小生成树

一.复习&#xff1a; 1.生成树&#xff1a; 对于一个连通的无向图&#xff0c;假设图中有n个顶点&#xff0c;如果能找到一个符合以下要求的子图&#xff1a; 子图中包含图中所有的顶点&#xff0c;同时各个顶点保持连通&#xff0c; 而且子图的边的数量只有n-1条&#xff0…...

MATLAB 控制系统设计与仿真 - 37

范数鲁棒控制器的设计 鲁棒控制器的设计 根据双端子状态方程对象模型结构&#xff0c;控制器设计的目标是找到一个控制器K(s),它能保证闭环系统的范数限制在一个给定的小整数下&#xff0c;即 这时控制器的状态方程为&#xff1a; 其中X与Y分别为下面两个代数Riccati方程的解…...

社交媒体时代的隐私忧虑:聚焦Facebook

在数字化时代&#xff0c;社交媒体平台已成为人们日常生活的重要组成部分。Facebook作为全球最大的社交媒体之一&#xff0c;拥有数十亿用户&#xff0c;其对个人隐私的影响和忧虑也日益凸显。本文将探讨社交媒体时代下&#xff0c;尤其是Facebook平台上的隐私问题。 数据收集…...

9.Rust+Axum 测试驱动开发与性能优化全攻略

摘要 本文深入讲解 RustAxum 测试驱动开发及性能优化&#xff0c;涵盖多种测试工具与优化技术。 一、引言 在当今的软件开发领域&#xff0c;测试驱动开发&#xff08;TDD&#xff09;和性能优化是保障软件质量和性能的关键环节。Rust 作为一种安全、高效的系统编程语言&…...

中国首个全国34省3,667个城市多属性建筑数据集(屋顶、高度、结构、功能、风格、年龄、质量等属性)

中国首个全国34省3,667个城市多属性建筑数据集&#xff08;屋顶、高度、结构、功能、风格、年龄、质量等属性&#xff09; 数据介绍 快速获取三维&#xff08;3D&#xff09;建筑数据&#xff0c;包括屋顶、高度和方向等几何属性&#xff0c;以及功能、质量和年龄等指示性属性…...

探索Spring Boot Web模块:设计思想与技术实现

探索Spring Boot Web模块&#xff1a;设计思想与技术实现 在现代Web开发中&#xff0c;Spring Boot作为一个强大的框架&#xff0c;提供了丰富的功能来简化Web应用的开发。本文将深入探讨Spring Boot框架中Web模块的核心类&#xff0c;揭示其设计思想、技术实现以及扩展知识。…...

GitHub创建远程仓库

使用GitHub创建远程仓库&#xff1a;从零开始实现代码托管与协作 前言 在当今软件开发领域&#xff0c;版本控制系统已成为开发者必备的核心工具。作为分布式版本控制系统的代表&#xff0c;Git凭借其强大的分支管理和高效的协作能力&#xff0c;已成为行业标准。而GitHub作为…...

PLM系统如何支持利益相关者分析?沟通矩阵设计

PLM&#xff08;产品生命周期管理&#xff09;系统在现代企业的产品研发与管理过程中扮演着至关重要的角色。它不仅仅是一个管理产品数据的工具&#xff0c;更能在利益相关者分析以及沟通矩阵设计方面提供强大的支持。通过合理运用PLM系统&#xff0c;企业能够更好地识别、理解…...

每日一题(8) 求解矩阵最小路径和问题

给定一个m行n列的矩阵&#xff0c;从左上角开始每次只能向右或者向下移动&#xff0c;最后到达右下角的位置&#xff0c;路径上的所有数字累加起来作为这条路径的路径和。求所有路径和中最小路径和。 输入格式: 首先输入行数m及列数n&#xff0c;接下来输入m行&#xff0c;每…...

JAVA设计模式:注解+模板+接口

1.基础组件 1.1注解类控制代码执行启动、停止、顺序 /*** author : test* description : 数据同步注解* date : 2025/4/18*/ Target({ElementType.TYPE}) Retention(RetentionPolicy.RUNTIME) Documented public interface SyncMeta {/*** 执行服务名称* return*/String name…...

如何在Linux系统中部署C++ Web应用

在 Linux 上部署 C Web 应用&#xff0c;和部署传统的 PHP 或 Node.js 应用相比更“原生”一些&#xff0c;通常涉及到自己编译、配置 Web 服务、处理依赖等。本文将详细讲解部署一个基于 C 编写的 Web 应用的完整流程&#xff0c;涵盖从构建、部署、到上线的每一步&#xff0c…...

实用工具-screenrec介绍(截图工具)

官方地址&#xff1a;Communicate Faster with Instant Video Messages & Screenshots 官方下载安装包&#xff0c;安装完成后&#xff0c;默认快捷键 alt s 开启截图&#xff0c;录屏 介绍 ScreenRec 是一款免费无广告的屏幕录制与截图工具&#xff0c;支持多平台&…...

使用veaury,在vue项目中运行react组件

网上的信息太少了&#xff0c;记录一下 我的项目是vue3webpack 使用&#xff1a;veaury Veaury 是基于React和Vue3的工具库&#xff0c;主要用于React和Vue在一个项目中公共使用的场景&#xff0c;主要运用在项目迁移、技术栈融合的开发模式、跨技术栈使用第三方组件的场景。 参…...

开源 vs. 闭源:大模型的未来竞争格局

开源 vs. 闭源&#xff1a;大模型的未来竞争格局 引言 在人工智能领域&#xff0c;尤其是大型语言模型(LLM)的发展中&#xff0c;开源与闭源之争已成为决定行业未来走向的关键议题。随着ChatGPT的横空出世和开源模型的蓬勃发展&#xff0c;技术社区正经历着一场深刻的范式转变…...

pcl代码解析

一、库基础代码解析&#xff1a; PCL库基础&#xff1a;点云类型与算法详解-CSDN博客 主要介绍PCL库的一些基本的点云类型、相关数据类型以及ROS接口消息&#xff0c;和一些常用的算法。 用到的一些PCL点云类型 pcl::PointXYZ: 这是最简单也可能是最常用到的点类型;它只储存…...

中华传承-医山命相卜-梅花易数

梅花易数 灵活起卦&#xff08;如数字、声音、外应等&#xff09;和象数结合&#xff0c;准确率可达96.8%。其起卦方式摆脱传统龟壳、蓍草的繁琐&#xff0c;强调直觉与灵活性。 个人决策、事件预测等 尤其在短期、具体问题上表现突出。...

HOOPS Exchange 与HOOPS Communicator集成:打造工业3D可视化新标杆!

一、概述 在工业3D开发、BIM建筑、数字孪生和仿真分析等高端应用场景中&#xff0c;数据格式复杂、模型体量庞大、实时交互体验要求高&#xff0c;一直是困扰开发者的难题。Tech Soft 3D旗下的HOOPS Exchange和HOOPS Communicator&#xff0c;正是解决这类问题的黄金搭档。二者…...

SQL预编译——预编译真的能完美防御SQL注入吗

SQL注入原理 sql注入是指攻击者拼接恶意SQL语句到接受外部参数的动态SQL查询中&#xff0c;程序本身 未对插入的SQL语句进行过滤&#xff0c;导致SQL语句直接被服务端执行。 拼接的SQL查询例如&#xff0c;通过在id变量后插入or 11这样的条件&#xff0c;来绕过身份验证&#…...

通过 Zotero 的样式编辑器(Style Editor)自定义文献引用和参考文献列表的格式

好的&#xff01;以下是一个更为详细的教程&#xff0c;帮助你通过 Zotero 的样式编辑器&#xff08;Style Editor&#xff09;自定义文献引用和参考文献列表的格式。 详细教程&#xff1a;使用 Zotero 样式编辑器自定义文献格式 1. 准备工作 在开始之前&#xff0c;请确保&a…...

PostgreSQL 通过 copy 命令导入几何数据 及 通过 CopyManager.copyIn() 导入几何数据

COPY命令介绍 copy是postgresql提供的一个专门用于快速导入导出数据的命令,通常用于从文件(TXT、CSV等)或标准输入输出中读取或写入数据。适合批量导入导出数据,速度快。 默认情况下,如果在处理过程中遇到错误,COPY将失败。 COPY只能用于表,不能用于视图!!! COPY…...

Next.js 技术详解:构建现代化 Web 应用的全栈框架

1. Next.js 概述 Next.js 是一个基于 React 的全栈框架&#xff0c;由 Vercel 团队开发和维护。它提供了一系列开箱即用的功能&#xff0c;使开发者能够快速构建高性能的 Web 应用。 核心优势 服务端渲染 (SSR)静态站点生成 (SSG)增量静态再生成 (ISR)文件系统路由API 路由图…...

【unity实战】Unity动画层级(Animation Layer)的Sync同步和Timing定时参数使用介绍,同步动画层制作角色的受伤状态

文章目录 前言方案一&#xff1a;复制粘贴原有层级的状态机1、实现2、问题 方法二&#xff1a;勾选Sync同步动画层1、简单实现同步2、同步blend tree的问题3、动画状态的播放时长4、下层状态覆盖了上层状态 专栏推荐完结 前言 如何制作角色的受伤状态&#xff1f; 玩家角色在…...

NFC 碰一碰发视频源码搭建,碰一碰发视频定制化开发技术

在移动互联时代&#xff0c;便捷的数据传输方式备受青睐。NFC&#xff08;近场通信&#xff09;技术以其操作简单、连接迅速的特性&#xff0c;为设备间的数据交互提供了高效解决方案。通过搭建 NFC 碰一碰发视频功能&#xff0c;用户只需将支持 NFC 的设备轻轻靠近&#xff0c…...

获取视频封面

目录 实现方式注意事项代码实现 实现方式 通过 video 元素canvas 元素的方式实现 生成 video 和 canvas 元素当 video 元素资源加载完成时&#xff0c;将 video 元素绘制到 canvas 画布上&#xff0c;然后通过 toBlob 或则 toDataURL 获取到对应的封面图片资源 注意事项 vid…...

c#开发大冲锋游戏登录器

1 前言 本文主要分享登录器的简要开发过程&#xff0c;只适合小白选手&#xff0c;高手请自动避让。 此项目是复刻大冲锋计划中的子集。 &#xff08;注&#xff1a;大冲锋是迅雷代理的一款次时代多职业第一人称FPS射击游戏&#xff0c;目前已经关服嗝屁。&#xff09; 2 …...

堆的实现以及利用堆进行排序

堆 堆的实现1. 什么是堆&#xff1f;2. 最小堆的核心操作2.1 初始化堆2.2 销毁堆2.3 插入元素2.4 删除堆顶元素2.5 获取堆顶元素2.6 判断堆是否为空 3. 调整堆的算法3.1 向上调整3.2 向下调整 4. 测试代码 堆排序一.向下调整建堆二.向上调整建堆 时间复杂度分析向上建堆分析&am…...

FPGA-VGA

目录 前言 一、VGA是什么&#xff1f; 二、物理接口 三、VGA显示原理 四、VGA时序标准 五、VGA显示参数 六、模块设计 七、波形图设计 八、彩条波形数据 前言 VGA的FPGA驱动 一、VGA是什么&#xff1f; VGA&#xff08;Video Graphics Array&#xff09;是IBM于1987年推出的…...

仿腾讯会议项目开发——界面关闭功能实现

目录 1、include(./netapi/netapi.pri) 2、加快构建速度 3、INCLUDEPATH./netapi 4、添加控制类 5、用单例模式创建一个Ckernel的对象 6、创建一个回收的槽函数 7、添加界面文件 8、创建一个私有的界面对象 9、修改为使用单例模式的控制类创建界面 10、在Ckernel类中…...

微信小程序怎么分包步骤(包括怎么主包跳转到分包)

第一步 主包跳转到分包 第一步 第二步...

点云配准控制迭代停止的阈值

在点云配准&#xff08;如ICP算法&#xff09;中&#xff0c;setEuclideanFitnessEpsilon() 是一个设置收敛条件的函数&#xff0c;用于控制迭代停止的阈值。以下是关于该参数的详细说明&#xff1a; 函数作用 setEuclideanFitnessEpsilon() 设置的是 两次连续迭代之间均方误…...

高频面试题:Android MVP/MVVM/MVI这几种架构在实际生产中,各自的优缺点和适用场景是什么

安卓开发早期的架构模式相对简单&#xff0c;许多开发者直接在Activity或Fragment中堆砌业务逻辑和UI操作&#xff0c;这种方式虽然在小型项目中看似高效&#xff0c;但随着代码量的增加&#xff0c;很快就会导致逻辑混乱、难以测试和维护的问题。Activity和Fragment作为安卓框…...

国内主要半导体厂家

以下是国内主要半导体厂家按产品类别&#xff08;模拟、数字、MCU、功率、传感器等&#xff09;的分类总结&#xff0c;涵盖各领域代表企业及其核心产品方向&#xff1a; ​一、模拟芯片&#xff08;Analog IC&#xff09;​​ ​圣邦微电子&#xff08;SGMICRO&#xff09;​​…...

DeepSeek深度观察:白宫“炒人“威胁的语义强度与市场应激量化分析

一、AI观察&#xff1a;政治博弈的语义强度分析 通过NLP情感分析模型对特朗普近期公开言论的语义解析显示&#xff0c;总统在社交媒体及记者会中多次使用"立即解雇""卷铺盖走人"等极端表述&#xff0c;其公开威胁解雇鲍威尔的推文互动量突破120万次&#…...

城市街拍暗色电影胶片风格Lr调色教程,手机滤镜PS+Lightroom预设下载!

调色介绍 城市街拍暗色电影胶片风格 Lr 调色&#xff0c;是借助 Adobe Lightroom 软件&#xff0c;为城市街拍的人像或场景照片赋予独特视觉风格的后期处理方式。旨在模拟电影胶片质感&#xff0c;营造出充满故事感与艺术感的暗色氛围&#xff0c;让照片仿佛截取于某部充满张力…...

图像分类标注小工具

图像分类标注小工具 不说废话 上代码 import os import cv2 import shutil import csvclass ImageLabeler:def __init__(self, input_dir, output_dir, class_names, csv_pathlabel_log.csv, preview_size(800, 800)):self.input_dir input_dirself.output_dir output_dirse…...

leetcode 2364. 统计坏数对的数目 中等

给你一个下标从 0 开始的整数数组 nums 。如果 i < j 且 j - i ! nums[j] - nums[i] &#xff0c;那么我们称 (i, j) 是一个 坏数对 。 请你返回 nums 中 坏数对 的总数目。 示例 1&#xff1a; 输入&#xff1a;nums [4,1,3,3] 输出&#xff1a;5 解释&#xff1a;数对…...

网络互连与互联网3

1.SMTP简单邮件传输协议&#xff0c;用于发送电子邮件&#xff0c;默认情况下是明文传输&#xff0c;没有加密机制。 SSL是一种安全协议&#xff0c;对电子邮件进行加密传输。 POP3主要用于接收电子邮件 IMAP用于接收电子邮件 2.采用存储-转发方式处理信号的设备是交换机 …...

docker部署springboot(eureka server)项目

打jar包 使用maven&#xff1a; <build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>17</source><target>17&…...

git 出现 port 443 Connection timed out

梯子正常延迟不算严重&#xff0c;但在使用git push时反复出现 fatal: unable to access https://github.com/irvingwu5/xxxx.git/ Error in the HTTP2 framing layer Failed to connect to github.com port 443 after 136353 ms: Connection timed out 将git的网络配置与梯子…...

深入 MySQL 高级查询:JOIN、子查询与窗口函数的实用指南

在数据管理和分析的过程中&#xff0c;MySQL 提供了强大的查询功能&#xff0c;特别是在处理复杂数据关系时。本文将深入探讨 MySQL 的三种高级查询技术&#xff1a;JOIN、子查询和窗口函数。通过对这些技术的详细讲解和示例&#xff0c;帮助您更好地掌握并应用这些查询技巧。 …...

AXOP36061S: 60V 高压单通道运算放大器

AXOP36061S 是一款通用型高压带关断功能的单通道运算放大器&#xff0c;工作电压为3V至60V&#xff0c;具有17MHz的带宽和 15V/μs的压摆率&#xff0c;静态电流2.2mA&#xff0c;关断电流80μA&#xff0c;高耐压和宽带宽使其可以胜任绝大多数的高压应用场景。得益于对噪声和T…...

Aladdin显卡多任务运行教程

Aladdin显卡多任务运行 任务场景操作步骤其他说明 任务场景 当我运行我的代码后发现80G的显存仅占用了46G左右&#xff0c;还有很大空间没有被使用&#xff0c;于是想着能不能把剩下的空间也利用起来&#xff0c;于是有了接下来的工作。 操作步骤 当我们使用GPU run/debug/…...

Oracle AWR快照保留策略及其修改

文章目录 一、AWR快照保留机制及其修改方法二、生产环境建议三、监控建议 一、AWR快照保留机制及其修改方法 默认保留策略&#xff1a; • 标准保留期&#xff1a;8天 • 快照间隔&#xff1a;每小时1次&#xff08;默认&#xff09; • 存储位置&#xff1a;SYSAUX表空间 保留…...

日本公司如何实现B2B商城订货系统的自动化和个性化?

在日本构建具备前后台日文本地化、业务员代客下单、一客一价、智能拆单发货的B2B电商系统&#xff0c;需结合日本商业习惯与技术实现。以下是关键模块的落地方案&#xff1a; 一、系统架构设计 1. 前端本地化 语言与UI适配 采用全日语界面&#xff0c;包含敬语体系&#xff08…...