gpt4 book ai didi

azure-cosmosdb - Mac 上的 Cosmos DB 模拟器安装

转载 作者:行者123 更新时间:2023-12-03 07:58:37 28 4
gpt4 key购买 nike

ipaddr="`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -n 1`"

docker pull mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator

docker run \
--publish 8081:8081 \
--publish 10250-10255:10250-10255 \
--memory 3g --cpus=2.0 \
--name=test-linux-emulator1 \
--env AZURE_COSMOS_EMULATOR_PARTITION_COUNT=10 \
--env AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true \
--env AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=$ipaddr \
--interactive \
--tty \
mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator

我按照这些步骤操作,但收到此错误

./cosmosdb-emulator: ERROR: Invalid mapping of address 0x40037db000 in reserved address space below 0x400000000000. Possible causes:
1) the process (itself, or via a wrapper) starts-up its own running environment sets the stack size limit to unlimited via syscall setrlimit(2);
2) the process (itself, or via a wrapper) adjusts its own execution domain and flag the system its legacy personality via syscall personality(2);
3) sysadmin deliberately sets the system to run on legacy VA layout mode by adjusting a sysctl knob vm.legacy_va_layout.

Mac芯片:Apple M1 Pro

最佳答案

来自official doc ,

The emulator only supports MacBooks with Intel processors.

模拟器不支持您使用的 Apple M1 Pro。

The MS team are more than aware of the growing extentof the problem that poses

关于azure-cosmosdb - Mac 上的 Cosmos DB 模拟器安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75191130/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com