進階搜尋
搜尋結果
找到了 578 個結果
MongoDB教育訓練-20211223-01
Hideden Replica Set Member 隱藏結點,不太使用(歷史,所有請求不會訪問) Delayed Replica Set Member 不太使用,先將資料取回不同步(延遲一段時間,保持舊資料,備援用) 如何知道主結點? Driver 告訴你 Driver 幫你追蹤網路架構,不需知道主從節點 為截點點打上標籤,通過driver,告訴你 Driver 版本匹配 Oplog 會紀錄所有變更,增刪改查 節點從最近節點複製 我...
MongoDB教育訓練-20211223-02
資料先寫入記憶體 , checkpoint => 一分鐘( or 資料到達大小) 髒數據寫入DB journal log 60ms 寫入 db db 最多錯失60 ms 資料 "OK - committed" => 寫到哪裡? write concerns 決定 資料遺失的時候?我會知曉? knowingly log => 已知的寫入失敗 unknowingly log => 未知的寫入失敗 當資訊不同步,server 必須 rollback 確保資訊一致 =...
MongoDB教育訓練-20211223-03
vertical scaling 垂直擴展(升級到某個程度,會很貴並有極限) horizontal sacling 水平擴展 (比較省成本) 沒有一定要shard(如果資料不多不需要,管理複雜度高) why learn about sharding now? you might not need to shard for years but decisions you make about schema design befoe that matter start planning ...
MongoDB教育訓練-20211223-04-關於安全
對稱加密 && 非對稱加密
PHP_使用curl 上傳資料
client shell # curl 上傳資料 # {file} : 可更改,$_file 的key就會不同 # curl -X POST -F "{file}=@{檔案路徑}" {api url} curl -X POST -F "file=@/tmp/sms_count.csv" http://192.168.1.1/api/v1/SMS/UploadSmsCount server 端 php // 取得$_file 資料 // $file Array ( [file] ...
Docker安裝
Centos Docker Engine on CentOS | Docker Documentation sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-lates...
Docker Image 相關
鏡像的獲取 pull from registry (online) 從registry拉取 public(公有) private(私有) build from Dockerfile (online) 從Dockerfile構建 load from file (offline) 文件導入 (離線) 官方image:https://hub.docker.com/search?type=image&image_filter=official 常用 public ima...
Docker Image Server DockerRegistry
Day7:建立 private 的 Docker Registry - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天 (ithome.com.tw) $ docker run -d -p 5000:5000 -v /home/user1/storage:/var/lib/registry --name registry registry:2 # # -d:執行的 docker container 是 run 在背景的狀態,所以需要使用 docker logs 的指令才可以看到 log 狀態...
Maven相關
Mave教學 | Maven 初學者中文教程 (kentyeh.github.io) 使用 Docker 執行 Maven - mvn compile (puritys.me) FROM openjdk:8-jdk ARG MAVEN_VERSION=3.3.9 ARG USER_HOME_DIR="/root" RUN apt-get update RUN apt-get install build-essential -y RUN ln -sf /usr/bin/make /usr/b...
【上課筆記】【hiskio】Docker 完全實作!結合 3 大語言掌握容器實務應用
上課講義 Docker 完全實作 – Dropbox Paper nocopy : 存在檔案不覆蓋 Docker 完全實作 讓我們先複習一下 Docker 的安裝 Windows 上的 Docker 環境建置 https://docs.docker.com/desktop/windows/install/ 什麼是WSL? 適用於 Linux 的 Windows 子系統可讓開發人員執行 GNU/Linux 環境 (包括大部分的命令列工具、公用程式和應用程式),直接在 Wi...
YAML 簡介
YAML 格式中,含有一個到多個 節點 (node),每個節點必定是 純量 (Scalar)、序列 (Sequence)、映射(Mapping)資料 其中一種。 純量 (scalar) 運用零個或多個 Unicode 字元,以表示 自定義資料 (opaque datum)。說白一點,就是將最基本的、不可再分的值,全部使用文字來描述。 序列 (sequence) 有順序的節點清單。清單內容,不限制節點的類型。以破折號( “- ”),表示該行資料為序列。 - 20 - 'Two' -...
Docker Compose
安裝 Install Docker Compose | Docker Documentation # linux # 到這裡找版號 https://github.com/docker/compose/releases # sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose $ sudo cu...
Docker 儲存
--mount 與 -v/ --volume 當在使用 docker create 或是 docker run 的指令時,會有兩個選項可以使用,個別是 --mount 以及 -v (或是 --volume)。 注意,千萬不要誤以為使用 -v 就是用 Volume 的方式或者是 --mount 就是使用 Bind Mount 的方式,不是這樣的!!我們先來看看這兩個在 docker create 與 docker run 中的說明是甚麼: -v, --volume list Bind mount ...
Docker Network
建立兩容器 $ docker container run -d --rm --name box1 busybox /bin/sh -c "while true; do sleep 3600; done" $ docker container run -d --rm --name box2 busybox /bin/sh -c "while true; do sleep 3600; done" $ docker container ls CONTAINER ID IMAGE COMMAND...
Laravel 解決在 CentOS 7 下 log 檔無法寫入的問題
在 config/logging.php 'permission' => 0775, 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 7, 'permission' => 0775, ], 在非 homestead 的主機上執行 l...
Docker 相關連結
docker 測試環境(play with docker) Play with Docker (play-with-docker.com) 【上課講義】【udemy】 Docker容器技术从入门到精通 https://www.docker.tips Vagrant入门系列 - YouTube 【上課講義】【hiskio】Docker 完全實作!結合 3 大語言掌握容器實務應用 Docker 完全實作 – Dropbox Paper 【鐵人賽】用30天來介紹和使用 Docker 用30天來介紹...
Docker File
Docker File 官方說明 Dockerfile reference | Docker Documentation 官方各類型docker file 專案連結(可找到專案git repo) official-images/library at master · docker-library/official-images · GitHub Build Dockerfile # docker image build -t {name}:{tag} {dokerfile 目錄} docker im...
Nginx 反向代理
server { listen 80; listen [::]:80; server_name www.srou.com; access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; # proxy_pass http://10.2.99.14:8081; inde...