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

Linux

SQL 資料型態 – TIMESTAMP

2018-01-082020-06-09 adminLinux, MariaDB, Mysql, Ubuntu

Loading

這邊來看一下 TIMESTAMP 這個資料型態. 測試環境為 Ubuntu16.04 x86_64 虛擬機. 建立一個有 timestamp 欄位的資料表 table ,預設值為 current_timestamp (日期時間函數,功能與 NOW 一樣,都是回傳目前系統的日期時間),on updat […]

Read more

SQL 語法 進階 SELECT

2018-01-032022-04-29 adminLinux, MariaDB, Mysql, Ubuntu

Loading

測試環境為 Ubuntu 16.04 x86_64 ,下面針對 SQL SELECT 的 WHERE , GROUP BY , HAVING , ORDER BY , LIMIT 與 sub-query 使用方式做說明, SELECT 查詢需注意資料庫字元編碼 Character Sets 與 文字 […]

Read more

Linux – PHP + Mysql

2018-01-022020-03-16 adminLinux, PHP, Ubuntu

Loading

要如何透過 PHP 來讀取 Mysql (MariaDB) 的資料. 測試環境為 Ubuntu 16.04 x86_64 + Apache2 虛擬機 (IP: 172.16.15.130) 請參考 https://benjr.tw/95861 , web server 為 Nginx + Maria […]

Read more

Linux command – nvme format

2017-12-292018-01-05 adminLinux, System

Loading

SSD 傳統的 SSD 硬碟在做硬碟資料抹除 (security erase 可以讓硬碟回覆到原本的效能水準) 是透過 #hdparm . 首先要檢查硬碟是否有支援 security set 指令. 要先設定 security password 才能執行 security erase. NVME 但 […]

Read more

Linux – cgroup & namespace

2017-12-292018-01-04 adminContainer, Linux, Ubuntu

Loading

什麼是 cgroup (Control Group) 和 Namespaces (Name spaces) ? 要先說什麼是 container ? Container 與虛擬機類似,都是在原作業系統提供一個環境給另外一個作業系統來使用,虛擬機器 Virtual Machine 透過 VMM (Vi […]

Read more

Linux command – nvme

2017-12-212018-03-02 adminLinux, RedHat / CentOS, Storage

Loading

測試環境為 CentOS 7 x86_64 在 smartctl 官網有提到 https://www.smartmontools.org/wiki/NVMe_Support 可以透過它來看 nvme 的資訊. SATA Express / NVMe 使用的是 PCI Express SSD 的硬碟裝 […]

Read more

Linux command – smartctl (S.M.A.R.T. attributes)

2017-12-212023-07-12 adminLinux, RedHat / CentOS, Storage

Loading

關於 smartctl 使用,請參考 https://benjr.tw/95984 測試環境為 CentOS 7 x86_64 這邊討論如何透過 smartctl 去檢視硬碟的 S.M.A.R.T. attributes,可以透過下面兩個參數來檢視. -a, –all -a 對於 ATA […]

Read more

Linux command – ss (Socket Statistics)

2017-12-182017-12-18 adminLinux, Network, RedHat / CentOS

Loading

以前會用 netstat – https://benjr.tw/22383 來監控網路連線狀態,這邊介紹另外一隻功能相似,功能更強的 新工具 ss (Socket Statistics). 測試環境為 CentOS 7 x86_64. 直接來看一下 man ss 提供的範例. Displ […]

Read more

LMbench Memory 測試 – par_mem

2017-12-15 adminLinux, Memory, Ubuntu

Loading

LMbench 是用來測試系統效能的工具.關於安裝與測試種類請參考 https://benjr.tw/98076 測試環境為 Ubuntu 16.04 x86_64 (VMware 虛擬機) ,這邊來討論 LMBench 有關於 Memory 記憶體的測試項目. 安裝完成的 LMbench 程式目錄 […]

Read more

EDKII HTTP Boot

2017-11-302019-12-10 adminLinux, RedHat / CentOS

Loading

什麼是 HTTP Boot? 官方網站說明 https://github.com/tianocore/tianocore.github.io/wiki/HTTP-Boot 裡面有提到 UEFI , EDK II 以及 HTTP Boot 先來了解一下. UEFI Extensible Firmwar […]

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.