前端技术
HTML
CSS
Javascript
前端框架和UI库
VUE
ReactJS
AngularJS
JQuery
NodeJS
JSON
Element-UI
Bootstrap
Material UI
服务端和客户端
Java
Python
PHP
Golang
Scala
Kotlin
Groovy
Ruby
Lua
.net
c#
c++
后端WEB和工程框架
SpringBoot
SpringCloud
Struts2
MyBatis
Hibernate
Tornado
Beego
Go-Spring
Go Gin
Go Iris
Dubbo
HessianRPC
Maven
Gradle
数据库
MySQL
Oracle
Mongo
中间件与web容器
Redis
MemCache
Etcd
Cassandra
Kafka
RabbitMQ
RocketMQ
ActiveMQ
Nacos
Consul
Tomcat
Nginx
Netty
大数据技术
Hive
Impala
ClickHouse
DorisDB
Greenplum
PostgreSQL
HBase
Kylin
Hadoop
Apache Pig
ZooKeeper
SeaTunnel
Sqoop
Datax
Flink
Spark
Mahout
数据搜索与日志
ElasticSearch
Apache Lucene
Apache Solr
Kibana
Logstash
数据可视化与OLAP
Apache Atlas
Superset
Saiku
Tesseract
系统与容器
Linux
Shell
Docker
Kubernetes
[多版本控制]的搜索结果
这里是文章列表。热门标签的颜色随机变换,标签颜色没有特殊含义。
点击某个标签可搜索标签相关的文章。
点击某个标签可搜索标签相关的文章。
Hive
...在最新发布的Hive版本中,增强了对ACID(原子性、一致性、隔离性和持久性)特性的支持,使得用户能够更好地管理并发写入操作,从而降低了由于并发冲突导致的数据损坏风险。 同时,随着云存储技术的发展,许多云服务提供商开始提供更高级别的数据保护措施,如Amazon S3提供的多版本控制和跨区域复制功能,可以在一定程度上预防或减少Hive表底层数据因硬件故障或人为误操作造成的数据丢失或损坏。 另外,在日常运维中,实施全面的日志审计和实时监控也愈发重要。例如,结合诸如Grafana和Prometheus等工具进行HDFS健康状态监测,并通过定期执行HDFS数据完整性校验,能够在数据损坏发生的第一时间发出警报,为快速定位和恢复问题赢得宝贵时间。 此外,对于元数据管理,业界专家建议采用高可用集群部署MySQL等数据库,以保证元数据信息的安全可靠。并且,定期备份元数据并实行异地存放策略,可在发生意外时迅速恢复Hive表结构及分区信息。 总之,在应对Hive表数据损坏的问题上,除了深入了解内在机制、采取有效恢复策略外,与时俱进地利用新技术、新工具以及强化运维规范,同样是确保大数据平台数据安全与完整不可或缺的一环。
2023-09-09 20:58:28
642
月影清风
MemCache
...务复杂度的增加,数据版本控制的需求变得愈发重要。本文将探讨如何在Memcached中实现多版本控制,旨在为开发者提供一种有效管理数据版本的方法。 第一部分:理解多版本控制的必要性 在许多场景下,同一数据项可能需要多个版本来满足不同需求。例如,在电商应用中,商品信息可能需要实时更新价格、库存等数据;在社交应用中,用户评论或帖子可能需要保留历史版本以支持功能如撤销操作。这种情况下,多版本控制显得尤为重要。 第二部分:Memcached的基本原理与限制 Memcached通过键值对的方式存储数据,其设计初衷是为了提供快速的数据访问,而不涉及复杂的数据结构和事务管理。这就好比你有一款游戏,它的规则设定里就没有考虑过时间旅行或者穿越时空的事情。所以,你不能在游戏中实现回到过去修改错误或者尝试不同的未来路径。同理,这个系统也一样,它的设计初衷没有考虑到版本更新时的逻辑问题,所以自然也就无法直接支持多版本控制了。 第三部分:实现多版本控制的方法 1. 使用命名空间进行版本控制 一个简单的策略是为每个数据项创建一个命名空间,其中包含当前版本的键和历史版本的键。例如: python import memcache mc = memcache.Client(['127.0.0.1:11211'], debug=0) def set_versioned_data(key, version, data): mc.set(f'{key}_{version}', data) mc.set(key, data) 保存最新版本 设置数据 set_versioned_data('product', 'v1', {'name': 'Product A', 'price': 10}) 更新数据并设置新版本 set_versioned_data('product', 'v2', {'name': 'Product A (Updated)', 'price': 15}) 2. 利用时间戳进行版本控制 另一种方法是在数据中嵌入一个时间戳字段,作为版本标识。这种方法在数据频繁更新且版本控制较为简单的情况下适用。 python import time def set_timestamped_data(key, timestamp, data): mc.set(f'{key}_{timestamp}', data) mc.set(key, data) 设置数据 set_timestamped_data('product', int(time.time()), {'name': 'Product A', 'price': 10}) 更新数据 set_timestamped_data('product', int(time.time()) + 1, {'name': 'Product A (Updated)', 'price': 15}) 第四部分:优化与挑战 在实际应用中,选择何种版本控制策略取决于具体业务需求。比如说,假设你老是得翻查过去的数据版本,那用时间戳或者命名空间跟数据库的搜索功能搭伙用,可能会是你的最佳选择。就像你去图书馆找书,用书名和出版日期做检索,比乱翻一气效率高多了。这方法就像是给你的数据做了个时间轴或者标签系统,让你想看哪段历史一搜就出来,方便得很!同时,考虑到内存资源的限制,应合理规划版本的数量,避免不必要的内存占用。 结论 Memcached本身不提供内置的多版本控制功能,但通过一些简单的编程技巧,我们可以实现这一需求。无论是使用命名空间还是时间戳,关键在于根据业务逻辑选择最适合的实现方式。哎呀,你知不知道在搞版本控制的时候,咱们得好好琢磨琢磨性能优化和资源管理这两块儿?这可是关乎咱们系统稳不稳定的头等大事,还有能不能顺畅运行的关键!别小瞧了这些细节,它们能让你的程序像开了挂一样,不仅跑得快,而且用起来还特别省心呢!所以啊,做这些事儿的时候,可得细心点,别让它们成为你系统的绊脚石! 后记 在开发过程中,面对复杂的数据管理和版本控制需求,灵活运用现有工具和技术,往往能取得事半功倍的效果。嘿!小伙伴们,咱们一起聊聊天呗。这篇文章呢,就是想给那些正跟咱们遇到相似难题的编程大神们一点灵感和方向。咱们的目标啊,就是一块儿把技术这块宝地给深耕细作,让它开出更绚烂的花,结出更甜美的果子。加油,程序员朋友们,咱们一起努力,让代码更有灵魂,让技术更有温度!
2024-09-04 16:28:16
97
岁月如歌
转载文章
...SQL语句 分布式多版本并发控制(MVCC:Multi-version Concurrency Control) 支持JSON和XML格式 Postgres-XL缺少的功能 内建的高可用机制 使用外部机制实现高可能,如:Corosync/Pacemaker 有未来功能提升的空间 增加节点/重新分片数据(re-shard)的简便性 数据重分布(redistribution)期间会锁表 可采用预分片(pre-shard)方式解决,在同台物理服务器上建立多个数据节点,每个节点存储一个数据分片。数据重分布时,将一些数据节点迁出即可 某些外键、唯一性约束功能 Postgres-XL架构 [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-M9lFuEIP-1640133702200)(./assets/postgre-xl.jpg)] 基于开源项目Postgres-XC XL增加了MPP,允许数据节点间直接通讯,交换复杂跨节点关联查询相关数据信息,减少协调器负载。 多个协调器(Coordinator) 应用程序的数据库连入点 分析查询语句,生成执行计划 多个数据节点(DataNode) 实际的数据存储 数据自动打散分布到集群中各数据节点 本地执行查询 一个查询在所有相关节点上并行查询 全局事务管理器(GTM:Global Transaction Manager) 提供事务间一致性视图 部署GTM Proxy实例,以提高性能 Postgre-XL主要组件 GTM (Global Transaction Manager) - 全局事务管理器 GTM是Postgres-XL的一个关键组件,用于提供一致的事务管理和元组可见性控制。 GTM Standby GTM的备节点,在pgxc,pgxl中,GTM控制所有的全局事务分配,如果出现问题,就会导致整个集群不可用,为了增加可用性,增加该备用节点。当GTM出现问题时,GTM Standby可以升级为GTM,保证集群正常工作。 GTM-Proxy GTM需要与所有的Coordinators通信,为了降低压力,可以在每个Coordinator机器上部署一个GTM-Proxy。 Coordinator --协调器 协调器是应用程序到数据库的接口。它的作用类似于传统的PostgreSQL后台进程,但是协调器不存储任何实际数据。实际数据由数据节点存储。协调器接收SQL语句,根据需要获取全局事务Id和全局快照,确定涉及哪些数据节点,并要求它们执行(部分)语句。当向数据节点发出语句时,它与GXID和全局快照相关联,以便多版本并发控制(MVCC)属性扩展到集群范围。 Datanode --数据节点 用于实际存储数据。表可以分布在各个数据节点之间,也可以复制到所有数据节点。数据节点没有整个数据库的全局视图,它只负责本地存储的数据。接下来,协调器将检查传入语句,并制定子计划。然后,根据需要将这些数据连同GXID和全局快照一起传输到涉及的每个数据节点。数据节点可以在不同的会话中接收来自各个协调器的请求。但是,由于每个事务都是惟一标识的,并且与一致的(全局)快照相关联,所以每个数据节点都可以在其事务和快照上下文中正确执行。 Postgres-XL继承了PostgreSQL Postgres-XL是PostgreSQL的扩展并继承了其很多特性: 复杂查询 外键 触发器 视图 事务 MVCC(多版本控制) 此外,类似于PostgreSQL,用户可以通过多种方式扩展Postgres-XL,例如添加新的 数据类型 函数 操作 聚合函数 索引类型 过程语言 安装 环境说明 由于资源有限,gtm一台、另外两台身兼数职。 主机名 IP 角色 端口 nodename 数据目录 gtm 192.168.20.132 GTM 6666 gtm /nodes/gtm 协调器 5432 coord1 /nodes/coordinator xl1 192.168.20.133 数据节点 5433 node1 /nodes/pgdata gtm代理 6666 gtmpoxy01 /nodes/gtm_pxy1 协调器 5432 coord2 /nodes/coordinator xl2 192.168.20.134 数据节点 5433 node2 /nodes/pgdata gtm代理 6666 gtmpoxy02 /nodes/gtm_pxy2 要求 GNU make版本 3.8及以上版本 [root@pg ~] make --versionGNU Make 3.82Built for x86_64-redhat-linux-gnuCopyright (C) 2010 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. 需安装GCC包 需安装tar包 用于解压缩文件 默认需要GNU Readline library 其作用是可以让psql命令行记住执行过的命令,并且可以通过键盘上下键切换命令。但是可以通过--without-readline禁用这个特性,或者可以指定--withlibedit-preferred选项来使用libedit 默认使用zlib压缩库 可通过--without-zlib选项来禁用 配置hosts 所有主机上都配置 [root@xl2 11] cat /etc/hosts127.0.0.1 localhost192.168.20.132 gtm192.168.20.133 xl1192.168.20.134 xl2 关闭防火墙、Selinux 所有主机都执行 关闭防火墙: [root@gtm ~] systemctl stop firewalld.service[root@gtm ~] systemctl disable firewalld.service selinux设置: [root@gtm ~]vim /etc/selinux/config 设置SELINUX=disabled,保存退出。 This file controls the state of SELinux on the system. SELINUX= can take one of these three values: enforcing - SELinux security policy is enforced. permissive - SELinux prints warnings instead of enforcing. disabled - No SELinux policy is loaded.SELINUX=disabled SELINUXTYPE= can take one of three two values: targeted - Targeted processes are protected, minimum - Modification of targeted policy. Only selected processes are protected. mls - Multi Level Security protection. 安装依赖包 所有主机上都执行 yum install -y flex bison readline-devel zlib-devel openjade docbook-style-dsssl gcc 创建用户 所有主机上都执行 [root@gtm ~] useradd postgres[root@gtm ~] passwd postgres[root@gtm ~] su - postgres[root@gtm ~] mkdir ~/.ssh[root@gtm ~] chmod 700 ~/.ssh 配置SSH免密登录 仅仅在gtm节点配置如下操作: [root@gtm ~] su - postgres[postgres@gtm ~] ssh-keygen -t rsa[postgres@gtm ~] cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys[postgres@gtm ~] chmod 600 ~/.ssh/authorized_keys 将刚生成的认证文件拷贝到xl1到xl2中,使得gtm节点可以免密码登录xl1~xl2的任意一个节点: [postgres@gtm ~] scp ~/.ssh/authorized_keys postgres@xl1:~/.ssh/[postgres@gtm ~] scp ~/.ssh/authorized_keys postgres@xl2:~/.ssh/ 对所有提示都不要输入,直接enter下一步。直到最后,因为第一次要求输入目标机器的用户密码,输入即可。 下载源码 下载地址:https://www.postgres-xl.org/download/ [root@slave ~] ll postgres-xl-10r1.1.tar.gz-rw-r--r-- 1 root root 28121666 May 30 05:21 postgres-xl-10r1.1.tar.gz 编译、安装Postgres-XL 所有节点都安装,编译需要一点时间,最好同时进行编译。 [root@slave ~] tar xvf postgres-xl-10r1.1.tar.gz[root@slave ~] ./configure --prefix=/home/postgres/pgxl/[root@slave ~] make[root@slave ~] make install[root@slave ~] cd contrib/ --安装必要的工具,在gtm节点上安装即可[root@slave ~] make[root@slave ~] make install 配置环境变量 所有节点都要配置 进入postgres用户,修改其环境变量,开始编辑 [root@gtm ~]su - postgres[postgres@gtm ~]vi .bashrc --不是.bash_profile 在打开的文件末尾,新增如下变量配置: export PGHOME=/home/postgres/pgxlexport LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATHexport PATH=$PGHOME/bin:$PATH 按住esc,然后输入:wq!保存退出。输入以下命令对更改重启生效。 [postgres@gtm ~] source .bashrc --不是.bash_profile 输入以下语句,如果输出变量结果,代表生效 [postgres@gtm ~] echo $PGHOME 应该输出/home/postgres/pgxl代表生效 配置集群 生成pgxc_ctl.conf配置文件 [postgres@gtm ~] pgxc_ctl prepare/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxl/pgxc_ctl/pgxc_ctl_bash.ERROR: File "/home/postgres/pgxl/pgxc_ctl/pgxc_ctl.conf" not found or not a regular file. No such file or directoryInstalling pgxc_ctl_bash script as /home/postgres/pgxl/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxl/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxl/pgxc_ctl --configuration /home/postgres/pgxl/pgxc_ctl/pgxc_ctl.confFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxl/pgxc_ctl 配置pgxc_ctl.conf 新建/home/postgres/pgxc_ctl/pgxc_ctl.conf文件,编辑如下: 对着模板文件一个一个修改,否则会造成初始化过程出现各种神奇问题。 pgxcInstallDir=$PGHOMEpgxlDATA=$PGHOME/data pgxcOwner=postgres---- GTM Master -----------------------------------------gtmName=gtmgtmMasterServer=gtmgtmMasterPort=6666gtmMasterDir=$pgxlDATA/nodes/gtmgtmSlave=y Specify y if you configure GTM Slave. Otherwise, GTM slave will not be configured and all the following variables will be reset.gtmSlaveName=gtmSlavegtmSlaveServer=gtm value none means GTM slave is not available. Give none if you don't configure GTM Slave.gtmSlavePort=20001 Not used if you don't configure GTM slave.gtmSlaveDir=$pgxlDATA/nodes/gtmSlave Not used if you don't configure GTM slave.---- GTM-Proxy Master -------gtmProxyDir=$pgxlDATA/nodes/gtm_proxygtmProxy=y gtmProxyNames=(gtm_pxy1 gtm_pxy2) gtmProxyServers=(xl1 xl2) gtmProxyPorts=(6666 6666) gtmProxyDirs=($gtmProxyDir $gtmProxyDir) ---- Coordinators ---------coordMasterDir=$pgxlDATA/nodes/coordcoordNames=(coord1 coord2) coordPorts=(5432 5432) poolerPorts=(6667 6667) coordPgHbaEntries=(0.0.0.0/0)coordMasterServers=(xl1 xl2) coordMasterDirs=($coordMasterDir $coordMasterDir)coordMaxWALsernder=0 没设置备份节点,设置为0coordMaxWALSenders=($coordMaxWALsernder $coordMaxWALsernder) 数量保持和coordMasterServers一致coordSlave=n---- Datanodes ----------datanodeMasterDir=$pgxlDATA/nodes/dn_masterprimaryDatanode=xl1 主数据节点datanodeNames=(node1 node2)datanodePorts=(5433 5433) datanodePoolerPorts=(6668 6668) datanodePgHbaEntries=(0.0.0.0/0)datanodeMasterServers=(xl1 xl2)datanodeMasterDirs=($datanodeMasterDir $datanodeMasterDir)datanodeMaxWalSender=4datanodeMaxWALSenders=($datanodeMaxWalSender $datanodeMaxWalSender) 集群初始化,启动,停止 初始化 pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf init all 输出结果: /bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlStopping all the coordinator masters.Stopping coordinator master coord1.Stopping coordinator master coord2.pg_ctl: directory "/home/postgres/pgxc/nodes/coord/coord1" does not existpg_ctl: directory "/home/postgres/pgxc/nodes/coord/coord2" does not existDone.Stopping all the datanode masters.Stopping datanode master datanode1.Stopping datanode master datanode2.pg_ctl: PID file "/home/postgres/pgxc/nodes/datanode/datanode1/postmaster.pid" does not existIs server running?Done.Stop GTM masterwaiting for server to shut down.... doneserver stopped[postgres@gtm ~]$ echo $PGHOME/home/postgres/pgxl[postgres@gtm ~]$ ll /home/postgres/pgxl/pgxc/nodes/gtm/gtm.^C[postgres@gtm ~]$ pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf init all/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlInitialize GTM masterERROR: target directory (/home/postgres/pgxc/nodes/gtm) exists and not empty. Skip GTM initilializationDone.Start GTM masterserver startingInitialize all the coordinator masters.Initialize coordinator master coord1.ERROR: target coordinator master coord1 is running now. Skip initilialization.Initialize coordinator master coord2.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/coord/coord2 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.Done.Starting coordinator master.Starting coordinator master coord1ERROR: target coordinator master coord1 is already running now. Skip initialization.Starting coordinator master coord22019-05-30 21:09:25.562 EDT [2148] LOG: listening on IPv4 address "0.0.0.0", port 54322019-05-30 21:09:25.562 EDT [2148] LOG: listening on IPv6 address "::", port 54322019-05-30 21:09:25.563 EDT [2148] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"2019-05-30 21:09:25.601 EDT [2149] LOG: database system was shut down at 2019-05-30 21:09:22 EDT2019-05-30 21:09:25.605 EDT [2148] LOG: database system is ready to accept connections2019-05-30 21:09:25.612 EDT [2156] LOG: cluster monitor startedDone.Initialize all the datanode masters.Initialize the datanode master datanode1.Initialize the datanode master datanode2.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/datanode/datanode1 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/datanode/datanode2 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.Done.Starting all the datanode masters.Starting datanode master datanode1.WARNING: datanode master datanode1 is running now. Skipping.Starting datanode master datanode2.2019-05-30 21:09:33.352 EDT [2404] LOG: listening on IPv4 address "0.0.0.0", port 154322019-05-30 21:09:33.352 EDT [2404] LOG: listening on IPv6 address "::", port 154322019-05-30 21:09:33.355 EDT [2404] LOG: listening on Unix socket "/tmp/.s.PGSQL.15432"2019-05-30 21:09:33.392 EDT [2404] LOG: redirecting log output to logging collector process2019-05-30 21:09:33.392 EDT [2404] HINT: Future log output will appear in directory "pg_log".Done.psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"Done.psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"Done.[postgres@gtm ~]$ pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf stop all/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlStopping all the coordinator masters.Stopping coordinator master coord1.Stopping coordinator master coord2.pg_ctl: directory "/home/postgres/pgxc/nodes/coord/coord1" does not existDone.Stopping all the datanode masters.Stopping datanode master datanode1.Stopping datanode master datanode2.pg_ctl: PID file "/home/postgres/pgxc/nodes/datanode/datanode1/postmaster.pid" does not existIs server running?Done.Stop GTM masterwaiting for server to shut down.... doneserver stopped[postgres@gtm ~]$ pgxc_ctl/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlPGXC monitor allNot running: gtm masterRunning: coordinator master coord1Not running: coordinator master coord2Running: datanode master datanode1Not running: datanode master datanode2PGXC stop coordinator master coord1Stopping coordinator master coord1.pg_ctl: directory "/home/postgres/pgxc/nodes/coord/coord1" does not existDone.PGXC stop datanode master datanode1Stopping datanode master datanode1.pg_ctl: PID file "/home/postgres/pgxc/nodes/datanode/datanode1/postmaster.pid" does not existIs server running?Done.PGXC monitor allNot running: gtm masterRunning: coordinator master coord1Not running: coordinator master coord2Running: datanode master datanode1Not running: datanode master datanode2PGXC monitor allNot running: gtm masterNot running: coordinator master coord1Not running: coordinator master coord2Not running: datanode master datanode1Not running: datanode master datanode2PGXC exit[postgres@gtm ~]$ pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf init all/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlInitialize GTM masterERROR: target directory (/home/postgres/pgxc/nodes/gtm) exists and not empty. Skip GTM initilializationDone.Start GTM masterserver startingInitialize all the coordinator masters.Initialize coordinator master coord1.Initialize coordinator master coord2.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/coord/coord1 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/coord/coord2 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.Done.Starting coordinator master.Starting coordinator master coord1Starting coordinator master coord22019-05-30 21:13:03.998 EDT [25137] LOG: listening on IPv4 address "0.0.0.0", port 54322019-05-30 21:13:03.998 EDT [25137] LOG: listening on IPv6 address "::", port 54322019-05-30 21:13:04.000 EDT [25137] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"2019-05-30 21:13:04.038 EDT [25138] LOG: database system was shut down at 2019-05-30 21:13:00 EDT2019-05-30 21:13:04.042 EDT [25137] LOG: database system is ready to accept connections2019-05-30 21:13:04.049 EDT [25145] LOG: cluster monitor started2019-05-30 21:13:04.020 EDT [2730] LOG: listening on IPv4 address "0.0.0.0", port 54322019-05-30 21:13:04.020 EDT [2730] LOG: listening on IPv6 address "::", port 54322019-05-30 21:13:04.021 EDT [2730] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"2019-05-30 21:13:04.057 EDT [2731] LOG: database system was shut down at 2019-05-30 21:13:00 EDT2019-05-30 21:13:04.061 EDT [2730] LOG: database system is ready to accept connections2019-05-30 21:13:04.062 EDT [2738] LOG: cluster monitor startedDone.Initialize all the datanode masters.Initialize the datanode master datanode1.Initialize the datanode master datanode2.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/datanode/datanode1 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.The files belonging to this database system will be owned by user "postgres".This user must also own the server process.The database cluster will be initialized with locale "en_US.UTF-8".The default database encoding has accordingly been set to "UTF8".The default text search configuration will be set to "english".Data page checksums are disabled.fixing permissions on existing directory /home/postgres/pgxc/nodes/datanode/datanode2 ... okcreating subdirectories ... okselecting default max_connections ... 100selecting default shared_buffers ... 128MBselecting dynamic shared memory implementation ... posixcreating configuration files ... okrunning bootstrap script ... okperforming post-bootstrap initialization ... creating cluster information ... oksyncing data to disk ... okfreezing database template0 ... okfreezing database template1 ... okfreezing database postgres ... okWARNING: enabling "trust" authentication for local connectionsYou can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.Success.Done.Starting all the datanode masters.Starting datanode master datanode1.Starting datanode master datanode2.2019-05-30 21:13:12.077 EDT [25392] LOG: listening on IPv4 address "0.0.0.0", port 154322019-05-30 21:13:12.077 EDT [25392] LOG: listening on IPv6 address "::", port 154322019-05-30 21:13:12.079 EDT [25392] LOG: listening on Unix socket "/tmp/.s.PGSQL.15432"2019-05-30 21:13:12.114 EDT [25392] LOG: redirecting log output to logging collector process2019-05-30 21:13:12.114 EDT [25392] HINT: Future log output will appear in directory "pg_log".2019-05-30 21:13:12.079 EDT [2985] LOG: listening on IPv4 address "0.0.0.0", port 154322019-05-30 21:13:12.079 EDT [2985] LOG: listening on IPv6 address "::", port 154322019-05-30 21:13:12.081 EDT [2985] LOG: listening on Unix socket "/tmp/.s.PGSQL.15432"2019-05-30 21:13:12.117 EDT [2985] LOG: redirecting log output to logging collector process2019-05-30 21:13:12.117 EDT [2985] HINT: Future log output will appear in directory "pg_log".Done.psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"Done.psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"psql: FATAL: no pg_hba.conf entry for host "192.168.20.132", user "postgres", database "postgres"Done. 启动 pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf start all 关闭 pgxc_ctl -c /home/postgres/pgxc_ctl/pgxc_ctl.conf stop all 查看集群状态 [postgres@gtm ~]$ pgxc_ctl monitor all/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.conf/home/postgres/pgxc_ctl/pgxc_ctl.conf: line 189: $coordExtraConfig: ambiguous redirectFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlRunning: gtm masterRunning: coordinator master coord1Running: coordinator master coord2Running: datanode master datanode1Running: datanode master datanode2 配置集群信息 分别在数据节点、协调器节点上分别执行以下命令: 注:本节点只执行修改操作即可(alert node),其他节点执行创建命令(create node)。因为本节点已经包含本节点的信息。 create node coord1 with (type=coordinator,host=xl1, port=5432);create node coord2 with (type=coordinator,host=xl2, port=5432);alter node coord1 with (type=coordinator,host=xl1, port=5432);alter node coord2 with (type=coordinator,host=xl2, port=5432);create node datanode1 with (type=datanode, host=xl1,port=15432,primary=true,PREFERRED);create node datanode2 with (type=datanode, host=xl2,port=15432);alter node datanode1 with (type=datanode, host=xl1,port=15432,primary=true,PREFERRED);alter node datanode2 with (type=datanode, host=xl2,port=15432);select pgxc_pool_reload(); 分别登陆数据节点、协调器节点验证 postgres= select from pgxc_node;node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id-----------+-----------+-----------+-----------+----------------+------------------+-------------coord1 | C | 5432 | xl1 | f | f | 1885696643coord2 | C | 5432 | xl2 | f | f | -1197102633datanode2 | D | 15432 | xl2 | f | f | -905831925datanode1 | D | 15432 | xl1 | t | f | 888802358(4 rows) 测试 插入数据 在数据节点1,执行相关操作。 通过协调器端口登录PG [postgres@xl1 ~]$ psql -p 5432psql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= create database lei;CREATE DATABASEpostgres= \c lei;You are now connected to database "lei" as user "postgres".lei= create table test1(id int,name text);CREATE TABLElei= insert into test1(id,name) select generate_series(1,8),'测试';INSERT 0 8lei= select from test1;id | name----+------1 | 测试2 | 测试5 | 测试6 | 测试8 | 测试3 | 测试4 | 测试7 | 测试(8 rows) 注:默认创建的表为分布式表,也就是每个数据节点值存储表的部分数据。关于表类型具体说明,下面有说明。 通过15432端口登录数据节点,查看数据 有5条数据 [postgres@xl1 ~]$ psql -p 15432psql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= \c lei;You are now connected to database "lei" as user "postgres".lei= select from test1;id | name----+------1 | 测试2 | 测试5 | 测试6 | 测试8 | 测试(5 rows) 登录到节点2,查看数据 有3条数据 [postgres@xl2 ~]$ psql -p15432psql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= \c lei;You are now connected to database "lei" as user "postgres".lei= select from test1;id | name----+------3 | 测试4 | 测试7 | 测试(3 rows) 两个节点的数据加起来整个8条,没有问题。 至此Postgre-XL集群搭建完成。 创建数据库、表时可能会出现以下错误: ERROR: Failed to get pooled connections 是因为pg_hba.conf配置不对,所有节点加上host all all 192.168.20.0/0 trust并重启集群即可。 ERROR: No Datanode defined in cluster 首先确认是否创建了数据节点,也就是create node相关的命令。如果创建了则执行select pgxc_pool_reload();使其生效即可。 集群管理与应用 表类型说明 REPLICATION表:各个datanode节点中,表的数据完全相同,也就是说,插入数据时,会分别在每个datanode节点插入相同数据。读数据时,只需要读任意一个datanode节点上的数据。 建表语法: CREATE TABLE repltab (col1 int, col2 int) DISTRIBUTE BY REPLICATION; DISTRIBUTE :会将插入的数据,按照拆分规则,分配到不同的datanode节点中存储,也就是sharding技术。每个datanode节点只保存了部分数据,通过coordinate节点可以查询完整的数据视图。 CREATE TABLE disttab(col1 int, col2 int, col3 text) DISTRIBUTE BY HASH(col1); 模拟数据插入 任意登录一个coordinate节点进行建表操作 [postgres@gtm ~]$ psql -h xl1 -p 5432 -U postgrespostgres= INSERT INTO disttab SELECT generate_series(1,100), generate_series(101, 200), 'foo';INSERT 0 100postgres= INSERT INTO repltab SELECT generate_series(1,100), generate_series(101, 200);INSERT 0 100 查看数据分布结果: DISTRIBUTE表分布结果 postgres= SELECT xc_node_id, count() FROM disttab GROUP BY xc_node_id;xc_node_id | count ------------+-------1148549230 | 42-927910690 | 58(2 rows) REPLICATION表分布结果 postgres= SELECT count() FROM repltab;count -------100(1 row) 查看另一个datanode2中repltab表结果 [postgres@datanode2 pgxl9.5]$ psql -p 15432psql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= SELECT count() FROM repltab;count -------100(1 row) 结论:REPLICATION表中,datanode1,datanode2中表是全部数据,一模一样。而DISTRIBUTE表,数据散落近乎平均分配到了datanode1,datanode2节点中。 新增数据节点与数据重分布 在线新增节点、并重新分布数据。 新增datanode节点 在gtm集群管理节点上执行pgxc_ctl命令 [postgres@gtm ~]$ pgxc_ctl/bin/bashInstalling pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash.Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.confFinished reading configuration. PGXC_CTL START Current directory: /home/postgres/pgxc_ctlPGXC 在服务器xl3上,新增一个master角色的datanode节点,名称是datanode3 端口号暂定5430,pool master暂定6669 ,指定好数据目录位置,从两个节点升级到3个节点,之后要写3个none none应该是datanodeSpecificExtraConfig或者datanodeSpecificExtraPgHba配置PGXC add datanode master datanode3 xl3 15432 6671 /home/postgres/pgxc/nodes/datanode/datanode3 none none none 等待新增完成后,查询集群节点状态: postgres= select from pgxc_node;node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id-----------+-----------+-----------+-----------+----------------+------------------+-------------datanode1 | D | 15432 | xl1 | t | f | 888802358datanode2 | D | 15432 | xl2 | f | f | -905831925datanode3 | D | 15432 | xl3 | f | f | -705831925coord1 | C | 5432 | xl1 | f | f | 1885696643coord2 | C | 5432 | xl2 | f | f | -1197102633(4 rows) 节点新增完毕 数据重新分布 由于新增节点后无法自动完成数据重新分布,需要手动操作。 DISTRIBUTE表分布在了node1,node2节点上,如下: postgres= SELECT xc_node_id, count() FROM disttab GROUP BY xc_node_id;xc_node_id | count ------------+-------1148549230 | 42-927910690 | 58(2 rows) 新增一个节点后,将sharding表数据重新分配到三个节点上,将repl表复制到新节点 重分布sharding表postgres= ALTER TABLE disttab ADD NODE (datanode3);ALTER TABLE 复制数据到新节点postgres= ALTER TABLE repltab ADD NODE (datanode3);ALTER TABLE 查看新的数据分布: postgres= SELECT xc_node_id, count() FROM disttab GROUP BY xc_node_id;xc_node_id | count ------------+--------700122826 | 36-927910690 | 321148549230 | 32(3 rows) 登录datanode3(新增的时候,放在了xl3服务器上,端口15432)节点查看数据: [postgres@gtm ~]$ psql -h xl3 -p 15432 -U postgrespsql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= select count() from repltab;count -------100(1 row) 很明显,通过 ALTER TABLE tt ADD NODE (dn)命令,可以将DISTRIBUTE表数据重新分布到新节点,重分布过程中会中断所有事务。可以将REPLICATION表数据复制到新节点。 从datanode节点中回收数据 postgres= ALTER TABLE disttab DELETE NODE (datanode3);ALTER TABLEpostgres= ALTER TABLE repltab DELETE NODE (datanode3);ALTER TABLE 删除数据节点 Postgresql-XL并没有检查将被删除的datanode节点是否有replicated/distributed表的数据,为了数据安全,在删除之前需要检查下被删除节点上的数据,有数据的话,要回收掉分配到其他节点,然后才能安全删除。删除数据节点分为四步骤: 1.查询要删除节点dn3的oid postgres= SELECT oid, FROM pgxc_node;oid | node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id -------+-----------+-----------+-----------+-----------+----------------+------------------+-------------11819 | coord1 | C | 5432 | datanode1 | f | f | 188569664316384 | coord2 | C | 5432 | datanode2 | f | f | -119710263316385 | node1 | D | 5433 | datanode1 | f | t | 114854923016386 | node2 | D | 5433 | datanode2 | f | f | -92791069016397 | dn3 | D | 5430 | datanode1 | f | f | -700122826(5 rows) 2.查询dn3对应的oid中是否有数据 testdb= SELECT FROM pgxc_class WHERE nodeoids::integer[] @> ARRAY[16397];pcrelid | pclocatortype | pcattnum | pchashalgorithm | pchashbuckets | nodeoids ---------+---------------+----------+-----------------+---------------+-------------------16388 | H | 1 | 1 | 4096 | 16397 16385 1638616394 | R | 0 | 0 | 0 | 16397 16385 16386(2 rows) 3.有数据的先回收数据 postgres= ALTER TABLE disttab DELETE NODE (dn3);ALTER TABLEpostgres= ALTER TABLE repltab DELETE NODE (dn3);ALTER TABLEpostgres= SELECT FROM pgxc_class WHERE nodeoids::integer[] @> ARRAY[16397];pcrelid | pclocatortype | pcattnum | pchashalgorithm | pchashbuckets | nodeoids ---------+---------------+----------+-----------------+---------------+----------(0 rows) 4.安全删除dn3 PGXC$ remove datanode master dn3 clean 故障节点FAILOVER 1.查看当前集群状态 [postgres@gtm ~]$ psql -h xl1 -p 5432psql (PGXL 10r1.1, based on PG 10.6 (Postgres-XL 10r1.1))Type "help" for help.postgres= SELECT oid, FROM pgxc_node;oid | node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id-------+-----------+-----------+-----------+-----------+----------------+------------------+-------------11739 | coord1 | C | 5432 | xl1 | f | f | 188569664316384 | coord2 | C | 5432 | xl2 | f | f | -119710263316387 | datanode2 | D | 15432 | xl2 | f | f | -90583192516388 | datanode1 | D | 15432 | xl1 | t | t | 888802358(4 rows) 2.模拟datanode1节点故障 直接关闭即可 PGXC stop -m immediate datanode master datanode1Stopping datanode master datanode1.Done. 3.测试查询 只要查询涉及到datanode1上的数据,那么该查询就会报错 postgres= SELECT xc_node_id, count() FROM disttab GROUP BY xc_node_id;WARNING: failed to receive file descriptors for connectionsERROR: Failed to get pooled connectionsHINT: This may happen because one or more nodes are currently unreachable, either because of node or network failure.Its also possible that the target node may have hit the connection limit or the pooler is configured with low connections.Please check if all nodes are running fine and also review max_connections and max_pool_size configuration parameterspostgres= SELECT xc_node_id, FROM disttab WHERE col1 = 3;xc_node_id | col1 | col2 | col3------------+------+------+-------905831925 | 3 | 103 | foo(1 row) 测试发现,查询范围如果涉及到故障的node1节点,会报错,而查询的数据范围不在node1上的话,仍然可以查询。 4.手动切换 要想切换,必须要提前配置slave节点。 PGXC$ failover datanode node1 切换完成后,查询集群 postgres= SELECT oid, FROM pgxc_node;oid | node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id -------+-----------+-----------+-----------+-----------+----------------+------------------+-------------11819 | coord1 | C | 5432 | datanode1 | f | f | 188569664316384 | coord2 | C | 5432 | datanode2 | f | f | -119710263316386 | node2 | D | 15432 | datanode2 | f | f | -92791069016385 | node1 | D | 15433 | datanode2 | f | t | 1148549230(4 rows) 发现datanode1节点的ip和端口都已经替换为配置的slave了。 本篇文章为转载内容。原文链接:https://blog.csdn.net/qianglei6077/article/details/94379331。 该文由互联网用户投稿提供,文中观点代表作者本人意见,并不代表本站的立场。 作为信息平台,本站仅提供文章转载服务,并不拥有其所有权,也不对文章内容的真实性、准确性和合法性承担责任。 如发现本文存在侵权、违法、违规或事实不符的情况,请及时联系我们,我们将第一时间进行核实并删除相应内容。
2023-01-30 11:09:03
94
转载
Docker
...建的支持,使得协作和版本控制更加顺畅。同时,随着容器编排工具Kubernetes对多阶段构建的接纳,Dockerfile的多阶段特性正在成为现代Docker实践中的标准元素。 了解并掌握多阶段构建是提升Docker容器化应用性能和开发效率的关键,开发者应关注相关的教程和更新,以便及时应用到自己的项目中。随着技术的迭代,Dockerfile将继续演化,推动容器化技术的发展。
2024-04-07 16:13:15
555
电脑达人
VUE
...件添加到项目中并进行版本控制。 LayDate , LayDate是一个基于jQuery的轻量级日期选择器组件,广泛应用于Web开发中以增强用户对日期数据的操作体验。在与Vue配合使用时,LayDate提供了丰富的定制选项,比如日期范围选择、时间选择以及主题样式自定义等。通过调用其提供的API,开发者可以在Vue组件中轻松实现日期选择功能,同时借助Vue的响应式机制实现双向数据绑定,确保视图层与数据模型的实时同步。
2023-09-16 11:24:41
59
代码侠
VUE
...复用性,同时也方便了版本控制与团队协作,并且能够与Vue的热重载功能无缝集成,实现对组件内代码变更的即时生效。 Vue Devtools , 一款专为Vue.js应用程序设计的浏览器开发者工具插件,它可以嵌入到Chrome或Firefox等浏览器中,提供对Vue应用内部状态的深度洞察和调试能力。通过Vue Devtools,开发者可以查看组件树、跟踪数据变化、检查虚拟DOM以及执行时间旅行调试等功能,极大提高了开发Vue应用程序的工作效率和体验。
2024-01-03 19:49:11
62
逻辑鬼才
转载文章
...发者根据实际需求灵活控制项目的构建行为。 最近,JetBrains在其官方博客上发布了关于IntelliJ IDEA 2021.3版本更新内容的文章,其中提到了更加精细的构建项目设置,例如支持粒度更细的增量编译与热加载,这有助于提升开发效率,尤其是在大型项目中。通过这些高级设置,开发者能够更好地管理构建过程,确保只有必要的代码部分被重新编译,从而减少因无关错误阻断正确代码运行的情况发生。 此外,对于持续集成和持续部署(CI/CD)场景下的自动化构建问题,可以结合诸如Maven或Gradle等构建工具进行更为定制化的构建配置。例如,可以在构建脚本中设定只编译特定模块或任务,以实现对单个Java类的独立测试和部署。 总之,深入理解和掌握IDE及构建工具的配置技巧,能帮助开发者应对各类复杂项目环境下的挑战,让正确的Java类main方法在任何情况下都能顺利执行,同时也能有效提高整体开发效率和团队协作质量。
2023-12-05 16:40:42
125
转载
HTML
...HTML代码格式化和版本控制集成功能,使得团队成员在遵循统一编程规范的同时,也能轻松实现代码版本的同步与协同开发。 综上所述,无论是紧跟最新的技术动态,还是深入研究和应用现有的最佳实践,都旨在提升团队协作环境下HTML代码的编写质量与工作效率,从而更好地满足快速迭代的现代网页设计需求。
2024-01-31 16:09:57
392
逻辑鬼才
HTML
...可自动部署博客,实现版本控制的同时降低了运维成本。 此外,对于追求动态功能和交互体验的用户,可以考虑学习WordPress、Ghost等CMS系统来构建博客。它们基于数据库驱动,拥有丰富的主题模板和插件生态系统,使不具备专业编程技能的博主也能轻松管理内容和设计样式。 同时,随着Web技术的发展,响应式设计和无障碍访问已成为现代网页的标准配置。在创建个人博客时,确保你的HTML结构遵循语义化原则,配合CSS Flexbox或Grid布局,以及恰当运用ARIA属性提升辅助技术用户的体验,也是不容忽视的重要环节。 总之,在掌握了基础HTML编码后,持续关注并学习Web开发领域的最新趋势和技术,将有助于我们打造更专业、更具吸引力的个人博客空间。
2023-04-28 09:03:31
417
电脑达人
MySQL
...过指定不同的参数可以控制是否包含数据或注释内容。 SQL结构 , SQL结构指的是使用SQL语言定义的数据库结构,它包括但不限于数据库、表、列、索引、视图等元素的定义以及它们之间的关系。在本文上下文中,SQL结构是指MySQL数据库中的表结构,包括表名、列名、数据类型、约束条件以及相关的注释信息,这些信息会被mysqldump命令以SQL语句的形式导出到一个文件中以便于迁移、备份或版本控制。 表结构注释 , 在MySQL数据库中,表结构注释是对表本身的一种描述性文本信息,可以通过特定的SQL语法添加至表定义中,为数据库使用者提供更多关于该表用途、字段含义等背景信息。在文章所讨论的场景中,表结构注释是希望在导出数据库结构时一并保留的重要内容,以方便其他开发者理解数据库设计意图和业务逻辑。 --skip-comments , 这是mysqldump工具的一个命令行选项,但在本文实际应用中应避免使用此选项,因为它的作用是跳过(忽略)在导出过程中遇到的所有注释信息。在文章给出的错误示例中,若要包含注释,则不应使用--skip-comments。
2023-03-21 16:29:33
108
电脑达人
Docker
...有标记,标记是对映像版本的引用。 在Docker中,更改映像的标记是一种常见操作。有时您需要为已有的映像打新的标记。这可以用于将映像标记为不同的版本,使其更容易区分和管理。以下是如何在Docker中更改映像标记的示例: 列出您现有的映像 docker images 将映像标记为新标记 docker tag old_image_tag new_image_tag 列出你的映像,观察新的标签是否被添加 docker images 在此示例中,您需要首先列出已有的映像。这将帮助您确定要更改的映像的名称和标记。接下来,您需要执行Docker tag命令,并将所需的标记指定为新标记。这会在映像名称下添加一个新标记。最后,您需要再次列出您的映像,并确保新的标记已添加成功。 更改Docker映像标记是一个很简单的过程。这使得容器的版本控制和管理变得非常容易。您也可以使用标记来跟踪和管理您的容器和应用。
2023-03-17 16:21:20
311
编程狂人
Python
...Python 3.9版本的发布,引入了一项名为"PyPA PEP 582 -- Standardizing the "importlib.resources" module"的新特性,进一步优化了对内置资源(包括模块)的访问和管理方式。这项改进使得开发者可以直接在特定目录下读取或写入包内的文件,无需通过添加到sys.path来实现,从而简化了局部模块的使用流程,并提升了安全性。 此外,在大型项目开发中,像虚拟环境(Virtual Environment)这样的工具也越来越受到重视,它允许开发者为每个独立项目创建一个隔离的Python环境,其中包含项目的特定模块及其依赖库,这样可以避免全局Python环境下的模块冲突问题,进一步规范模块存放与使用。 同时,随着开源社区的发展,诸如PyPI(Python Package Index)等第三方模块仓库已成为Python开发者共享和获取模块的重要平台。如何正确地发布和引用这些模块,涉及到模块存放路径、版本控制等一系列复杂问题,值得深入研究和探讨。 对于企业级应用来说,遵循最佳实践如采用模块化设计原则,结合像Conda这样的包管理器以及容器化技术(如Docker),能够更好地实现跨团队协作和持续集成/部署(CI/CD),有效提升Python模块的管理效率和整个软件开发生命周期的质量。 总之,Python模块的存放与管理是一个不断演进的话题,了解最新技术和工具动态,结合实际应用场景进行策略选择和实践操作,有助于提升工作效率,确保代码的可维护性和扩展性。
2023-01-16 18:22:18
157
键盘勇士
VUE
...s框架中多人协作时的版本冲突问题及解决方案——vue-cli-plugin-fork之后,我们还可以关注一些与前端开发协作、版本控制和冲突解决相关的最新实践和技术动态。近期,GitHub推出了全新的Copilot工具,它利用人工智能技术实时辅助编程,能在一定程度上预防多人协作过程中的代码冲突。此外,GitLab也发布了更为智能的Merge Request功能升级,强化了自动解决合并冲突的能力,并提供了详尽的可视化界面帮助开发者理解并高效处理冲突。 与此同时,针对Vue.js生态系统的团队协作工具也在不断进化。例如,Vetur是Visual Studio Code的一个知名插件,通过提供对Vue文件的丰富语法高亮、片段以及格式化支持,能够间接提升协同编辑的效率,降低版本冲突发生的可能性。另外,许多项目开始采用组件化和模块化的开发方式,结合Vue的单文件组件特性,从架构层面降低多人同时编辑同一代码块的需求,从而减少版本冲突的发生。 更深入地探讨版本管理理念,可以参考Martin Fowler的“Branch by Abstraction”策略,这是一种提倡通过抽象层来隔离不同开发任务,进而避免直接修改共享代码以引发冲突的方法。这种策略在现代前端工程实践中具有很高的参考价值,尤其对于Vue.js这类鼓励组件化开发的框架而言,更是值得借鉴和实践。 综上所述,在Vue.js及其他前端开发场景中,合理运用版本控制工具、AI辅助编程技术、现代化开发模式以及先进的版本管理策略,都是有效防止和解决多人协作版本冲突的关键手段。持续关注相关领域的最新发展,将有助于提高团队协作效率和软件工程质量。
2023-08-19 09:28:38
64
键盘勇士
转载文章
...ected,它们分别控制了类成员对不同代码区域的访问权限,确保了代码封装性、安全性和模块化设计。 程序集 , 在.NET框架中,程序集是部署、版本控制、重复使用和安全隔离的基本单元,它是编译后的代码、元数据资源以及类型定义的逻辑容器。一个程序集通常对应于一个DLL或EXE文件,它决定了类和成员的内部可见性规则,比如C中的internal访问级别就限定了成员只在同一程序集内可见。 InternalsVisibleToAttribute , 这是一个特性(attribute)类,在C中以属性的形式应用于程序集级别,允许将标记为internal的类型和成员暴露给指定的友元程序集。通过在AssemblyInfo.cs文件中添加 assembly: InternalsVisibleTo(\ 指定的程序集名称\ ) ,可以突破常规的internal访问限制,使得特定程序集能够访问当前程序集中原本仅限于本程序集内部使用的类型和成员,从而增强了不同项目或组件间的协作能力,同时保持了一定程度的封装性。
2023-02-02 17:54:25
330
转载
转载文章
...区,基于Git分布式版本控制系统构建。在公司内部网络环境下,由于网络安全策略限制或防火墙设置,可能需要通过代理服务器访问外部网络资源,而某些工具(如Git)并不直接支持NTLM代理认证,这时就需要借助CNTLM这类工具实现透明的身份验证转发,使用户能够在遵守公司安全政策的前提下,正常地使用GitHub等外部服务进行代码存储、协作与管理。
2023-03-01 12:15:31
72
转载
HBase
...数据 包括列族名称、版本控制、压缩方式等信息。 3. 数据块(Data Block)元数据 包括数据块大小、校验和等信息。 三、如何使用HBase中的元数据? HBase提供了多种方法来操作和查询元数据。以下是几个常见的例子: 1. 获取表元数据 java Configuration conf = new Configuration(); Admin admin = new HBaseAdmin(conf); List tables = admin.listTables(); for (HTableDescriptor table : tables) { System.out.println("Table Name: " + table.getNameAsString()); System.out.println("Row Key Type: " + table.getRowKeySchema().toString()); System.out.println("Column Families: "); for (HColumnDescriptor family : table.getColumnFamilies()) { System.out.println("Family Name: " + family.getNameAsString()); System.out.println("Version Control: " + family.isAutoFlush()); System.out.println("Compression: " + family.getCompressionType()); } } 2. 获取列族元数据 java Configuration conf = new Configuration(); Admin admin = new HBaseAdmin(conf); TableName tableName = TableName.valueOf("my_table"); HTableDescriptor tableDesc = admin.getTableDescriptor(tableName); System.out.println("Family Name: " + tableDesc.getValue(HConstants.TABLE_NAME_STR_KEY)); System.out.println("Version Control: " + tableDesc.getValue(HConstants.VERSIONS_KEY)); System.out.println("Compression: " + tableDesc.getValue(HConstants.COMPRESSION_KEY)); 四、如何管理HBase中的元数据? 管理HBase中的元数据主要涉及到创建、修改和删除表和列族。以下是几个常见的例子: 1. 创建表 java Configuration conf = new Configuration(); Admin admin = new HBaseAdmin(conf); admin.createTable(new HTableDescriptor(TableName.valueOf("my_table")) .addFamily(new HColumnDescriptor("cf1").setVersioningEnabled(true)) .addFamily(new HColumnDescriptor("cf2").setInMemory(true))); 2. 修改表 java Configuration conf = new Configuration(); Admin admin = new HBaseAdmin(conf); admin.modifyTable(TableName.valueOf("my_table"), new HTableDescriptor(TableName.valueOf("my_table")) .removeFamily(Bytes.toBytes("cf1")) .addFamily(new HColumnDescriptor("cf3"))); 3. 删除表 java Configuration conf = new Configuration(); Admin admin = new HBaseAdmin(conf); admin.disableTable(TableName.valueOf("my_table")); admin.deleteTable(TableName.valueOf("my_table")); 五、结论 HBase中的元数据对于管理和优化数据非常重要。当你真正摸清楚怎么在HBase中运用和管理元数据这个窍门后,那就像是解锁了一个新技能,能够让你更充分地榨取HBase的精华,从而让我们的工作效率噌噌上涨,数据处理能力也如虎添翼。同时,咱也要明白一点,管理维护元数据这事儿也是要花费一定精力和资源的。所以呢,咱们得机智地设计和运用元数据,这样才能让它发挥出最大的效果,达到事半功倍的理想状态。
2023-11-14 11:58:02
434
风中飘零-t
SpringCloud
...码中,这样便于维护和版本控制。 java @ConfigurationProperties(prefix = "app") public class AppConfig { private String name; private int port; // getters and setters... } 2.2 配置文件的常见位置 通常,SpringCloud会从application.properties或application.yml文件中读取配置,这些文件位于项目的src/main/resources目录下。 三、配置文件丢失或错误的后果 3.1 丢失:如果配置文件丢失,应用可能无法找到必要的设置,如数据库连接信息、API地址等,导致启动失败或者运行异常。 3.2 错误:配置文件中的语法错误、键值对不匹配等问题,同样会导致应用无法正常运行,甚至引发难以追踪的运行时错误。 四、如何识别和解决配置问题 4.1 使用Spring Cloud Config客户端检查 Spring Cloud Config客户端提供了命令行工具,如spring-cloud-config-client,可以帮助我们查看当前应用正在尝试使用的配置。 bash $ curl http://localhost:8888/master/configprops 4.2 日志分析 查看应用日志是发现配置错误的重要手段。SpringCloud会记录关于配置加载的详细信息,包括错误堆栈和尝试过的配置项。 4.3 使用IDEA或IntelliJ的Spring Boot插件 这些集成开发环境的插件能实时检查配置文件,帮助我们快速定位问题。 五、配置错误的修复策略 5.1 重新创建或恢复配置文件 确保配置文件存在且内容正确。如果是初次配置,参考官方文档或项目文档创建。 5.2 修正配置语法 检查配置文件的格式,确保所有键值对都是正确的,没有遗漏或多余的部分。 5.3 更新配置属性 如果配置项更改,需要更新到应用的配置服务器,然后重启应用以应用新的配置。 六、预防措施与最佳实践 6.1 版本控制 将配置文件纳入版本控制系统,确保每次代码提交都有相应的配置备份。 6.2 使用环境变量 对于敏感信息,可以考虑使用环境变量替代配置文件,提高安全性。 7. 结语 面对SpringCloud配置文件的丢失或错误,我们需要保持冷静,运用合适的工具和方法,一步步找出问题并修复。记住,无论何时,良好的配置管理都是微服务架构稳定运行的关键。希望这篇文章能帮你解决遇到的问题,让你在SpringCloud的世界里更加游刃有余。
2024-06-05 11:05:36
106
冬日暖阳
NodeJS
...I文档的自动化生成和版本控制。 此外,另一篇来自InfoQ的文章深入分析了API文档对DevOps实践的影响。作者强调,在DevOps环境中,API文档不仅是开发人员的工具,也是运维团队的重要参考。通过建立统一的API文档标准,可以促进开发、测试和运维之间的沟通,从而加快产品迭代速度,减少生产环境中的问题。 另外,Stack Overflow上的一篇热门帖子讨论了如何利用Docusaurus等静态站点生成工具来增强API文档的可读性和用户体验。帖子中提到,通过结合Markdown和YAML,可以创建出既美观又实用的API文档网站,使开发者更容易理解和使用API。 这些资源不仅提供了关于API文档的最佳实践,也为开发者和团队提供了新的思路和方法,帮助他们更好地应对现代软件开发中的挑战。通过学习这些案例和经验,我们可以进一步优化API文档的生成和维护流程,提升整个团队的工作效率。
2025-02-14 15:48:24
61
春暖花开
转载文章
...理器)发布了其7.x版本的重大更新,引入了工作空间功能以更高效地管理多包项目,并优化了依赖解析速度和安全性。同时,npm团队也强调了package-lock.json文件对于锁定依赖版本的重要性,建议开发者在项目中始终维护并提交此文件。 2. Yarn 2 / Berry的零安装体验:作为npm的有力竞争者,Yarn在其2.x版本(Berry)中推出了Plug'n'Play特性,它尝试从根本上改变node_modules的工作方式,通过指向远程包的软链接来减少磁盘占用并提高性能。这为解决node_modules体积过大和依赖关系复杂的问题提供了新的思路。 3. Monorepo趋势下的依赖管理:随着Lerna、Nx等工具的流行,越来越多的企业采用Monorepo模式管理多个相关项目。这种模式下,如何合理划分项目依赖与开发依赖,如何借助改进后的package.json和lock文件有效同步和控制全局依赖版本,成为了开发者关注的新焦点。 4. 依赖管理最佳实践:针对依赖地狱问题,业界专家不断提出新的解决方案和最佳实践,如遵循“精确依赖原则”,及时更新过时依赖,利用Greenkeeper或Dependabot等自动化工具进行依赖更新监控等。这些方法论能够帮助开发者更好地管理和维护项目中的第三方模块,确保项目的稳定性和安全性。 5. 开源社区对依赖安全性的重视:鉴于近年来因第三方库引发的安全事件频发,开源社区正加强对包依赖安全性的审查。例如,Sonatype Nexus平台提供组件分析服务,可检测项目依赖链中的漏洞,确保项目所使用的第三方包均处于安全状态。此类服务与工具的运用有助于开发者在管理依赖的同时,增强项目整体的安全性保障。
2023-05-26 22:34:04
132
转载
Gradle
...代表组织名、模块名和版本号。 2. 不同依赖范围的选择 Gradle提供了多种依赖范围,以适应不同的应用场景: - implementation:这是最常用的配置,表示编译和运行时都依赖这个库,但不会传递给依赖该项目的其他模块。 - api:类似于implementation,但它的接口会暴露给依赖此项目的模块。 - compileOnly:仅在编译时需要此依赖,运行时不需要。 - runtimeOnly:仅在运行时需要此依赖,编译时不需要。 - testImplementation:只在测试编译和执行阶段需要此依赖。 根据实际需求选择合适的依赖范围,有助于提高构建效率和避免不必要的依赖冲突。 3. 多项目依赖与子项目引用 在大型多模块项目中,各个子项目间可能存在相互依赖关系。在Gradle中,可以这样声明子项目依赖: groovy dependencies { implementation project(':moduleA') } 这里的:moduleA代表项目中的子模块,Gradle会自动处理这些内部模块间的依赖关系。 4. 版本控制与动态版本 为了保持依赖库的更新,Gradle允许使用动态版本号,如1.+或latest.release等。不过,这种方法可能导致构建结果不一致,建议在生产环境中锁定具体版本。 groovy dependencies { implementation 'com.google.guava:guava:29.0-jre' // 或者使用动态版本 implementation 'com.squareup.retrofit2:retrofit:2.+' } 5. 总结与思考 理解并熟练掌握Gradle的依赖管理,就像掌握了项目构建过程中的关键钥匙。每一个正确的依赖声明,都是项目稳健运行的重要基石。在实际操作的时候,咱们不仅要瞅瞅怎么把依赖引入进来,更得留意如何给这些依赖设定合适的“地盘”,把握好更新和固定版本的时机,还有就是要妥善处理各个模块之间的“你离不开我、我离不开你”的依赖关系。这是一个不断探索和优化的过程,让我们共同在这个过程中享受Gradle带来的高效与便捷吧!
2023-04-22 13:56:55
495
月下独酌_
ReactJS
...个问题,我们可以采用版本控制工具进行管理,如Git等。同时,我们也需要定期进行代码审查,以便及时发现和修复错误。 3. 文档问题 在大型项目中,ReactJS的文档也是一个大问题。由于ReactJS那浩如烟海的代码量和错综复杂的设计模式,真让人感觉编写和维护文档就像在走迷宫一样费劲儿。为了解决这个问题,我们可以采用自动化工具进行文档生成,如JSDoc等。同时,我们也需要定期更新文档,以便及时反映最新的情况。 四、ReactJS的团队沟通和协作解决方案 1. 使用版本控制工具 版本控制工具可以帮助我们更好地管理代码。咱们可以利用Git这个神器来管理代码版本,这样一来,甭管是想瞅瞅之前的旧版代码,还是想一键恢复到之前的某个版本,都变得轻而易举。就像有个时光机,随时带你穿梭在各个版本之间,贼方便! 2. 使用自动化工具 自动化工具可以帮助我们更好地生成和维护文档。嘿,你知道吗?咱们完全可以借助像JSDoc这类神器,一键生成API文档,这样一来,咱们就能省下大把的时间和精力,岂不是美滋滋? 3. 建立有效的团队沟通机制 建立有效的团队沟通机制是非常重要的。我们可以使用Slack等工具来进行实时的团队沟通,也可以使用Trello等工具来进行任务管理和进度跟踪。此外,我们还需要定期进行团队会议,以便及时解决问题和调整计划。 五、结论 ReactJS是一款非常强大的JavaScript库,它可以帮助我们快速构建复杂的用户界面。不过在搞大型项目的时候,如果用ReactJS这玩意儿,由于它那堆得跟山一样高的代码和绕来绕去的设计模式,常常会让团队成员间的沟通协作变得像挤牙膏一样费劲儿。所以呢,咱们得动手搞点事情来解决这些问题。比如,可以试试版本控制工具这玩意儿,还有自动化工具这些高科技,再者就是构建一套真正能打的团队沟通系统,让大家伙儿心往一处想、劲儿往一处使。只有这样,我们才能更好地利用ReactJS的优势,打造出高质量的项目。 六、附录 ReactJS示例代码 javascript import React from 'react'; import ReactDOM from 'react-dom'; class HelloWorld extends React.Component { render() { return ( Hello, World! Welcome to my React application. ); } } ReactDOM.render(, document.getElementById('root')); 以上是一段简单的ReactJS示例代码,用于渲染一个包含标题和段落的页面。通过这段代码,我们可以看到ReactJS是如何工作的,以及它是如何处理组件的状态和事件的。
2023-07-11 17:25:41
455
月影清风-t
Python
...ython 3.10版本正式发布,引入了新语法特性如结构模式匹配(Structural Pattern Matching)和改进版类型提示等,进一步优化了开发体验,提升了代码可读性与简洁性。 此外,全球顶级科技公司纷纷加大对Python的支持力度。例如,Google推出了Colab这一基于云计算的交互式笔记本环境,支持用户直接在浏览器中编写并运行Python代码进行数据科学项目;而微软也在Azure云平台服务中深度集成Python,提供一站式的AI开发解决方案。 对于初学者来说,《Python Crash Course》、《流畅的Python》等经典教材以及在线课程如Coursera上的“Python for Everybody”系列,都是系统学习Python语言及其实战应用的理想资源。同时,开源社区活跃且丰富的库资源也是Python开发者不可忽视的学习宝库,例如NumPy、Pandas用于数据分析,Django、Flask构建Web应用框架等。 值得注意的是,在实际编程实践中,掌握如何运用版本控制工具Git管理Python项目源码,使用Jupyter Notebook或VS Code等高效IDE进行开发调试,以及利用unittest、pytest等单元测试框架保证代码质量,同样是现代Python程序员必备技能的一部分。 总之,随着Python生态系统的持续繁荣和更新迭代,深入理解和掌握这门语言显得尤为重要,而每日坚持学习和实践则有助于快速成长为一名优秀的Python程序员。
2023-06-06 20:35:24
123
键盘勇士
站内搜索
用于搜索本网站内部文章,支持栏目切换。
知识学习
实践的时候请根据实际情况谨慎操作。
随机学习一条linux命令:
history | tail -n 10
- 查看最近使用的10条命令历史。
推荐内容
推荐本栏目内的其它文章,看看还有哪些文章让你感兴趣。
2023-04-28
2023-08-09
2023-06-18
2023-04-14
2023-02-18
2023-04-17
2024-01-11
2023-10-03
2023-09-09
2023-06-13
2023-08-07
2023-03-11
历史内容
快速导航到对应月份的历史文章列表。
随便看看
拉到页底了吧,随便看看还有哪些文章你可能感兴趣。
时光飞逝
"流光容易把人抛,红了樱桃,绿了芭蕉。"