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

Linux – Apache ProxyPass & ProxyPassReverse

2021-12-032021-12-03 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 因為我的工作環境有兩個網段,其中 172.16.0.x 有一台 Web Server (172.16.0.2) ,從 10 網段的人無法與其相連,這時候可以透過 2 種方式. Apache ProxyPass & ProxyPassReverse […]

Read more

Linux – NAT Port Forwarding

2021-12-032024-08-28 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 因為我的工作環境有兩個網段,其中 192.168.31.0/255.255.255.0 的 IP 透過 NAT( 192.168.31.133 ) 轉出去,但目前有一台 web server 放在 192.168.31.131 環境,從 192.168.8 […]

Read more

Linux – Shared memory

2021-09-282021-09-28 adminLinux, Memory, Oracle Linux

Loading

測試環境為 CentOS8 (虛擬機) Apache 突然掛了,檢查系統訊息出現以下的錯誤. shared memory 共享記憶體,主要用途是允許兩個程序 Process 存取同一個邏輯記憶體,要怎麼檢視目前系統的 shared memory 的設定. 限制公式 : (max number of […]

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

MariaDB – 做出類似 Excel 的 SUMIF , COUNTIF 的功能

2021-08-112022-12-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機 MariaDB 有類似 Excel 的 SUMIF , COUNTIF 函數可以使用嗎? 答案是沒有,但我們可以使用 CASE OPERATOR 流程控制函數 (Control Flow Functions) 搭配 SUM , COUNT 函數即可 […]

Read more

MariaDB 函數 – JSON_TYPE , JSON_LENGTH 與 JSON_DEPTH

2021-07-222021-07-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 先來看一下 JSON 不同的資料類型 (透過 JSON_TYPE 函數來檢視目前資料是哪一種型態): 物件 (Object) : 使用 { } , 無序成對 (pair) 的 {鍵 Key name :值 value} 方式來儲存,鍵值之間使用逗號來分隔. […]

Read more

MariaDB JSON

2021-07-222022-11-23 adminLinux, MariaDB, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

MariaDB 函數 – MAX , MIN 與 GREATEST , LEAST 函數

2021-07-092022-12-21 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 計算欄(column) 與 列(row) 的最大與最小值可以使用哪些函數來完成呢! 先建立測試要用的資料庫. 欄(column) 最大與最小值 可以使用 MAX(column name) 與 MIN(column name) 函數來檢視. 列(row) 最 […]

Read more

MariaDB 資料庫 – JSON 常用函數

2021-07-012021-07-22 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 使用關聯式資料庫( RDBMS : Relational Database Management System )的 MariaDB 也可以儲存與查詢 NoSQL ( Not Only SQL : 使用非關聯式資料庫的資料庫,資料儲存不需要固定的欄位 ) […]

Read more

Podman – Compose (YAML)

2021-06-022021-06-02 adminDocker / Podman, Linux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 虛擬機. 使用一般使用者 ben (非 sudo user)登入並操作. 下面使用 Nginx (http server) 為範例. CMD 下面範例會用本地端 ~/docker-nginx/html 資料夾去取代 Container 內的 /usr/sh […]

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.