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

Seaweedfs(master volume filer) docker run参数帮助文档

文章目录

  • 进入容器后执行获取
    • weed -h
      • 英文
      • 中文
    • weed server -h
      • 英文
      • 中文
    • weed volume -h
      • 英文
      • 中文
    • 关键点
    • 测试了一下,这个`-volume.minFreeSpace string`有点狠,比如设置值为10(10%),它直接给系统只留下10%的空间,其余空间全给你先占用了
    • 尝试只用参数`-volume.max string`设置最大卷数量(貌似一个是大约1g)

进入容器后执行获取

weed -h

英文

/data # weedSeaweedFS: store billions of files and serve them fast!Usage:weed command [arguments]The commands are:autocomplete install autocompleteautocomplete.uninstall uninstall autocompletebackup      incrementally backup a volume to local folderbenchmark   benchmark by writing millions of files and reading them outcompact     run weed tool compact on volume filedownload    download files by file idexport      list or export files from one volume data filefiler       start a file server that points to a master server, or a list of master serversfiler.backup resume-able continuously replicate files from a SeaweedFS cluster to another location defined in replication.tomlfiler.cat   copy one file to localfiler.copy  copy one or a list of files to a filer folderfiler.meta.backup continuously backup filer meta data changes to anther filer store specified in a backup_filer.tomlfiler.meta.tail see continuous changes on a filerfiler.remote.gateway resumable continuously write back bucket creation, deletion, and other local updates to remote object storefiler.remote.sync resumable continuously write back updates to remote storagefiler.replicate replicate file changes to another destinationfiler.sync  resumable continuous synchronization between two active-active or active-passive SeaweedFS clustersfix         run weed tool fix on files or whole folders to recreate index file(s) if corruptedfuse        Allow use weed with linux's mount commandiam         start a iam API compatible servermaster      start a master servermaster.follower start a master followermount       mount weed filer to a directory as file system in userspace(FUSE)mq.broker   <WIP> start a message queue brokers3          start a s3 API compatible server that is backed by a filerscaffold    generate basic configuration filesserver      start a master server, a volume server, and optionally a filer and a S3 gatewayshell       run interactive administrative commandsupdate      get latest or specific version from https://github.com/seaweedfs/seaweedfsupload      upload one or a list of filesversion     print SeaweedFS versionvolume      start a volume serverwebdav      start a webdav server that is backed by a filerUse "weed help [command]" for more information about a command.For Logging, use "weed [logging_options] [command]". The logging options are:-alsologtostderrlog to standard error as well as files (default true)-config_dir valuedirectory with toml configuration files-log_backtrace_at valuewhen logging hits line file:N, emit a stack trace-logdir stringIf non-empty, write log files in this directory-logtostderrlog to standard error instead of files-options stringa file of command line options, each line in optionName=optionValue format-stderrthreshold valuelogs at or above this threshold go to stderr-v valuelog levels [0|1|2|3|4], default to 0-vmodule valuecomma-separated list of pattern=N settings for file-filtered logging

中文

SeaweedFS: store billions of files and serve them fast!  # 海量文件存储与快速服务Usage:weed command [arguments]  # 使用格式:weed 命令 [参数]The commands are:autocomplete install autocomplete  # 安装自动补全功能autocomplete.uninstall uninstall autocomplete  # 卸载自动补全功能backup      incrementally backup a volume to local folder  # 增量备份卷数据到本地目录benchmark   benchmark by writing millions of files and reading them out  # 通过读写百万文件进行性能测试compact     run weed tool compact on volume file  # 压缩卷文件download    download files by file id  # 通过文件ID下载文件export      list or export files from one volume data file  # 从卷数据文件列出/导出文件filer       start a file server that points to a master server, or a list of master servers  # 启动文件服务器连接主节点filer.backup resume-able continuously replicate files from a SeaweedFS cluster to another location defined in replication.toml  # 持续备份文件到replication.toml定义的位置filer.cat   copy one file to local  # 复制单个文件到本地filer.copy  copy one or a list of files to a filer folder  # 复制文件到filer目录filer.meta.backup continuously backup filer meta data changes to anther filer store specified in a backup_filer.toml  # 持续备份元数据到备份配置指定位置filer.meta.tail see continuous changes on a filer  # 实时查看filer元数据变化filer.remote.gateway resumable continuously write back bucket creation, deletion, and other local updates to remote object store  # 将本地存储操作同步到远程对象存储filer.remote.sync resumable continuously write back updates to remote storage  # 持续同步更新到远程存储filer.replicate replicate file changes to another destination  # 文件变更复制到其他目标filer.sync  resumable continuous synchronization between two active-active or active-passive SeaweedFS clusters  # 集群间持续同步fix         run weed tool fix on files or whole folders to recreate index file(s) if corrupted  # 修复损坏的索引文件fuse        Allow use weed with linux's mount command  # 支持Linux挂载命令iam         start a iam API compatible server  # 启动IAM兼容API服务master      start a master server  # 启动主节点master.follower start a master follower  # 启动主节点跟随者mount       mount weed filer to a directory as file system in userspace(FUSE)  # 挂载FUSE文件系统mq.broker   <WIP> start a message queue broker  # 启动消息队列代理(开发中)s3          start a s3 API compatible server that is backed by a filer  # 启动S3兼容服务scaffold    generate basic configuration files  # 生成基础配置文件server      start a master server, a volume server, and optionally a filer and a S3 gateway  # 启动完整服务(主节点+存储节点+可选组件)shell       run interactive administrative commands  # 进入交互式管理命令行update      get latest or specific version from https://github.com/seaweedfs/seaweedfs  # 更新SeaweedFS版本upload      upload one or a list of files  # 上传单个或多个文件version     print SeaweedFS version  # 显示版本信息volume      start a volume server  # 启动存储节点webdav      start a webdav server that is backed by a filer  # 启动WebDAV服务日志选项说明(每个命令前均可添加):-alsologtostderr同时输出日志到标准错误和文件(默认true)-config_dir value包含toml配置文件的目录-log_backtrace_at value当记录到指定行时输出堆栈跟踪-logdir string日志文件存储目录(非空时生效)-logtostderr日志输出到标准错误而非文件-options string命令行选项配置文件(每行格式为optionName=optionValue)-stderrthreshold value高于此级别的日志输出到标准错误-v value日志级别 [0|1|2|3|4],默认为0-vmodule value文件过滤日志设置(逗号分隔的pattern=N格式)

weed server -h

英文

/data # weed server -h
Example: weed server -dir=/tmp -volume.max=5 -ip=server_name
Default Usage:-cpuprofile stringcpu profile output file-dataCenter stringcurrent volume server's data center name-debugserves runtime profiling data, e.g., http://localhost:6060/debug/pprof/goroutine?debug=2-debug.port inthttp port for debugging (default 6060)-dir stringdirectories to store data files. dir[,dir]... (default "/tmp")-disableHttpdisable http requests, only gRPC operations are allowed.-filerwhether to start filer-filer.collection stringall data will be stored in this collection-filer.concurrentUploadLimitMB intlimit total concurrent upload size (default 64)-filer.defaultReplicaPlacement stringdefault replication type. If not specified, use master setting.-filer.dirListLimit intlimit sub dir listing size (default 1000)-filer.disableDirListingturn off directory listing-filer.disk string[hdd|ssd|<tag>] hard drive or solid state drive or any tag-filer.downloadMaxMBps intdownload max speed for each download request, in MB per second-filer.encryptVolumeDataencrypt data on volume servers-filer.filerGroup stringshare metadata with other filers in the same filerGroup-filer.localSocket stringdefault to /tmp/seaweedfs-filer-<port>.sock-filer.maxMB intsplit files larger than the limit (default 4)-filer.port intfiler server http listen port (default 8888)-filer.port.grpc intfiler server grpc listen port-filer.port.public intfiler server public http listen port-filer.saveToFilerLimit intSmall files smaller than this limit can be cached in filer store.-filer.ui.deleteDirenable filer UI show delete directory button (default true)-iamwhether to start IAM service-iam.port intiam server http listen port (default 8111)-idleTimeout intconnection idle seconds (default 30)-ip stringip or server name, also used as identifier (default "172.17.0.6")-ip.bind stringip address to bind to. If empty, default to same as -ip option.-masterwhether to start master server (default true)-master.defaultReplication stringDefault replication type if not specified.-master.dir stringdata directory to store meta data, default to same as -dir specified-master.electionTimeout durationelection timeout of master servers (default 10s)-master.garbageThreshold floatthreshold to vacuum and reclaim spaces (default 0.3)-master.heartbeatInterval durationheartbeat interval of master servers, and will be randomly multiplied by [1, 1.25) (default 300ms)-master.metrics.address stringPrometheus gateway address-master.metrics.intervalSeconds intPrometheus push interval in seconds (default 15)-master.peers stringall master nodes in comma separated ip:masterPort list-master.port intmaster server http listen port (default 9333)-master.port.grpc intmaster server grpc listen port-master.raftHashicorpuse hashicorp raft-master.resumeStateresume previous state on start master server-master.volumePreallocatePreallocate disk space for volumes.-master.volumeSizeLimitMB uintMaster stops directing writes to oversized volumes. (default 30000)-memprofile stringmemory profile output file-metricsPort intPrometheus metrics listen port-mq.brokerwhether to start message queue broker-mq.broker.port intmessage queue broker gRPC listen port (default 17777)-options stringa file of command line options, each line in optionName=optionValue format-rack stringcurrent volume server's rack name-s3whether to start S3 gateway-s3.allowDeleteBucketNotEmptyallow recursive deleting all entries along with bucket (default true)-s3.allowEmptyFolderallow empty folders (default true)-s3.auditLogConfig stringpath to the audit log config file-s3.cert.file stringpath to the TLS certificate file-s3.config stringpath to the config file-s3.domainName stringsuffix of the host name in comma separated list, {bucket}.{domainName}-s3.key.file stringpath to the TLS private key file-s3.port ints3 server http listen port (default 8333)-s3.port.grpc ints3 server grpc listen port-volumewhether to start volume server (default true)-volume.compactionMBps intlimit compaction speed in mega bytes per second-volume.concurrentDownloadLimitMB intlimit total concurrent download size (default 64)-volume.concurrentUploadLimitMB intlimit total concurrent upload size (default 64)-volume.dir.idx stringdirectory to store .idx files-volume.disk string[hdd|ssd|<tag>] hard drive or solid state drive or any tag-volume.fileSizeLimitMB intlimit file size to avoid out of memory (default 256)-volume.hasSlowRead<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase. (default true)-volume.images.fix.orientationAdjust jpg orientation when uploading.-volume.index stringChoose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance. (default "memory")-volume.index.leveldbTimeout intalive time for leveldb (default to 0). If leveldb of volume is not accessed in ldbTimeout hours, it will be off loaded to reduce opened files and memory consumption.-volume.inflightUploadDataTimeout durationinflight upload data wait timeout of volume servers (default 1m0s)-volume.max stringmaximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size. (default "8")-volume.minFreeSpace stringmin free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.-volume.minFreeSpacePercent stringminimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead). (default "1")-volume.port intvolume server http listen port (default 8080)-volume.port.grpc intvolume server grpc listen port-volume.port.public intvolume server public port-volume.pprofenable pprof http handlers. precludes --memprofile and --cpuprofile-volume.preStopSeconds intnumber of seconds between stop send heartbeats and stop volume server (default 10)-volume.publicUrl stringpublicly accessible address-volume.readBufferSizeMB int<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally (default 4)-volume.readMode string[local|proxy|redirect] how to deal with non-local volume: 'not found|read in remote node|redirect volume location'. (default "proxy")-webdavwhether to start WebDAV gateway-webdav.cacheCapacityMB intlocal cache capacity in MB-webdav.cacheDir stringlocal cache directory for file chunks (default "/tmp")-webdav.cert.file stringpath to the TLS certificate file-webdav.collection stringcollection to create the files-webdav.disk string[hdd|ssd|<tag>] hard drive or solid state drive or any tag-webdav.filer.path stringuse this remote path from filer server (default "/")-webdav.key.file stringpath to the TLS private key file-webdav.port intwebdav server http listen port (default 7333)-webdav.replication stringreplication to create the files-whiteList stringcomma separated Ip addresses having write permission. No limit if empty.
Description:start both a volume server to provide storage spacesand a master server to provide volume=>location mapping service and sequence number of file idsThis is provided as a convenient way to start both volume server and master server.The servers acts exactly the same as starting them separately.So other volume servers can connect to this master server also.Optionally, a filer server can be started.Also optionally, a S3 gateway can be started.
/data #

中文

/data # weed server -h
Example: weed server -dir=/tmp -volume.max=5 -ip=server_name  # 示例命令
Default Usage:-cpuprofile string  # CPU性能分析输出文件cpu profile output file  -dataCenter string  # 当前卷服务器的数据中心名称current volume server's data center name  -debug  # 启用调试模式,提供运行时分析数据serves runtime profiling data, e.g., http://localhost:6060/debug/pprof/goroutine?debug=2  -debug.port int  # 调试用的HTTP端口号 (默认6060)http port for debugging (default 6060)  -dir string  # 数据存储目录列表,多个目录用逗号分隔 (默认"/tmp")directories to store data files. dir[,dir]... (default "/tmp")  -disableHttp  # 禁用HTTP请求,只允许gRPC操作disable http requests, only gRPC operations are allowed.  -filer  # 是否启动文件管理器服务whether to start filer  -filer.collection string  # 所有数据将存储在此集合中all data will be stored in this collection  -filer.concurrentUploadLimitMB int  # 总并发上传大小限制(单位MB)(默认64)limit total concurrent upload size (default 64)  -filer.defaultReplicaPlacement string  # 默认副本放置策略(未指定时使用主设置)default replication type. If not specified, use master setting.  -filer.dirListLimit int  # 子目录列表显示数量限制 (默认1000)limit sub dir listing size (default 1000)  -filer.disableDirListing  # 关闭目录列表功能turn off directory listing  -filer.disk string  # 磁盘类型标签 [hdd|ssd|<自定义标签>][hdd|ssd|<tag>] hard drive or solid state drive or any tag  -filer.downloadMaxMBps int  # 单个下载请求的最大速度(MB/秒)download max speed for each download request, in MB per second  -filer.encryptVolumeData  # 加密卷服务器上的数据encrypt data on volume servers  -filer.filerGroup string  # 与同组文件管理器共享元数据share metadata with other filers in the same filerGroup  -filer.localSocket string  # 本地socket文件路径 (默认/tmp/seaweedfs-filer-<port>.sock)default to /tmp/seaweedfs-filer-<port>.sock  -filer.maxMB int  # 文件分割阈值(单位MB)(默认4)split files larger than the limit (default 4)  -filer.port int  # 文件管理器HTTP监听端口 (默认8888)filer server http listen port (default 8888)  -filer.port.grpc int  # 文件管理器gRPC监听端口filer server grpc listen port  -filer.port.public int  # 文件管理器公共HTTP监听端口filer server public http listen port  -filer.saveToFilerLimit int  # 可缓存到文件管理器的小文件大小阈值Small files smaller than this limit can be cached in filer store.  -filer.ui.deleteDir  # 在文件管理器UI显示删除目录按钮 (默认true)enable filer UI show delete directory button (default true)  -iam  # 是否启动IAM服务whether to start IAM service  -iam.port int  # IAM服务HTTP监听端口 (默认8111)iam server http listen port (default 8111)  -idleTimeout int  # 连接空闲超时秒数 (默认30)connection idle seconds (default 30)  -ip string  # 服务器IP或名称,也作为标识符 (默认"172.17.0.6")ip or server name, also used as identifier (default "172.17.0.6")  -ip.bind string  # 绑定的IP地址(空则使用-ip设置)ip address to bind to. If empty, default to same as -ip option.  -master  # 是否启动主服务器 (默认true)whether to start master server (default true)  -master.defaultReplication string  # 默认副本策略(未指定时使用)Default replication type if not specified.  -master.dir string  # 主服务器元数据存储目录(默认同-dir)data directory to store meta data, default to same as -dir specified  -master.electionTimeout duration  # 主服务器选举超时时间 (默认10s)election timeout of master servers (default 10s)  -master.garbageThreshold float  # 触发空间回收的垃圾占比阈值 (默认0.3)threshold to vacuum and reclaim spaces (default 0.3)  -master.heartbeatInterval duration  # 主服务器心跳间隔(随机乘以1~1.25)(默认300ms)heartbeat interval of master servers, and will be randomly multiplied by [1, 1.25) (default 300ms)  -master.metrics.address string  # Prometheus网关地址Prometheus gateway address  -master.metrics.intervalSeconds int  # Prometheus推送间隔(秒)(默认15)Prometheus push interval in seconds (default 15)  -master.peers string  # 所有主节点列表(逗号分隔的ip:port)all master nodes in comma separated ip:masterPort list  -master.port int  # 主服务器HTTP监听端口 (默认9333)master server http listen port (default 9333)  -master.port.grpc int  # 主服务器gRPC监听端口master server grpc listen port  -master.raftHashicorp  # 使用Hashicorp Raft实现use hashicorp raft  -master.resumeState  # 启动时恢复之前的状态resume previous state on start master server  -master.volumePreallocate  # 为卷预分配磁盘空间Preallocate disk space for volumes.  -master.volumeSizeLimitMB uint  # 主服务器停止写入超大卷的阈值(单位MB)(默认30000)Master stops directing writes to oversized volumes. (default 30000)  -memprofile string  # 内存分析输出文件memory profile output file  -metricsPort int  # Prometheus指标监听端口Prometheus metrics listen port  -mq.broker  # 是否启动消息队列代理whether to start message queue broker  -mq.broker.port int  # 消息队列代理gRPC监听端口 (默认17777)message queue broker gRPC listen port (default 17777)  -options string  # 命令行选项配置文件(每行格式optionName=optionValue)a file of command line options, each line in optionName=optionValue format  -rack string  # 当前卷服务器的机架名称current volume server's rack name  -s3  # 是否启动S3网关whether to start S3 gateway  -s3.allowDeleteBucketNotEmpty  # 允许递归删除非空桶 (默认true)allow recursive deleting all entries along with bucket (default true)  -s3.allowEmptyFolder  # 允许空文件夹 (默认true)allow empty folders (default true)  -s3.auditLogConfig string  # 审计日志配置文件路径path to the audit log config file  -s3.cert.file string  # TLS证书文件路径path to the TLS certificate file  -s3.config string  # 配置文件路径path to the config file  -s3.domainName string  # S3域名后缀(逗号分隔列表,格式{bucket}.{domainName})suffix of the host name in comma separated list, {bucket}.{domainName}  -s3.key.file string  # TLS私钥文件路径path to the TLS private key file  -s3.port int  # S3服务HTTP监听端口 (默认8333)s3 server http listen port (default 8333)  -s3.port.grpc int  # S3服务gRPC监听端口s3 server grpc listen port  -volume  # 是否启动卷服务器 (默认true)whether to start volume server (default true)  -volume.compactionMBps int  # 压缩速度限制(MB/秒)limit compaction speed in mega bytes per second  -volume.concurrentDownloadLimitMB int  # 总并发下载大小限制(单位MB)(默认64)limit total concurrent download size (default 64)  -volume.concurrentUploadLimitMB int  # 总并发上传大小限制(单位MB)(默认64)limit total concurrent upload size (default 64)  -volume.dir.idx string  # .idx文件存储目录directory to store .idx files  -volume.disk string  # 卷磁盘类型标签 [hdd|ssd|<自定义标签>][hdd|ssd|<tag>] hard drive or solid state drive or any tag  -volume.fileSizeLimitMB int  # 文件大小限制以避免内存溢出(单位MB)(默认256)limit file size to avoid out of memory (default 256)  -volume.hasSlowRead  # <实验性> 防止慢速读取阻塞其他请求(默认true)<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase. (default true)  -volume.images.fix.orientation  # 上传时自动调整JPG方向Adjust jpg orientation when uploading.  -volume.index string  # 索引模式选择 [memory|leveldb|leveldbMedium|leveldbLarge] (默认"memory")Choose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance. (default "memory")  -volume.index.leveldbTimeout int  # leveldb存活超时时间(小时),0表示禁用alive time for leveldb (default to 0). If leveldb of volume is not accessed in ldbTimeout hours, it will be off loaded to reduce opened files and memory consumption.  -volume.inflightUploadDataTimeout duration  # 传输中上传数据等待超时时间 (默认1m0s)inflight upload data wait timeout of volume servers (default 1m0s)  -volume.max string  # 最大卷数量(设为0则自动根据磁盘空间计算)(默认"8")maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size. (default "8")  -volume.minFreeSpace string  # 最小空闲磁盘空间(百分比<=100,或如10GiB)min free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.  -volume.minFreeSpacePercent string  # 最小空闲磁盘空间百分比(已弃用,改用minFreeSpace)(默认"1")minimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead). (default "1")  -volume.port int  # 卷服务器HTTP监听端口 (默认8080)volume server http listen port (default 8080)  -volume.port.grpc int  # 卷服务器gRPC监听端口volume server grpc listen port  -volume.port.public int  # 卷服务器公共端口volume server public port  -volume.pprof  # 启用pprof HTTP处理器(与--memprofile/--cpuprofile互斥)enable pprof http handlers. precludes --memprofile and --cpuprofile  -volume.preStopSeconds int  # 停止发送心跳到停止服务的时间间隔(秒)(默认10)number of seconds between stop send heartbeats and stop volume server (default 10)  -volume.publicUrl string  # 公开访问地址publicly accessible address  -volume.readBufferSizeMB int  # <实验性> 读缓冲区大小(MB)(默认4)<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally (default 4)  -volume.readMode string  # 非本地卷处理模式 [local|proxy|redirect] (默认"proxy")[local|proxy|redirect] how to deal with non-local volume: 'not found|read in remote node|redirect volume location'. (default "proxy")  -webdav  # 是否启动WebDAV网关whether to start WebDAV gateway  -webdav.cacheCapacityMB int  # 本地缓存容量(MB)local cache capacity in MB  -webdav.cacheDir string  # 文件块本地缓存目录 (默认"/tmp")local cache directory for file chunks (default "/tmp")  -webdav.cert.file string  # TLS证书文件路径path to the TLS certificate file  -webdav.collection string  # 文件创建的目标集合collection to create the files  -webdav.disk string  # WebDAV磁盘类型标签 [hdd|ssd|<自定义标签>][hdd|ssd|<tag>] hard drive or solid state drive or any tag  -webdav.filer.path string  # 使用的远程文件管理器路径 (默认"/")use this remote path from filer server (default "/")  -webdav.key.file string  # TLS私钥文件路径path to the TLS private key file  -webdav.port int  # WebDAV服务HTTP监听端口 (默认7333)webdav server http listen port (default 7333)  -webdav.replication string  # 文件创建的副本策略replication to create the files  -whiteList string  # 拥有写权限的IP白名单(逗号分隔,空表示无限制)comma separated Ip addresses having write permission. No limit if empty.  
Description:start both a volume server to provide storage spaces  # 同时启动卷服务器提供存储空间and a master server to provide volume=>location mapping service and sequence number of file ids  # 和主服务器提供卷位置映射及文件ID序列服务This is provided as a convenient way to start both volume server and master server.  # 本命令是同时启动卷服务器和主服务器的便捷方式The servers acts exactly the same as starting them separately.  # 服务表现与单独启动时完全相同So other volume servers can connect to this master server also.  # 其他卷服务器也可以连接到此主服务器Optionally, a filer server can be started.  # 可选项:可启动文件管理器服务Also optionally, a S3 gateway can be started.  # 可选项:可启动S3网关
/data #

weed volume -h

英文

/data # weed volume -h
Example: weed volume -port=8080 -dir=/tmp -max=5 -ip=server_name -mserver=localhost:9333
Default Usage:-compactionMBps intlimit background compaction or copying speed in mega bytes per second-concurrentDownloadLimitMB intlimit total concurrent download size (default 256)-concurrentUploadLimitMB intlimit total concurrent upload size (default 256)-cpuprofile stringcpu profile output file-dataCenter stringcurrent volume server's data center name-dir stringdirectories to store data files. dir[,dir]... (default "/tmp")-dir.idx stringdirectory to store .idx files-disk string[hdd|ssd|<tag>] hard drive or solid state drive or any tag-fileSizeLimitMB intlimit file size to avoid out of memory (default 256)-hasSlowRead<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase. (default true)-idleTimeout intconnection idle seconds (default 30)-images.fix.orientationAdjust jpg orientation when uploading.-index stringChoose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance. (default "memory")-index.leveldbTimeout intalive time for leveldb (default to 0). If leveldb of volume is not accessed in ldbTimeout hours, it will be off loaded to reduce opened files and memory consumption.-inflightUploadDataTimeout durationinflight upload data wait timeout of volume servers (default 1m0s)-ip stringip or server name, also used as identifier (default "172.17.0.6")-ip.bind stringip address to bind to. If empty, default to same as -ip option.-max stringmaximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size. (default "8")-memprofile stringmemory profile output file-metricsPort intPrometheus metrics listen port-minFreeSpace stringmin free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.-minFreeSpacePercent stringminimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead). (default "1")-mserver stringcomma-separated master servers (default "localhost:9333")-options stringa file of command line options, each line in optionName=optionValue format-port inthttp listen port (default 8080)-port.grpc intgrpc listen port-port.public intport opened to public-pprofenable pprof http handlers. precludes --memprofile and --cpuprofile-preStopSeconds intnumber of seconds between stop send heartbeats and stop volume server (default 10)-publicUrl stringPublicly accessible address-rack stringcurrent volume server's rack name-readBufferSizeMB int<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally. (default 4)-readMode string[local|proxy|redirect] how to deal with non-local volume: 'not found|proxy to remote node|redirect volume location'. (default "proxy")-whiteList stringcomma separated Ip addresses having write permission. No limit if empty.
Description:start a volume server to provide storage spaces

中文

/data # weed volume -h
Example: weed volume -port=8080 -dir=/tmp -max=5 -ip=server_name -mserver=localhost:9333
Default Usage:-compactionMBps intlimit background compaction or copying speed in mega bytes per second[限制后台压缩或复制速度,单位MB/秒]-concurrentDownloadLimitMB intlimit total concurrent download size (default 256)[限制并发下载总大小,默认256MB]-concurrentUploadLimitMB intlimit total concurrent upload size (default 256)[限制并发上传总大小,默认256MB]-cpuprofile stringcpu profile output file[CPU性能分析输出文件名]-dataCenter stringcurrent volume server's data center name[当前卷服务器的数据中心名称]-dir stringdirectories to store data files. dir[,dir]... (default "/tmp")[数据文件存储目录,多个目录用逗号分隔,默认/tmp]-dir.idx stringdirectory to store .idx files[索引文件存储目录]-disk string[hdd|ssd|<tag>] hard drive or solid state drive or any tag[磁盘类型标识:hdd/ssd/自定义标签]-fileSizeLimitMB intlimit file size to avoid out of memory (default 256)[限制单个文件大小防止内存溢出,默认256MB]-hasSlowRead<experimental> if true, this prevents slow reads from blocking other requests, but large file read P99 latency will increase. (default true)[实验性:启用后慢读不会阻塞其他请求,但大文件读取延迟会增加]-idleTimeout intconnection idle seconds (default 30)[连接空闲超时时间(秒),默认30秒]-images.fix.orientationAdjust jpg orientation when uploading.[上传时自动调整JPG方向]-index stringChoose [memory|leveldb|leveldbMedium|leveldbLarge] mode for memory~performance balance. (default "memory")[索引存储模式:内存优先或不同级别的LevelDB]-index.leveldbTimeout intalive time for leveldb (default to 0). If leveldb of volume is not accessed in ldbTimeout hours, it will be off loaded to reduce opened files and memory consumption.[LevelDB存活时间(小时),超时后卸载以节省资源]-inflightUploadDataTimeout durationinflight upload data wait timeout of volume servers (default 1m0s)[上传数据等待超时时间,默认1分钟]-ip stringip or server name, also used as identifier (default "172.17.0.6")[服务器IP/名称,也作为唯一标识]-ip.bind stringip address to bind to. If empty, default to same as -ip option.[绑定IP地址,默认与-ip相同]-max stringmaximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size. (default "8")[最大卷数量(自动计算磁盘空间与卷大小的比值)]-memprofile stringmemory profile output file[内存性能分析输出文件名]-metricsPort intPrometheus metrics listen port[Prometheus指标监听端口]-minFreeSpace stringmin free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.[最小磁盘剩余空间(百分比或易读字节单位如10GiB),空间不足时将卷设为只读]-minFreeSpacePercent stringminimum free disk space (default to 1%). Low disk space will mark all volumes as ReadOnly (deprecated, use minFreeSpace instead). (default "1")[已弃用,改用minFreeSpace参数]-mserver stringcomma-separated master servers (default "localhost:9333")[主服务器地址列表,用逗号分隔]-options stringa file of command line options, each line in optionName=optionValue format[配置文件路径(每行格式为optionName=optionValue)]-port inthttp listen port (default 8080)[HTTP监听端口]-port.grpc intgrpc listen port[gRPC监听端口]-port.public intport opened to public[对外开放端口]-pprofenable pprof http handlers. precludes --memprofile and --cpuprofile[启用pprof性能分析(与--memprofile/--cpuprofile互斥)]-preStopSeconds intnumber of seconds between stop send heartbeats and stop volume server (default 10)[停止发送心跳到停止服务之间的等待秒数]-publicUrl stringPublicly accessible address[公开访问地址]-rack stringcurrent volume server's rack name[当前卷服务器的机架名称]-readBufferSizeMB int<experimental> larger values can optimize query performance but will increase some memory usage,Use with hasSlowRead normally. (default 4)[实验性:增大可优化查询性能但增加内存占用,默认4MB]-readMode string[local|proxy|redirect] how to deal with non-local volume: 'not found|proxy to remote node|redirect volume location'. (default "proxy")[非本地卷处理模式:本地无/代理请求/重定向]-whiteList stringcomma separated Ip addresses having write permission. No limit if empty.[白名单IP地址(逗号分隔),空表示无限制]
Description:start a volume server to provide storage spaces[启动卷服务器提供存储空间]

关键点

-master.garbageThreshold float  # 触发空间回收的垃圾占比阈值 (默认0.3)threshold to vacuum and reclaim spaces (default 0.3)  -volume.max string  # 最大卷数量(设为0则自动根据磁盘空间计算)(默认"8")maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured as free disk space divided by volume size. (default "8")  
-volume.minFreeSpace string  # 最小空闲磁盘空间(百分比<=100,或如10GiB),如果达到阈值所有卷将被标记只读(大概写30表示30%)min free disk space (value<=100 as percentage like 1, other as human readable bytes, like 10GiB). Low disk space will mark all volumes as ReadOnly.  

测试了一下,这个-volume.minFreeSpace string有点狠,比如设置值为10(10%),它直接给系统只留下10%的空间,其余空间全给你先占用了

在这里插入图片描述

尝试只用参数-volume.max string设置最大卷数量(貌似一个是大约1g)

我尝试设置20:

    docker run \-d -i -t --restart always \--name $CONTAINER_NAME \-p $MASTER_PORT:9333 \-p $FILER_PORT:8888 \-v $SCRIPT_LOCATION/mount/masterVolumeFiler/data/:/data/ \-v /etc/localtime:/etc/localtime:ro \--log-driver=json-file \--log-opt max-size=100m \--log-opt max-file=3 \$IMAGE_NAME:$IMAGE_TAG \server -filer -volume.max=20

在这里插入图片描述

在不断上传文件过程中,它会分阶段扩张:

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍
ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ        ‌‍ᅟᅠ

相关文章:

Seaweedfs(master volume filer) docker run参数帮助文档

文章目录 进入容器后执行获取weed -h英文中文 weed server -h英文中文 weed volume -h英文中文 关键点测试了一下&#xff0c;这个-volume.minFreeSpace string有点狠&#xff0c;比如设置值为10&#xff08;10%&#xff09;&#xff0c;它直接给系统只留下10%的空间&#xff0…...

深度求索(DeepSeek)的AI革命:NLP、CV与智能应用的技术跃迁

Deepseek官网&#xff1a;DeepSeek 引言&#xff1a;AI技术浪潮中的深度求索 近年来&#xff0c;人工智能技术以指数级速度重塑全球产业格局。在这场技术革命中&#xff0c;深度求索&#xff08;DeepSeek&#xff09;凭借其前沿的算法研究、高效的工程化能力以及对垂直场景的…...

探索RDMA技术:从基础到实践

1. 引言 在当今的高性能计算(HPC)和数据中心领域,数据传输的效率和速度至关重要。RDMA(Remote Direct Memory Access,远程直接内存访问)技术作为一种高效的网络通信机制,能够显著减少数据传输的延迟和CPU负载。本文将从基础到实践,详细介绍RDMA技术及其编程模型,帮助…...

Excel 笔记

实际问题记录 VBA脚本实现特殊的行转列 已知&#xff1a;位于同一Excel工作簿文件中的两个工作表&#xff1a;Sheet1、Sheet2。 问题&#xff1a;现要将Sheet2中的每一行&#xff0c;按Sheet1中的样子进行转置&#xff1a; Sheet2中每一行的黄色单元格&#xff0c;为列头。…...

Flutter编译运行android问题之JVM版本问题

错误1&#xff1a; FAILURE: Build failed with an exception. * What went wrong: Execution failed for task :audioplayers_android:compileDebugKotlin. > Inconsistent JVM-target compatibility detected for tasks compileDebugJavaWithJavac (1.8) and compileDebug…...

自动化遇到的问题记录(遇到问题就更)

总结回归下自己这边遇到的一些问题 “EOF错误”&#xff0c;获取不到csv里面的内容 跑多csv文件里的场景&#xff0c;部分场景的请求值为 1、检查csv文件里不能直接是[]开头的参数&#xff0c;把[]改到ms平台的请求参数里 2、有时可能是某个参数值缺了双引号的其中一边 met…...

解决 Flutter Device Daemon 启动失败问题的实践记录

解决 Flutter Device Daemon 启动失败问题的实践记录 最近在使用 Flutter 开发时踩了一个坑。看似是个小问题&#xff0c;但折腾了好久&#xff0c;最终通过日志分析和查阅资料才找到了解决办法。这里记录一下整个问题的排查过程&#xff0c;希望能帮助到遇到类似问题的小伙伴…...

中国通信企业协会 通信网络安全服务能力评定 证书使用说明

中国通信企业协会颁发的通信网络安全服务能力资格证书&#xff0c;是证明证书持有单位符合通信网络安全服务相应能力准则要求。证书持有单位在使用中国通信企业协会颁发的证书时&#xff0c;应遵守以下规定&#xff1a; 评定证书 证书持有单位必须遵守《中国通信企业协会通信网…...

《我在技术交流群算命》(三):QML的Button为什么有个蓝框去不掉啊(QtQuick.Controls由Qt5升级到Qt6的异常)

有群友抛出类似以下代码和运行效果截图&#xff1a; import QtQuick import QtQuick.ControlsWindow {width: 640height: 480visible: truetitle: qsTr("Hello World")Button{anchors.centerIn: parentwidth: 100height: 40background: Rectangle {color: "red…...

多项式插值(数值计算方法)Matlab实现

多项式插值&#xff08;数值计算方法&#xff09;Matlab实现 一. 原理介绍二. 程序设计1. 构建矩阵2. 求解矩阵方程3. 作出多项式函数4. 绘制插值曲线5. 完整代码 三. 图例 一. 原理介绍 关于插值的定义及基本原理可以参照如下索引 插值原理&#xff08;数值计算方法&#xff…...

【AIGC】语言模型的发展历程:从统计方法到大规模预训练模型的演化

博客主页&#xff1a; [小ᶻ☡꙳ᵃⁱᵍᶜ꙳] 本文专栏: AIGC | ChatGPT 文章目录 &#x1f4af;前言&#x1f4af;语言模型的发展历程&#xff1a;从统计方法到大规模预训练模型的演化1 统计语言模型&#xff08;Statistical Language Model, SLM&#xff09;&#xff1a;统…...

[python]如何安装whl包并解决依赖关系(详细)

一、什么是whl文件&#xff1f; whl是一种预编译的二进制包文件&#xff0c;它主要用于安装python库。简单来讲whl就是一种已经编译好的python库文件。我们可以使用whl包来安装python库。 二、我们为什么需要使用whl文件来安装python库&#xff1f; 有的小伙伴可能会疑惑&…...

Windows中使用Docker安装Anythingllm,基于deepseek构建自己的本地知识库问答大模型,可局域网内多用户访问、离线运行

文章目录 Windows中使用Docker安装Anythingllm&#xff0c;基于deepseek构建自己的知识库问答大模型1. 安装 Docker Desktop2. 使用Docker拉取Anythingllm镜像2. 设置 STORAGE_LOCATION 路径3. 创建存储目录和 .env 文件.env 文件的作用关键配置项 4. 运行 Docker 命令docker r…...

用Kibana实现Elasticsearch索引的增删改查:实战指南

在大数据时代&#xff0c;Elasticsearch&#xff08;简称 ES&#xff09;和 Kibana 作为强大的数据搜索与可视化工具&#xff0c;受到了众多开发者的青睐。Kibana 提供了一个直观的界面&#xff0c;可以方便地对 Elasticsearch 中的数据进行操作。本文将详细介绍如何使用 Kiban…...

AI前端开发的国际化发展机遇:ScriptEcho助力全球化布局

在全球化的今天&#xff0c;互联网应用已不再局限于单一市场。高效便捷的前端开发方案成为企业拓展国际市场的关键。得益于人工智能技术的飞速发展&#xff0c;AI代码生成器 正在深刻改变前端开发模式&#xff0c;为国际化应用开发带来前所未有的机遇。然而&#xff0c;国际化开…...

本地基于GGUF部署的DeepSeek实现轻量级调优之一:提示工程(Prompt Engineering)(完整详细教程)

前文&#xff0c;我们在本地windows电脑基于GGUF文件&#xff0c;部署了DeepSeek-1.5B模型&#xff0c;如果想自行对模型进行训练&#xff0c;离线模式下加载本地的DeepSeek模型进行训练时&#xff0c;是不能直接使用GGUF文件进行训练。 请参照我的文章在本地部署好模型之后再继…...

基于 GEE 计算研究区年均地表温度数据

目录 1 代码解析 2 完整代码 3 运行结果 1 代码解析 &#xff08;1&#xff09;定义研究区&#xff1a; // 研究区的范围需要自己提前上传 var dataset table;// 将研究区显示在中心&#xff0c;后面的数字为缩放等级&#xff0c;范围从1 - 24 Map.centerObject(dataset,…...

编程语言的深度剖析:从语法到性能优化

引言 随着软件开发的不断进化&#xff0c;编程语言的选择对项目的成功与否具有关键影响。今天的开发者面临着丰富多样的编程语言选择&#xff1a;每一种语言都有独特的优势、特性和适用场景。然而&#xff0c;语言的设计理念、运行机制和优化技巧背后的技术细节却常常被忽视。本…...

设计模式-结构型-外观模式

在软件开发中&#xff0c;随着功能的不断迭代&#xff0c;系统会变得越来越复杂&#xff0c;模块之间的依赖关系也会越来越深。这种复杂性会导致代码难以理解、维护和扩展。而外观模式&#xff08;Facade Pattern&#xff09;正是为了解决这一问题而生的。 一、外观模式简介 …...

uniapp中对于文件和文件夹的处理,内存的查询

目录 移动文件到指定文件夹 新增本地文件夹 设定本地文件过期时间&#xff0c;清除超时文件&#xff0c;释放内存 操作本地文件之----删除 uniapp获取设备剩余存储空间的方法 读取本地文件夹下的文件 移动文件到指定文件夹 function moveTempFile(tempFilePath, targetFo…...

计算机网络和操作系统常见面试题目(带脑图,做了延伸以防面试官深入提问)

呜哦~~(✪▽✪)曼波~~~~ 今天我们来聊聊计算机网络和操作系统的面试题目吧&#xff01;这些题目是面试中经常遇到的&#xff0c;曼波觉得掌握它们对面试非常有帮助哦&#xff01;(๑✧◡✧๑) --- 1. 计算机网络面试题目 1.1 OSI 七层模型是什么&#xff1f; 回答&#xff…...

C++ Primer 条件语句

欢迎阅读我的 【CPrimer】专栏 专栏简介&#xff1a;本专栏主要面向C初学者&#xff0c;解释C的一些基本概念和基础语言特性&#xff0c;涉及C标准库的用法&#xff0c;面向对象特性&#xff0c;泛型特性高级用法。通过使用标准库中定义的抽象设施&#xff0c;使你更加适应高级…...

JAVA安全—Shiro反序列化DNS利用链CC利用链AES动态调试

前言 讲了FastJson反序列化的原理和利用链&#xff0c;今天讲一下Shiro的反序列化利用&#xff0c;这个也是目前比较热门的。 原生态反序列化 我们先来复习一下原生态的反序列化&#xff0c;之前也是讲过的&#xff0c;打开我们写过的serialization_demo。代码也很简单&…...

16.React学习笔记.React更新机制

一. 发生更新的时机以及顺序## image.png props/state改变render函数重新执行产生新的VDOM树新旧DOM树进行diff计算出差异进行更新更新到真实的DOM 二. React更新流程## React将最好的O(n^3)的tree比较算法优化为O(n)。 同层节点之间相互比较&#xff0c;不跨节点。不同类型的节…...

React使用 useImperativeHandle 自定义暴露给父组件的实例方法(包括依赖)

关键词 React useImperativeHandle 摘要 useImperativeHandle 是 React 提供的一个自定义 Hook&#xff0c;用于在函数组件中显式地暴露给父组件特定实例的方法。本文将介绍 useImperativeHandle 的基本用法、常见应用场景&#xff0c;以及如何处理其依赖项&#xff0c;以帮…...

Vue 过渡动画实现全解析:打造丝滑交互体验

Vue 过渡动画实现全解析&#xff1a;打造丝滑交互体验 在当今竞争激烈的 Web 开发领域&#xff0c;用户体验已成为衡量项目成功与否的关键指标。过渡动画作为提升用户体验的利器&#xff0c;能让应用的交互更加丝滑流畅&#xff0c;给用户带来愉悦的使用感受。在 Vue.js 框架中…...

从 0 开始本地部署 DeepSeek:详细步骤 + 避坑指南 + 构建可视化(安装在D盘)

个人主页&#xff1a;chian-ocean 前言&#xff1a; 随着人工智能技术的迅速发展&#xff0c;大语言模型在各个行业中得到了广泛应用。DeepSeek 作为一个新兴的 AI 公司&#xff0c;凭借其高效的 AI 模型和开源的优势&#xff0c;吸引了越来越多的开发者和企业关注。为了更好地…...

Render上后端部署Springboot + 前端Vue 问题及解决方案汇总

有一个 Vue 前端 和 Spring Boot 后端的动态网页游戏&#xff0c;当前在本地的 5173 端口和运行。你希望生成一个公开链接&#xff0c;让所有点击链接的人都能访问并玩这个游戏。由于游戏原本需要在本地执行 npm install 后才能启动&#xff0c;你现在想知道在部署时是选择 Ren…...

Linux——信号的保存与处理

前言&#xff1a;本文主要介绍信号的保存与处理过程。 一、信号阻塞与信号底层逻辑 在linux下面的进程控制块(PCB),存在一个pending变量用于存放接收到的信号&#xff0c;该变量有32位&#xff0c;变量的位代表信号的类别&#xff0c;变量的值代表是否收到信号。进程会根据该变…...

【deepseek-r1本地部署】

首先需要安装ollama,之前已经安装过了&#xff0c;这里不展示细节 在cmd中输入官网安装命令&#xff1a;ollama run deepseek-r1:32b&#xff0c;开始下载 出现success后&#xff0c;下载完成 接下来就可以使用了&#xff0c;不过是用cmd来运行使用 可以安装UI可视化界面&a…...

Docker Desktop Windows 安装

一、先下载Docker desktop WIndows 下载地址 二、安装 安装超简单 一路 下一步 三、安装之后&#xff0c;桌面会出现一个 小蓝鲸图标&#xff0c;打开它 》更新至最新版本&#xff0c;不然小蓝鲸打开&#xff0c;一会就退出了。 》wsl --update &#xff08;这个有时比较慢…...

pytorch环境已安装库汇总

简略版总计&#xff1a;python pytorch nb_conda&#xff08;Jupyter Notebook的插件&#xff09; 创建环境conda create -n pytorch python3.8 conda install nb_conda命令...

基于Django以及vue的电子商城系统设计与实现

基于Django以及vue的电子商城系统设计与实现 引言 随着电子商务的快速发展&#xff0c;越来越多的企业和个人选择搭建线上商城&#xff0c;以提供更加便捷的购物体验。本文基于Python开发了一套电子商城系统&#xff0c;后端采用Django框架&#xff0c;前端使用Vue.js&#x…...

Spring Boot + ShardingSphere 踩坑记

最近在准备秋招&#xff0c;偷了个轮子项目之后想改个分表&#xff0c;于是有了这篇文章。 省流&#xff1a;请使用shardingsphere-jdbc 5.5.2&#xff0c;并根据官方5.5.2版本文档进行配置&#xff0c;不要使用starter。此外&#xff0c;如果希望使用INTERVAL分片算法&#x…...

【算法学习】DFS与BFS

目录 一&#xff0c;深度优先搜索 1&#xff0c;DFS 2&#xff0c;图的DFS遍历 (1)&#xff0c;递归实现&#xff08;隐士栈&#xff09; (2)&#xff0c;显示栈实现&#xff08;非递归&#xff09; 二&#xff0c;广度优先搜索 1&#xff0c;BFS 2&#xff0c;图的BF…...

从零到一:开发并上线一款极简记账本小程序的完整流程

从零到一&#xff1a;开发并上线一款极简记账本小程序的完整流程 目录 前言需求分析与功能设计 2.1 目标用户分析2.2 核心功能设计2.3 技术栈选择 开发环境搭建 3.1 微信开发者工具安装与配置3.2 项目初始化3.3 版本控制与协作工具 前端开发 4.1 页面结构与布局4.2 组件化开发…...

centos安装Nexus Repository OSS(Maven私服)

1. 下载链接&#xff1a;https://help.sonatype.com/en/download.html 2. 注意页面下载页面中的要求&#xff1a;JDK17&#xff08;启动时提示最低JDK1.8最高JDK17&#xff0c;但是使用JDK1.8无法正常启动&#xff09; 3. mkdir /opt/nexus 将压缩包上传到该目录并解压。 tar …...

Unity使用iTextSharp导出PDF-02基础结构及设置中文字体

基础结构 1.创建一个Document对象 2.使用PdfWriter创建PDF文档 3.打开文档 4.添加内容&#xff0c;调用文档Add方法添加内容时&#xff0c;内容写入到输出流中 5.关闭文档 using UnityEngine; using iTextSharp.text; using System.IO; using iTextSharp.text.pdf; using Sys…...

CSS 属性选择器详解与实战示例

CSS 属性选择器是 CSS 中非常强大且灵活的一类选择器&#xff0c;它能够根据 HTML 元素的属性和值来进行精准选中。在实际开发过程中&#xff0c;属性选择器不仅可以提高代码的可维护性&#xff0c;而且能够大大优化页面的样式控制。本文将结合菜鸟教程的示例&#xff0c;从基础…...

【漫话机器学习系列】088.常见的输出层激活函数(Common Output Layer Activation Functions)

在神经网络中&#xff0c;输出层&#xff08;Output Layer&#xff09; 的激活函数&#xff08;Activation Function&#xff09;直接决定了模型的输出形式&#xff0c;并影响损失函数的选择及训练效果。不同的任务类型&#xff08;如分类或回归&#xff09;需要使用不同的激活…...

STM32 HAL库 UART通讯(C语言)

1、使能UART时钟和GPIO时钟(以USART1为例): __HAL_RCC_USART1_CLK_ENABLE(); // 使能USART1时钟 __HAL_RCC_GPIOA_CLK_ENABLE(); // 使能GPIOA时钟(假设使用PA9/TX, PA10/RX) 2、GPIO配置: GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitStruct.P…...

【经验分享】Linux 系统安装后内核参数优化

在 Linux 系统安装后&#xff0c;进行内核优化有助于提升系统的性能、稳定性和安全性。以下是一些常见的内核优化操作&#xff1a; 修改/etc/sysctl.conf 文件 执行sysctl -p使配置生效。 kernel.shmmax 135185569792 kernel.shmall 4294967296 fs.aio-max-nr 3145728 fs.fi…...

【AI大模型】Ollama部署本地大模型DeepSeek-R1,交互界面Open-WebUI,RagFlow构建私有知识库

文章目录 DeepSeek介绍公司背景核心技术产品与服务应用场景优势与特点访问与体验各个DeepSeek-R系列模型的硬件需求和适用场景 Ollama主要特点优势应用场景安装和使用配置环境变量总结 安装open-webui下载和安装docker desktop配置镜像源安装open-webui运行和使用 RagFlow介绍主…...

【Java进阶打卡】JDBC-JDBC快速入门

【Java进阶打卡】JDBC-JDBC快速入门 概述快速入门 概述 快速入门 package com.itheima01;import java.sql.*;public class JDBC01 {public static void main(String[] args) throws ClassNotFoundException, SQLException {// 导入jar包 项目文件下面 创建libs文件夹 该ja…...

CEF132 编译指南 MacOS 篇 - depot_tools 安装与配置 (四)

1. 引言 在 CEF132&#xff08;Chromium Embedded Framework&#xff09;的编译过程中&#xff0c;depot_tools 扮演着举足轻重的角色。这套由 Chromium 项目精心打造的脚本和工具集&#xff0c;专门用于获取、管理和更新 Chromium 及其相关项目&#xff08;包括 CEF&#xff…...

缓存机制与 Redis 在高性能系统中的应用

引言 随着互联网应用日益增长&#xff0c;用户对系统的响应速度和稳定性提出了更高的要求。在高并发、大流量的场景下&#xff0c;数据库的读取压力会急剧上升&#xff0c;导致数据库的响应速度变慢&#xff0c;甚至引发性能瓶颈。为了缓解这一问题&#xff0c;缓存机制成为了…...

WinForm 防破解、反编译设计文档

一、引言 1.1 文档目的 本设计文档旨在阐述 WinForm 应用程序防破解、反编译的设计方案&#xff0c;为开发团队提供详细的技术指导&#xff0c;确保软件的知识产权和商业利益得到有效保护。 1.2 背景 随着软件行业的发展&#xff0c;软件破解和反编译现象日益严重。WinForm…...

晶闸管主要参数分析与损耗计算

1. 主要参数 断态正向可重复峰值电压 :是晶闸管在不损坏的情况下能够承受的正向最大阻断电压。断态正向不可重复峰值电压 :是晶闸管只有一次可以超过的正向最大阻断电压,一旦晶闸管超过此值就会损坏,一般情况下 反向可重复峰值电压 :是指晶闸管在不损坏的情况下能够承受的…...

基于Python的人工智能驱动基因组变异算法:设计与应用(上)

一、引言 1.1 研究目标与内容 本研究旨在设计并应用基于 Python 的人工智能驱动的基因组变异算法,以应对基因组学研究中日益增长的数据挑战,提高对基因组变异的理解和应用能力。主要研究内容包括: 数据预处理:利用 Python 的 Biopython、pandas 等库,对来自公共数据库(…...

自己部署DeepSeek 助力 Vue 开发:打造丝滑的标签页(Tabs)

前言&#xff1a;哈喽&#xff0c;大家好&#xff0c;今天给大家分享一篇文章&#xff01;并提供具体代码帮助大家深入理解&#xff0c;彻底掌握&#xff01;创作不易&#xff0c;如果能帮助到大家或者给大家一些灵感和启发&#xff0c;欢迎收藏关注哦 &#x1f495; 目录 自己…...