Advanced Search
Search Results
378 total results found
Resources
Let's Encrypt How To Secure Apache with Let's Encrypt on Ubuntu 16.04 SSL For Free 免費 SSL 憑證申請,使用 Let’s Encrypt 最簡單方法教學 How to Use Let’s Encrypt to Install Free SSL Certificates on Your Linux VPS Apache with Let’s Encrypt Certificates on CentOS 8 How to...
Vim 高級技巧
常用技巧 命令執行(注意大小寫不同) 使用說明 使用技巧 i 以插入字元方式進入編輯模式 與 a 同為進入編輯模式,兩者差別只有游標的起始位置不同 a 以附加字元方式進入編輯模式 o 插入一個空白行並編輯 h j k l 操控游標的移動,h--向左, j--向下, k--向上, l--向右 當遇到部份作業系統不支援方向鍵使用時,可用此方式代替 :1: 22 游標移到第一行游標移到第22行 程式除錯找特定行號時會用到...
Learning 拾人牙慧
系統管理 Core Dump Creating and debugging Linux dump files [gdb] GDB debugging tutorial for beginners [gdb] A hands-on tutorial for using the GNU Project Debugger How to disable core dumps in Linux including systemd Kernel crash dump (kdump) Chap...
fsck
教學連結 Check and Repair Filesystem Errors With fsck Command in Linux
AIX Configure SNMP
Reference IBM AIX: How To Configure Community based SNMP And SNMP Traps
Cheat Sheets
Curl curl-cheat-sheet.pdf Git git-for-subversion-cheat-sheet.pdf git-cheatsheet-EN-dark.pdf working-with-branches-in-git-cheat-sheet.pdf Markdown markdown_cheat_sheet.pdf MySQL/MariaDB mariadb.pdf mysql_func_cheatsheet.jpg...
Systemd
簡介 Linux 的各項服務管理一直都是用 SysV Init Script,Systemd 是新的管理工具,在 CentOS 7 開始已經有支援。 設定上比 SysV Init 簡單許多,指令的操作差異不大。 線上教學: How to enable rc.local shell script on systemd while booting Linux system [RHEL] Overview of systemd for RHEL 7 [RHEL] How to configure a co...
Requirements
Hardware
CentOS/RedHat Tips
停用不必要的服務 CentOS 7/8: secure-linux.sh #!/usr/bin/env bash # Author: A.Lang(alang.hsu[AT]gmail.com) # File: secure-linux.sh # Created by 2019/3/1 # # SVC_LIST=" ############# Start ############# # ## bluetooth services bluetooth ## SELinux auditd...
Installation
Tutorials RHEL7/8: https://www.zabbix.com/documentation/current/manual/installation/install_from_packages/rhel_centos How To Install Zabbix Server 5.0 on CentOS 7 Platform to install Zabbix Version 5.0 LTS OS Distribution CENTOS OS Ve...
Yum/Dnf & Rpm
yum/dnf 套件庫管裡 # 已啟用的套件庫清單 dnf repolist enabled # 列出所有的套件庫包含 disabled 與 enabled dnf repolist all dnf repolist -v # 已啟用套件庫的詳細資訊 dnf repoinfo # 啟用指定的套件庫 dnf install yum-utils dnf config-manager --enable <repositoryID> # 停用指定的套件庫 dnf config-mana...
ssh
測試驗證服務的設定 # 重啟 sshd 前先驗證設定 # 沒有任何內容輸出,表示設定沒有錯誤 # 指令必須使用絕對路徑 /usr/sbin/sshd -t 檢視連線參數的設定 $ ssh -F ~/.ssh/config -G remote-host-name user root hostname 173.82.136.138 port 22 addressfamily any batchmode no canonicalizefallbacklocal yes canonicalizeh...
Import Virtualbox ova Image
Export from Virtualbox 匯出 VM 至一個 *.ova image 格式選 OVF1.0。(非必要) 不要勾選網卡。(建議:在匯入 vmware 以後,再手動新增合適的虛擬網卡) Import to vSphere 6 Server 下載 VMware-ovftool: https://www.dropbox.com/s/k925gfb2zn4ffgw/ovftool.zip?dl=0 將 *.ova 轉換成 OVF 格式(輸出檔案包含有 *.ovf, ...
Quickstart
Login and Configure user Default login: Admin / zabbix Adding User) Administration -> Users
String Manipulation 字串處理
字串長度 my_string="abhishek" echo "length is ${#my_string}" Using expr str="my string" length=$(expr length "$str") echo "Length of my string is $length" Using awk echo "my string" | awk '{print length}' Using wc str="my string" length=$(echo -n "my st...
Installation
Docker Compose Updated: 新版 Docker Compose 已經整合進 Docker 核心程式 安裝方式 sudo apt-get install docker-compose-plugin 使用方式 docker compose version The latest download: https://docs.docker.com/compose/install/ sudo curl -L "https://github.com/docker/compose/release...
Xdebug
Xdebug is an extension for PHP to assist with debugging and development. Xdebug contains several tools that can assist with debugging PHP applications. Xdebug + Webgrind 可以用來評估任一個 PHP Application 的執行效率。 Tutorials: FreePBX Performance Profiling with Xdebug...
loop
for loop for i in var1 var2 var3; do echo $i; done for ((i=1;i<=10;i++)); do echo $i; done for i in $(ls *.log); do echo $i; done for t in {1..10};do echo $t; done 1 2 3 4 5 6 7 8 9 10 for t in {1..10..2};do echo $t; done 1 3 5 7 9 ...
FirewallD
Introduction FirewallD is frontend controller for iptables used to implement persistent network traffic rules. It provides command line and graphical interfaces and is available in the repositories of most Linux distributions. Working with FirewallD has two m...
Postfix Installation
With Docker Github: docker-mailserver Docker: Running a Postfix container for testing mail during development