• 作業系統
    • Windows
    • Linux
  • 資料庫
    • SQL Server
    • MySQL/MariaDB
  • 腳本
    • PowerShell
    • Shell Script
  • 開源服務
  • 虛擬化
  • 容器
  • 雲服務
  • 網路
  • 其他
  • WordPress
  • Javascript
  • PHP
  • Search
挨踢攻城獅學習之路
不太詳細紀錄
Skip to content
  • 作業系統
    • Windows
    • Linux
  • 資料庫
    • SQL Server
    • MySQL/MariaDB
  • 腳本
    • PowerShell
    • Shell Script
  • 開源服務
  • 虛擬化
  • 容器
  • 雲服務
  • 網路
  • 其他
  • WordPress
  • Javascript
  • PHP
  • Search
分類: Linux

分類: Linux

Home 作業系統 Archive for category "Linux"

Let`s Encrypt:certbot renew 更新憑證失敗

VPS 站用的 Certbot 是用 apk 裝的,一開始還能用,也順利地申請了憑證後來不知發生什麼問題,在更新時都會出現以下內容 看不太懂,所以 Google 一下找到可以用 pip 安裝新版本,就這樣裝下去 順利更新 2023/1/16 再次碰到 好在結尾有關鍵字 裝完順利更新 3/16 再次 …

 troubleshooting
Read more "Let`s Encrypt:certbot renew 更新憑證失敗"

Linux:自動更新套件或安全性

管理多部 Linux 經常更新就得進 Server 下指令頗麻煩,以前管理 CentOS 6/7 yum 原生就有套件可以做,找了下 dnf apt 也有就不用這麼麻煩。 以下記錄怎麼用套件自動更新 安裝自動更新套件 查看預設設定 修改設定檔 啟動自動更新服務 檢查更新狀態 更多參考 AutoUpd …

 linux
Read more "Linux:自動更新套件或安全性"

Linux:ssh + schtasks 在 Windows 建立排程執行特定工作

在 Linux 下使用命令對 Windows 進行操作,可在 Windows 裝 OpenSSH 伺服器,再從 Linux 用 ssh / sshpass 來下命令,但有些軟體在 Windows 雖有提供命令,卻無法直接由 Linux 來下達,狀況是運行後命令會卡住,在 Windows 下執行就正常 …

 shellscript / ssh
Read more "Linux:ssh + schtasks 在 Windows 建立排程執行特定工作"

Linux:Fail2ban VPS 主機防 SSH 暴力破解

雖然 Nginx、WordPress 已設定了一些防護,SSH 也採用憑證,但每天被 try 還是不免擔心,就多加Fail2ban 防 SSH 暴力吧。

 linux / security / vps
Read more "Linux:Fail2ban VPS 主機防 SSH 暴力破解"

Linux:Let`s Encrypt 非標準 Port 申請憑證

之前苦惱用非標準 Port 怎麼申請憑證,後來找到用DNS方式來做就可以了

 linux / security
Read more "Linux:Let`s Encrypt 非標準 Port 申請憑證"

Linux:curl 回傳 json 格式化

一般 curl 後回傳的格式大概都如下範例取自 「口罩咧?」API 使用說明 為了方便查看,因此需要做格式化,網路上有許多套件可使用,以下使用 jq工作上會用到 alpine ,用 alpine 做個範例 加上 jq 的結果 是不是方便許多

 linux
Read more "Linux:curl 回傳 json 格式化"

Linux:CentOS 7 更新Kernel 5.x及開啟BBR

6/14 更新,目前裝完已變成 5.4 版了,但更新要注意有些套件可能會出問題 ex. ZFS先設定repo以安裝4.19版Kernel(這裡沒使用 elrepo 源,因為LT還在4.4,BBR要4.9以上,ML則到5了,先不打算裝5) 更新 Kernel 並重開機 重開完後安裝 kernel-he …

 centos / linux
Read more "Linux:CentOS 7 更新Kernel 5.x及開啟BBR"

Linux:CentOS 7/8修改網卡命名方式及IP地址

從CentOS 7開始,網卡命名方式都改為ensxx,而連線名稱如果在安裝時選中文,預設在Terminal下會是亂碼口口口無法修改SSH進入則可正常看到”有線網路\ 1″ 這裡將網卡命名方式改回eth0,並用nmcli或ip來重新設定連線名稱及IP 1、修改網卡命名 2、設定 …

 centos / command / linux / network
Read more "Linux:CentOS 7/8修改網卡命名方式及IP地址"

Linux:vim 修改nginx時沒有highlight

最近裝的兩台CentOS在vim nginx時,語法都沒有顏色,看的很辛苦爬文一下,得到以下解決辦法 完成,有色彩了

 nginx / troubleshooting
Read more "Linux:vim 修改nginx時沒有highlight"

PHP:寄信跳錯SMTP connect()

架了不少開源相關服務都會用到PHP寄信功能,但經常會碰到如下錯誤Error in email sending: SMTP connect() failed.https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting x 如果是用Gmail請 …

 troubleshooting
Read more "PHP:寄信跳錯SMTP connect()"

文章導覽

1 2 3 4

近期文章

  • ShellScript:發送 IP 到 FortiGate、Cloudflare 進行封鎖
  • Google Apps Script: Form 無法發 Telegram、Line Bot Notify
  • Google Sheet: 操作問題筆記
  • Google Apps Script: Web App 手機 RWD 問題
  • Gitlab: 跨版本升級順序

分類

  • WordPress (29)
  • 作業系統 (45)
    • Linux (31)
    • Windows (15)
  • 全端 (29)
    • CSS (3)
    • Dev Env (4)
    • Go (1)
    • Javascript (15)
    • PHP (6)
  • 其他 (11)
  • 容器 (10)
    • Docker (7)
    • Kubernetes (2)
  • 網路 (7)
  • 腳本 (14)
    • Batch (3)
    • PowerShell (4)
    • Shell Script (8)
  • 虛擬化 (8)
  • 資料庫 (9)
    • MySQL/MariaDB (1)
    • SQL Server (8)
  • 開源服務 (19)
  • 雲服務 (6)

標籤

analysis apache backup batch btrfs centos cisco cmder command css docker duplicati esxi firewall fortigate git Go google sheet hyper-v javascript kubernetes librenms linux mariadb network nextcloud nginx php plugins powershell redmine samba security selinux shellscript sql ssh troubleshooting vembu Visual Studio vps vue.js wordpress wsl zfs
Back to Top
©2019-2023 挨踢攻城獅學習紀錄
Powered by Anima & WordPress.