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

HTTPs – Let’s Encrypt

2022-02-092022-04-27 adminLinux, Ubuntu

Loading

測試環境為 Ubuntu 20.04 x86_64 + Apache2 (虛擬機平台 Linode) 主要要幫 https://benjr.tw (WordPress) 改成為 https://benjr.tw , 什麼是 https(http with SSL+CA) 可以參考 – h […]

Read more

MariaDB 函數 – JSON_QUOTE , JSON_UNQUOTE

2022-02-082022-02-08 adminLinux, MariaDB, Mysql, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 JSON 有保留字元,可以直接用以下函數來轉換. \” Double quote (“) \b Backslash \f Formfeed \n Newline (linefeed) \r Carriage return \t Ta […]

Read more

Linux command – strace

2021-12-102021-12-10 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 Linux 指令 strace (trace system calls and signals) 用來檢視程式 (Process) 執行時會呼叫那些系統函式庫(system library). -p pid : 可以依據程式的 PID 來檢視呼叫那些系統函 […]

Read more

Linux – Enable packet forwarding

2021-12-082021-12-08 adminLinux, RedHat / CentOS

Loading

測試環境為 CentOS 8 x86_64 不知道什麼時候 IPv4 預設 IP Forwarding 變成啟動 的 Enable (1). 或是檢視別網路裝置的 IP Fordwarding . 或是透過 sysctl 指令來查看 手動變更 透過 sysctl 指令可以手動變更. Note : I […]

Read more

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

文章導覽

較舊的文章
較新的文章

近期文章

  • 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.