mongodb启动参数
mongodb启动参数 General options: 一般选项 -h [ --help ] show this usage information 显示此用法信息 --version show version information 显示版本信息 -f [ --config ] arg configuration file specifying additional options 参数配置文件中指定的其
mongodb启动参数
General options:
一般选项
-h [ --help ] show this usage information
显示此用法信息
--version show version information
显示版本信息
-f [ --config ] arg configuration file specifying additional options
参数配置文件中指定的其他选项 www.2cto.com
-v [ --verbose ] be more verbose (include multiple times for more verbosity e.g. -vvvvv)
更详细的(包括多次获得更多的详细程度,比如 -vvvvv)
--quiet quieter output
安静输出
--port arg specify port number
参数指定的端口号
--bind_ip arg comma separated list of ip addresses to listen on - all local ips by default
用逗号分隔的列表中的用于侦听的IP地址 - 默认情况下所有本地IP
--maxConns arg max number of simultaneous connections
最大同时连接数
--logpath arg log file to send write to instead of stdout - has to be a file, not directory
代替stdout的日志文件 - 是一个文件,而不是目录
--logappend append to logpath instead of over-writing
追加方式写入日志,而不是覆盖掉以前的
--pidfilepath arg full path to pidfile (if not set, no pidfile is created)
pid文件的完整路径(如果没有设置,不创建pid文件)
--keyFile arg private key for cluster authentication (only for replica sets)
集群认证的私钥(仅对副本集有效)
--unixSocketPrefix arg alternative directory for UNIX domain sockets (defaults to /tmp)
替代UNIX域套接字的目录(默认是/tmp目录)
--fork fork server process
创建一个服务器进程的方式启动
--auth run with security
安全模式下运行
--cpu periodically show cpu and iowait utilization
定期显示CPU和iowait利用率 www.2cto.com
--dbpath arg directory for datafiles
数据文件目录
--diaglog arg 0=off 1=W 2=R 3=both 7=W+some reads
--directoryperdb each database will be stored in a separate directory
每个数据库将被存储在一个单独的目录
--journal enable journaling
允许调试
--journalOptions arg journal diagnostic options
调试诊断选项
--ipv6 enable IPv6 support (disabled by default)
启用IPv6的支持(默认情况下禁用)
--jsonp allow JSONP access via http (has security implications)
允许JSONP通过HTTP访问(有安全隐患)
--noauth run without security
非安全模式下运行
--nohttpinterface disable http interface
禁用HTTP接口
--noprealloc disable data file preallocation - will often hurt performance
禁用数据文件的预分配 - 往往会损害性能
--noscripting disable scripting engine www.2cto.com
禁用脚本引擎
--notablescan do not allow table scans
不允许表扫描
--nounixsocket disable listening on unix sockets
禁用监听Unix套接字
--nssize arg (=16) .ns file size (in MB) for new databases
新的数据库的.ns文件的大小(单位:MB).
--objcheck inspect client data for validity on receipt
收到客户端的数据后的有效性检查
--profile arg 0=off 1=slow, 2=all
--quota limits each database to a certain number of files (8 default)
为每个数据库文件数量做限制(默认值8)
--quotaFiles arg number of files allower per db, requires --quota
每个数据库文件限制的数量,需要--quota参数
--rest turn on simple rest api
打开其余简单的API www.2cto.com
--repair run repair on all dbs
启动时修复所有数据库
--repairpath arg root directory for repair files - defaults to dbpath
修复文件的根目录 - 默认取自--dbpath参数
--slowms arg (=100) value of slow for profile and console log
到profile和终端的日志延迟毫秒数
--smallfiles use a smaller default file size
使用一个较小的默认文件大小
--syncdelay arg (=60) seconds between disk syncs (0=never, but not recommended)
同步到磁盘的间隔秒数(默认:60秒)(0=从不,但不推荐)
--sysinfo print some diagnostic system information
打印一些诊断系统信息
--upgrade upgrade db if needed
升级DB,如果需要的话
Replication options:
复制选项
--fastsync indicate that this instance is starting from a dbpath snapshot of the repl peer
表明,这个实例是从一个REPL同行DBPATH快照开始
--autoresync automatically resync if slave data is stale
如果从结点的数据是陈旧的就自动重新同步
--oplogSize arg size limit (in MB) for op log
操作日志的大小(单位:MB)
Master/slave options:
主/从选项 www.2cto.com
--master master mode
主模式
--slave slave mode
从模式
--source arg when slave: specify master as
当为从结点时:指定主结点的位置
--only arg when slave: specify a single database to replicate
当为从结点时:指定需要复制的数据库,不是全面都复制
--slavedelay arg specify delay (in seconds) to be used when applying master ops to slave
指定从节点同步主节点oplog的延迟(单位:秒)
Replica set options:
副本设置的选项
--replSet arg arg is
Sharding options:
分片选项 www.2cto.com
--configsvr declare this is a config db of a cluster; default port 27019; default dir /data/configdb
声明这是一个集群的配置服务器;默认端口 27019;默认目录 /data/configdb
--shardsvr declare this is a shard db of a cluster; default port 27018
声明这是一个集群的分片服务器;默认端口: 27018
--noMoveParanoia turn off paranoid saving of data for moveChunk. this is on by default for now, but default will switch

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

AI Hentai Generator
AI Hentai를 무료로 생성하십시오.

인기 기사

뜨거운 도구

메모장++7.3.1
사용하기 쉬운 무료 코드 편집기

SublimeText3 중국어 버전
중국어 버전, 사용하기 매우 쉽습니다.

스튜디오 13.0.1 보내기
강력한 PHP 통합 개발 환경

드림위버 CS6
시각적 웹 개발 도구

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

뜨거운 주제









최신 기능과 개선 사항을 제공하는 최신 버전의 MongoDB(현재 5.0) 사용을 권장합니다. 버전을 선택할 때 기능 요구 사항, 호환성, 안정성 및 커뮤니티 지원을 고려해야 합니다. 예를 들어 최신 버전에는 트랜잭션 및 집계 파이프라인 최적화와 같은 기능이 있습니다. 버전이 애플리케이션과 호환되는지 확인하세요. 프로덕션 환경의 경우 장기 지원 버전을 선택하세요. 최신 버전에는 더욱 활발한 커뮤니티 지원이 포함되어 있습니다.

Node.js는 서버측 JavaScript 런타임인 반면, Vue.js는 대화형 사용자 인터페이스를 생성하기 위한 클라이언트측 JavaScript 프레임워크입니다. Node.js는 백엔드 서비스 API 개발, 데이터 처리 등 서버 측 개발에 사용되고, Vue.js는 단일 페이지 애플리케이션, 반응형 사용자 인터페이스 등 클라이언트 측 개발에 사용됩니다.

MongoDB 데이터베이스의 데이터는 로컬 파일 시스템, 네트워크 파일 시스템 또는 클라우드 스토리지에 있는 지정된 데이터 디렉터리에 저장됩니다. 구체적인 위치는 다음과 같습니다. 로컬 파일 시스템: 기본 경로는 Linux/macOS입니다. /데이터/db, Windows: C:\data\db. 네트워크 파일 시스템: 경로는 파일 시스템에 따라 다릅니다. 클라우드 스토리지: 경로는 클라우드 스토리지 제공업체에 의해 결정됩니다.

MongoDB 데이터베이스는 유연성, 확장성 및 고성능으로 잘 알려져 있습니다. 그 장점은 다음과 같습니다: 데이터를 유연하고 구조화되지 않은 방식으로 저장할 수 있는 문서 데이터 모델입니다. 샤딩을 통해 여러 서버로 수평 확장이 가능합니다. 쿼리 유연성, 복잡한 쿼리 및 집계 작업을 지원합니다. 데이터 복제 및 내결함성은 데이터 중복성과 고가용성을 보장합니다. 프런트엔드 애플리케이션과의 손쉬운 통합을 위한 JSON 지원. 많은 양의 데이터를 처리하는 경우에도 빠른 응답을 위한 고성능입니다. 오픈 소스이며 사용자 정의가 가능하고 무료로 사용할 수 있습니다.

C++ 매개변수 유형 안전성 검사는 함수가 컴파일 시간 검사, 런타임 검사 및 정적 어설션을 통해 예상된 유형의 값만 허용하도록 보장하여 예기치 않은 동작 및 프로그램 충돌을 방지합니다. 컴파일 시간 유형 검사: 컴파일러가 유형 호환성을 검사합니다. 런타임 유형 검사: 동적_캐스트를 사용하여 유형 호환성을 확인하고 일치하는 항목이 없으면 예외를 발생시킵니다. 정적 어설션: 컴파일 타임에 유형 조건을 어설션합니다.

MongoDB는 대량의 정형 및 비정형 데이터를 저장하고 관리하는 데 사용되는 문서 중심의 분산 데이터베이스 시스템입니다. 핵심 개념은 문서 저장 및 배포이며 주요 기능으로는 동적 스키마, 인덱싱, 집계, 맵 축소 및 복제가 있습니다. 콘텐츠 관리 시스템, 전자상거래 플랫폼, 소셜 미디어 웹사이트, IoT 애플리케이션, 모바일 애플리케이션 개발에 널리 사용됩니다.

Linux/macOS: 데이터 디렉터리를 생성하고 "mongod" 서비스를 시작합니다. Windows의 경우: 데이터 디렉터리를 만들고 Service Manager에서 MongoDB 서비스를 시작합니다. Docker에서: "docker run" 명령을 실행하십시오. 다른 플랫폼: MongoDB 설명서를 참조하세요. 확인 방법: "mongo" 명령을 실행하여 연결하고 서버 버전을 확인하세요.

MongoDB 데이터베이스 파일은 MongoDB 데이터 디렉터리에 위치하며 기본적으로 /data/db이며, 여기에는 .bson(문서 데이터), ns(수집 정보), Journal(쓰기 작업 기록), wiredTiger(WiredTiger 사용 시 데이터)가 포함됩니다. 스토리지 엔진) 및 config(데이터베이스 구성 정보) 및 기타 파일입니다.
