大連做網(wǎng)站需要多少錢競價(jià)托管選擇微競價(jià)
一、 環(huán)境準(zhǔn)備
? ? ? ? 1. 阿里云服務(wù)器,ubuntu22系統(tǒng)
? ? ? ? 2. 外網(wǎng)服務(wù)器,linux系統(tǒng)
? ? ? ? 3. openai API Key
二、實(shí)際操作記錄(阿里云服務(wù)器端)
? ? ? ? 1. 根據(jù)官方文檔安裝open-webui服務(wù)端:
????????????????🚀 Getting Started | Open WebUI
? ? ? ? ? ? ? ? 1. 如果服務(wù)器配置比較低,可以增加swap分區(qū)容量:
Linux實(shí)例SWAP分區(qū)的配置和常見問題如何處理-阿里云幫助中心_(ECS)-阿里云幫助中心
? ? ? ? ? ? ? ? 2. 如果執(zhí)行 "npm run build" 時(shí)遇到下面情況:
<--- JS stacktrace --->FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----1: 0xb82d33 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]2: 0xef0c50 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]3: 0xef0f37 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]4: 0x1102ad5 [node]5: 0x111a958 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]6: 0x10f0a71 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]7: 0x10f1c05 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]8: 0x10cf256 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]9: 0x152b231 v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
10: 0x1964ef6 [node]
Aborted (core dumped)
? ? ? ? ? ? ? ? 需要執(zhí)行(根據(jù)自己的內(nèi)存調(diào)整后面的數(shù)值):
export NODE_OPTIONS="--max-old-space-size=4096"
????????????????