Homepage
Open in app
Sign inGet started
Skyler Record
  • Golang
  • Java
  • 面試
  • Linux筆記
  • Notes
  • Leetcode
Tagged in

Linux

Skyler Record
Skyler Record
工作/程式
More information
Followers
14
Elsewhere
More, on Medium
  • Linux
Go to the profile of Chung-chun Lo
Chung-chun Lo in Skyler Record
Nov 19, 2020

ELK Container 連接 MySQL

使用 Docker Container 建立 ELK

Read more…
Go to the profile of Chung-chun Lo
Chung-chun Lo in Skyler Record
Oct 15, 2020

Linux 做 Log 備份

目的

為了避免 Log 遺失的風險,以 Docker 透過 alpine 建立一個服務每天將各個 Services 的 Log 透過 docker 備份到另一個區域儲存。

Read more…
Go to the profile of Chung-chun Lo
Chung-chun Lo in Skyler Record
Jul 22, 2020

ApacheBench 使用筆記

安裝

Ubuntu

$ sudo apt-get install apache2-utils

Mac 本身自帶 Apache 所以不需要特別安裝

常用參數介紹

  • -c:模擬同時連線使用者。
  • -n:總請求次數。
Read more…
Go to the profile of Chung-chun Lo
Chung-chun Lo in Skyler Record
May 25, 2020

Logrotate 使用

如何在linux設定Logrotate

如果沒有 Logrotate 的話先進行安裝

Logrotate 相關位置

/usr/sbin/logrotate => 程式所在位置

/etc/cron.daily/logrotate => 預設讓Cron每天執行logrotate一次

Read more…
Go to the profile of Chung-chun Lo
Chung-chun Lo in Skyler Record
May 26, 2020

Crontab 使用

crontab使用&I/O重新導向

在 Linux 中 Crontab 預設幾乎都是安裝好的,如果遇到了 crontab 沒安裝的情況先安裝 crontab

安裝完成後檢查 service 的路徑

啟動 crontab 並查看是否正常運行

其他相關指令

Read more…