<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/tag/nosql/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Tue, 14 Apr 2026 23:59:34 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>Docker Compose 的基本使用方式</title><link>https://magiclen.org/docker-compose</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2022/05/docker-compose-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/05/docker-compose-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/05/docker-compose-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/05/docker-compose-660x486.png 3x" alt="">
一個服務或是一個應用程式可能會需要依賴其它的一個或多個服務才能正常執行，所以為了省下Docker容器得一個一個按照順序用指令開起來的麻煩以及減少在這個過程中發生錯誤的機率，Docker Compose允許把這些相關聯的容器撰寫在一個設定檔案內，只要經過一個簡單的指令就可以一同啟動或是停止。]]></description><category>研究分享</category><category>網路相關</category><category>軟體介紹</category><category>JavaScript</category><category>Linux</category><category>NoSQL</category><category>資料庫</category><category>Docker</category><category>MongoDB</category><category>TypeScript</category><category>syslog</category><category>虛擬化</category><guid>https://magiclen.org/docker-compose</guid><pubDate>Thu, 30 Jun 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>使用Ubuntu Server架設Redis伺服器，並於PHP程式中存取Redis資料庫</title><link>https://magiclen.org/ubuntu-server-redis-php</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2020/10/shot-16-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2020/10/shot-16-220x162.png 1x, https://magiclen.org/wp-content/uploads/2020/10/shot-16-440x324.png 2x, https://magiclen.org/wp-content/uploads/2020/10/shot-16-660x486.png 3x" alt="">
Redis是一個開源的NoSQL資料庫，以一個key對應一個value的方式並配合記憶體(RAM)來儲存資料，效能要比關聯式資料庫還要好很多，可以在許多程式語言上使用。Redis的value除了字串(string)型態之外，另外還有幾種比較特殊的結構，包括set、zset、list和hash，並提供了多種方式來操作這些欄位。]]></description><category>研究分享</category><category>網路相關</category><category>Linux</category><category>Linux</category><category>NoSQL</category><category>phpRedisAdmin</category><category>Redis</category><category>Ubuntu</category><category>Ubuntu Server</category><category>資料庫</category><category>ss (指令)</category><category>curl</category><guid>https://magiclen.org/ubuntu-server-redis-php</guid><pubDate>Thu, 22 Oct 2020 12:00:24 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何連線到遠端的Linux + MongoDB伺服器？</title><link>https://magiclen.org/mongodb-remote</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2020/03/shot-02-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2020/03/shot-02-220x162.png 1x, https://magiclen.org/wp-content/uploads/2020/03/shot-02-440x324.png 2x, https://magiclen.org/wp-content/uploads/2020/03/shot-02-660x486.png 3x" alt="">
MongoDB預設並不允許遠端裝置的連線，而為了要能夠讓它允許遠端連線，就必須要進行一些額外的設定。]]></description><category>研究分享</category><category>網路相關</category><category>Linux</category><category>Linux</category><category>NoSQL</category><category>資料庫</category><category>MongoDB</category><category>ss (指令)</category><guid>https://magiclen.org/mongodb-remote</guid><pubDate>Tue, 7 Apr 2020 12:00:55 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用Rocket框架來回應並下載MongoDB的檔案中心裡的檔案？</title><link>https://magiclen.org/rocket-mongo-file-center-download-response</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
在先前的文章中，我們介紹了能讓Rocket框架直接回應MongoDB檔案中心裡的檔案的方法。如果想要讓網頁瀏覽器在收到伺服器傳來的檔案資料時，將其下載成檔案的話，可以參考這篇文章。]]></description><category>Rust</category><category>NoSQL</category><category>資料庫</category><category>Rust</category><category>Rocket</category><category>MongoDB</category><category>mongo-file-center</category><category>rocket-mongo-file-center-download-response</category><guid>https://magiclen.org/rocket-mongo-file-center-download-response</guid><pubDate>Sun, 25 Aug 2019 04:00:29 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用Rocket框架來回應MongoDB的檔案中心裡的檔案？</title><link>https://magiclen.org/rocket-mongo-file-center-raw-response</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
在先前的文章中，有介紹過用Rust程式語言搭配MongoDB來儲存檔案的方式，那麼要如何將其應用到Rocket框架中，使Rocket框架能夠回應檔案中心儲存的資料呢？]]></description><category>Rust</category><category>NoSQL</category><category>資料庫</category><category>Rust</category><category>Rocket</category><category>MongoDB</category><category>mongo-file-center</category><category>rocket-mongo-file-center-raw-response</category><guid>https://magiclen.org/rocket-mongo-file-center-raw-response</guid><pubDate>Thu, 22 Aug 2019 20:00:37 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>Rocket入門指南 第十章：資料庫的存取</title><link>https://magiclen.org/rocket-database</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
Web框架常會搭配資料庫一起使用，Rocket框架當然也有一定程度的資料庫支援。雖然我們可以直接使用Rocket框架提供的應用程式狀態機制來註冊任意套件提供的資料庫實體，但是在程式撰寫上會比較麻煩一點，像是資料庫的位址、帳密等資訊，我們可能就必須要寫死在程式碼內，或是自己再另外開發出可以讓Rocket框架從外部讀取資料庫設定值的功能。Rocket官方提供的「rocket_db_pools」套件，能...]]></description><category>研究分享</category><category>Rust</category><category>MySQL</category><category>NoSQL</category><category>SQL</category><category>資料庫</category><category>Rust</category><category>Rocket</category><category>MongoDB</category><category>Rocket入門指南</category><guid>https://magiclen.org/rocket-database</guid><pubDate>Tue, 23 Jul 2019 12:00:53 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何用Rust程式語言搭配MongoDB來儲存檔案？</title><link>https://magiclen.org/mongo-file-center</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
MongoDB是文件導向的資料庫，適合用來儲存無需複雜查詢的大量資料，也可以用來儲存檔案。未超過16793600位元組(約16MB)的BSON文件能直接存在一般的集合(collection)之中，如果將檔案放進BSON文件中且沒有超過大小限制的話，則檔案可以直接存進一般的集合；如果文件會超過16793600位元組，也可以使用MongoDB提供的GridFS功能，自動將檔案切割成多個組塊(chunk...]]></description><category>Rust</category><category>NoSQL</category><category>資料庫</category><category>Rust</category><category>MongoDB</category><category>mongo-file-center</category><guid>https://magiclen.org/mongo-file-center</guid><pubDate>Mon, 29 Apr 2019 04:00:19 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>