Skip to content

Benjr.tw

  • Linux
    • Stress & Performance
    • Hardware Info
    • System Monitor
    • Security
    • Desktop
    • PXE
    • Filesystem Hierarchy Standard
    • Linux 開機選項
    • Linux Package Manager
    • 備份 Backup
  • Virtualization
    • Docker & Podman
    • CoreOS
  • NAS/SAN
  • Programming Language
    • Python
    • Bash shell script
    • Perl
    • PHP
    • Node.JS
    • VBA
    • javascript
    • Power Query
    • PowerShell
  • WordPress
  • DataBase
    • 資料庫安裝
    • 資料庫語法
    • SQLite
    • MariaDB JSON

Programming Language

Python – Class

2022-05-162022-05-24 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 關於 Python Class 與其相關 專有名詞 說明,參考文章 – https://www.learncodewithmike.com/2020/01/python-class.html 類別 (Class) 物件 (Objec […]

Read more

Python – Module & __name__

2022-05-132022-06-08 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) Module 模組的使用. 要使用剛剛定義好的 Module 模組只需要透過 import modeule 名稱,即可使用.使用時 模組名稱.函數名稱 執行結果. __name__ 關於 object.__name__ 說明 : https:/ […]

Read more

Python – Function & Return

2022-05-132023-03-14 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 下面來看一下 Function 函數與 Return 回傳值的使用. function (def) 透過 def 來建立 multi function ( 需輸入參數 n 跟 m ). 執行結果. Return 使用 return 回傳值. 執 […]

Read more

Python – dict 資料型態物件

2022-05-132022-08-31 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 一般宣告的 List(串列)資料型態,其資料不好搜尋到,這時候可以使用 dict ( dictionary ),資料是由 key (鍵值,可使用 括字串(str),整數(int)與浮點數(float) ) + Value (值,可以為任何東西) […]

Read more

Python – List 資料型態物件

2022-05-122022-08-31 adminLinux, Programming Language, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) list 為 Mutable 物件(物件被創造出來後其值可以做改變), Python 其他資料型態物件為. Immutable objects – 物件被創造出來後其值無法做改變像是 int , float , string , t […]

Read more

Linux – 安裝 Python & pip

2022-05-102023-09-28 adminLinux, Python, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 (虛擬機) 安裝 Python (與 pip , Python 套件管理程式) Python 需指定安裝的 Python 版本. 檢視一下 python 版本. pip 檢視一下 pip (Python 套件管理程式) 的版本. 更新 pip 到最新版本. […]

Read more

Windows – S2D (Storage Space Direct)

2021-11-042022-11-29 adminPowerShell, Storage, Windows

Loading

S2D (Storage Space Direct) 儲存空間直接存取功能把多台 Server (至少需要 2 台)的本地端機磁碟整合成一個大的儲存空間.這些空間可以再透過 SMB 3.0 分享給應用程式來使用. 但 S2D 需要有 Windows AD (Active Directory) 與 D […]

Read more

Linux – 取代文字檔案內字串

2021-09-102021-12-08 adminBash shell script, Linux

Loading

除了使用文字編輯器改變 TEXT (.txt) 文字檔案內容外,我們可以透過 sed 指令來處理. 先來產生一個文字檔. 透過 sed 的 s/regexp/replacement/ , 符合 regexp (正規表示式) 的字串會取代 replacement 字串,但同一行有多個符合 regexp […]

Read more

Windows – Enable ICMP (Ping)

2021-07-202022-11-29 adminPowerShell, Windows

Loading

測試環境 Windows 10 (虛擬機) 想從 MAC 系統確認一下 Windows 10 (虛擬機) 是不是在,結果都 ping 不到. 原來 Windows 預設防火牆把 ping (ICMP) 關掉了,可以用以下兩種方式來開啟. PowerShell 使用 Administrator 開啟 […]

Read more

Node.js – nodemon 套件

2021-05-212021-05-21 adminjavascript, Linux, Node.JS, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 Node.JS 所需套件須透過 npm 來下載,所以必須安裝 npm (Node Package Manager) 套件. 檢視一下 Node.JS 與 npm 版本. 以下為使用 Express 模組的 http server 程式,關於程式說明請參考 […]

Read more

文章導覽

較舊的文章
較新的文章

近期文章

  • Windows – Network Sharing + Port forwarding to VM
  • Ansible – gather facts
  • Ansible – host_vars 定義特定的變量
  • Ansible 範例 – Chrony daemon
  • Ubuntu NTP Client 校時設定

近期留言

  • 「Jackson2734」於〈Ubuntu NTP Client 校時設定〉發佈留言
  • 「w」於〈Ubuntu 16.04 Server PXE 安裝〉發佈留言
  • 「admin」於〈TCP/IP 常見封包〉發佈留言
  • 「stu」於〈TCP/IP 常見封包〉發佈留言
  • 「student」於〈Linux command – tcpdump〉發佈留言

分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文
  • Privacy Policy
  • 隱私權政策
Powered by WordPress | Theme: Astrid by aThemes.