跳到主內容

最近更新的頁面

【Linux】帳號管理

【Treeman】Linux

新增/刪除帳號 # -u 自訂UID # -g 加入某群組,可使用GID, 或是群組名 # -d 自定使用的家目錄 # -M 不建立家目錄 # -s 自訂shell # 新增帳號(包...

由 treeman 更新於 9 個月前

【Linux】記憶體相關

【Treeman】Linux

https://huenlil.pixnet.net/blog/post/26822270 釋放記憶體 echo 1 > /proc/sys/vm/drop_cache 釋放dentrie...

由 treeman 更新於 9 個月前

【crontab】排程相關

【Treeman】Linux

使用nginx 設定排程 sudo su -c "crontab -e" nginx -s /bin/bash  

由 treeman 更新於 9 個月前

【vim】快速鍵

【Treeman】Linux

1. vi 編輯器中跳到檔案的第一行:    a  輸入 :0 或者 :1   回車    b  鍵盤按下 小寫 gg 2.vi 編輯器跳到檔案最後一行:    a 輸入 :$   回車...

由 treeman 更新於 9 個月前

【Linux】時區設定

【Treeman】Linux

Centos7 timedatectl set-timezone Asia/Taipei

由 treeman 更新於 9 個月前

【Linux】載入順序

【Treeman】Linux

https://blog.miniasp.com/post/2021/07/26/Bash-and-Zsh-Initialization-Files 這張圖的第一層 Interacti...

由 treeman 更新於 9 個月前

【更新】Centos 7已於2024年6月30日停止維護,更換yum源解決yum404問題

【Treeman】Linux

  mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup mv /etc/yum.rep...

由 treeman 更新於 9 個月前

【Linux】DNS 相關

【Treeman】Linux

如何知道本機dns server 設定在哪 # 查詢/etc/resolv.conf cat /etc/resolv.conf # ip 出現 類似nameserver 127.0...

由 treeman 更新於 9 個月前

【Linux】Dns 動態解析

【Treeman】Linux

若想實現同一個 DNS Server 根據不同來源 IP 返回不同的結果,這在 DNS 中稱為視圖(View)或基於來源的策略解析,以下是詳細實現方式。 使用 Bind 實現(最佳選擇) B...

由 treeman 更新於 9 個月前

【Linux】【權限管理】【acl】設定/var/www/html for tomcat 可讀寫

【Treeman】Linux

以下是如何在 Ubuntu 中設置這些 ACL 權限的步驟。 步驟 1:啟用 ACL 支持 如果 ACL 尚未啟用,請確保相關功能已經安裝並啟用: 安裝 ACL 工具: sudo apt...

由 treeman 更新於 9 個月前

【Linux】SSH 跳板機設定

【Treeman】Linux

如果你經常需要透過主機A跳到主機B進行操作,可以考慮以下幾種方法來提升效率: 1. SSH 跳板機設定 (ProxyJump 或 ProxyCommand) 你可以在 ~/.ssh/conf...

由 treeman 更新於 9 個月前

【Tool】tmux

【Treeman】Linux

📦 tmux 簡易說明 tmux(Terminal Multiplexer)是一個強大的終端複用工具,可以在單一終端視窗中同時管理多個工作階段(sessions)、視窗(windows)、與窗...

由 treeman 更新於 9 個月前

【GitLab】使用ssh clone 專案

【Treeman】Git相關 【GitLab】相關

以下是在 GitLab 使用 SSH 方式 clone 專案的完整步驟,假設你的 GitLab 伺服器是公司內部或自架的,也適用: 1️⃣ 產生並設定 SSH Key 建立 SSH Ke...

由 treeman 更新於 9 個月前

【Mac】固定網卡mac

【Treeman】總覽 Mac

隨機化 MAC (Private Address, Random MAC) 從 macOS Big Sur 開始,Wi-Fi 預設會啟用 隨機 MAC 功能,連接某些 SSID 時,系統會...

由 treeman 更新於 9 個月前

【Jenkins】常用plug-in

【Treeman】總覽 Jenkins

    權限控管https://plugins.jenkins.io/matrix-auth/

由 treeman 更新於 10 個月前

【Jenkins】 on macOS 速查表

【Treeman】總覽 Jenkins

1. 安裝流程 # 更新 Homebrew 自身與套件清單 brew update # (可選)升級已安裝的套件 brew upgrade # 安裝 Jenkins LTS(穩...

由 treeman 更新於 10 個月前

【jq】 linux json 查詢工具(查詢篇)

【Treeman】Linux shell

data { "firstName": "John", "lastName": "Smith", "age": 25, "address": { "stree...

由 treeman 更新於 10 個月前

【GitLab】CI/CD Settings 說明

【Treeman】Git相關 【GitLab】相關

✅  General pipelines 1. Public pipelines  功能:允許任何人(即使沒有專案權限)查看 Pipeline 與 Job 詳細資訊,包括 log 和...

由 treeman 更新於 10 個月前

【GitLab】runner 使用 k8s 流程說明

【Treeman】Git相關 【GitLab】相關

  一、前置條件 已有可用的 Kubernetes 叢集(kubectl/helm 可連通) GitLab 可連到 Runner(你的 GitLab URL 例:http://...

由 treeman 更新於 10 個月前

【Git】git revert <commit> 和 git checkout <commit> 差異

【Treeman】Git相關 【Git】語法觀念

git revert <commit> 和 git checkout <commit> 雖然都能「回到某個 commit」,但本質上用途完全不同。以下為詳細說明與比較。 一、git rever...

由 treeman 更新於 10 個月前