Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

437 total results found

CentOS Kernel Upgrade

Linux Administration

RedHat KB: CHAPTER 5. MANUALLY UPGRADING THE KERNEL Kernel Packages CentOS/RedHat Linux 與 kernel 升級相關的套件清單 kernel — Contains the kernel for single-core, multi-core, and multi-processor systems. kernel-debug — Contains a kernel with numerous debugging opt...

Learning PHP

PHP

Tutorials 函數 preg_match() 範例與技巧

date

SHELL

Shell 範例 # Sample today=$(date +%Y/%m/%d) NOW=`date "+%Y/%m/%d %H:%M:%S"` eval `date "+day=%d; month=%m; year=%Y"` BKNAME="cacti-backup-$year-$month-$day.tar.gz" # Sample # %T time; same as %H:%M:%S NOWD=$(date +"%F") # YYYY-MM-DD NOWT=$(date +"...

Learning Hadoop

Hadoop

TecMint Hadoop Tips How to Install Hadoop Single Node Cluster (Pseudonode) on CentOS 7 Best Practices for Deploying Hadoop Server on CentOS/RHEL 7 – Part 1 Setting Up Hadoop Pre-requisites and Security Hardening – Part 2 How to Install and Configure Clou...

Vim FAQ

vim

Err: A line cannot be longer than 2048 characters. 這是因為 VI 的每一行字數不可超過 2048 字元,遇到時可以將超過字數的行刪除,另存一個檔。 cut -c1-2047 before.log > after.log 開啟 3X MB 檔案時出現錯誤 ex: 0602-101 Out of memory saving lines for undo. # the number must be less than 8 digits. vi ...

設定 postfix 為寄信主機

Postfix

情境說明 需求:需要一部 SMTP 寄信主機可供論壇網站寄信,免費的 Gmail 或 ISP 提供的 SMTP 主機都會有寄送數量的限制,而其他提供可大量寄信的雲端服務商,例如 Mailchimp、Sendgrid 等收費都不便宜。 目的:使用 postfix 架設一部自有的 SMTP 寄信主機。 說明: 採用 docker 佈署方式 為了降低寄出的郵件被其他郵件平台視為垃圾郵件而遭阻擋,主機在寄信時所提供的「寄件者」郵件位址的網域,需要包含一些安全設定:NOTE:建議至少要完成最簡單的 SPF Re...

PNP4Nagios

Nagios

官方首頁:https://www.pnp4nagios.org/ NOTE: 必須事先安裝及設定好 Nagios 開始安裝   # 相依性套件 yum install gcc perl-Time-HiRes rrdtool-perl make tar xzf pnp4nagios-0.6.21.tar.gz cd pnp4nagios-0.6.21 ./configure 如果 Nagios 的系統帳號與群組不是預設的 nagios,必須加上參數 ./configure --with-na...

SQLite 指令

SQLite

基本操作 sqlite> .help sqlite> .exit 查詢 sqlite> select * from tab_name; 資料表結構 sqlite> .schema tab_name;

Learning SQLite

SQLite

SQLite 教學 SQLite is not a toy database

Learning MySQL

MySQL

MySQL Backup How to Backup/Restore MySQL/MariaDB and PostgreSQL Using ‘Automysqlbackup’ and ‘Autopostgresqlbackup’ Tools archlinux | MariaDB Partition Table MySQL 千萬級資料表 partition 實戰應用 簡單使用 Mysql Partition 優化查詢 MariaDB Partition 學習 PARTITION Maint...

Install Fail2Ban on Debian

Fail2Ban

Installation Download: https://www.fail2ban.org/wiki/index.php/Downloads # Debian 7.x tar xzf 0.9.2.tar.gz cd fail2ban-0.9.2/ python setup.py install Verify fail2ban-client -h Configuration for Asterisk On Asterisk)  /etc/asterisk/logger.conf: ... ...

Learning Fail2Ban

Fail2Ban

Fail2ban 是一套以 Python 語言所撰寫的 GPLv2 授權軟體,藉由分析系統紀錄檔,並透過設定過濾條件 (filter) 及動作 (action),當符合我們所設定的過濾條件時,將觸發相對動作來達到自動化反應的效果 (如封鎖來源 IP、寄信通知管理者、查詢來源 IP 資訊等)。因其架構相當彈性,我們可以針對自己的需求,設計不同的過濾條件與動作來達到伺服器防護的功能,或是及時的反應某些異常資訊。常見應用有: 阻擋 SSH、FTP 多次嘗試錯誤連線; 阻擋特定的瀏覽器或網路爬蟲; 提供管理者了解...

Fail2Ban FAQ

Fail2Ban

Q:服務啟動後出現錯誤 WARNING Determined IP using DNS Lookup: Ans: 編輯 /etc/fail2ban/jail.conf usedns = no Q:[v0.10.0] 啟動後出現錯誤 iptables v1.4.14: unknown option "-w" Ans:如果你的 iptables 版本不是 v1.4.20 以上,可能發生啟動錯誤,解決方式如下: 新增 /etc/fail2ban/action.d/iptables-commo...

XRDP

Remote Desktop 遠端桌面

安裝 # Ubuntu 18.04 sudo apt-get install xrdp xfce4 echo xfce4-session >~/.xsession # 檢查 XRDP 是否已啟動 # 檢查 port 3389 是否開啟 sudo netstat -ltpn # XRDP 服務啟動/關閉 sudo systemctl stop xrdp-sesman sudo systemctl start xrdp-sesman TIP: - 不需設定 vncserver 密碼 ...

VNC

Remote Desktop 遠端桌面

Ubuntu 9/11 How to Set Up a VNC Server In Ubuntu sudo apt-get install ubuntu-desktop --no-install-recommends sudo apt-get install vnc4server 編輯 .vnc/xstartup #!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGE...

NX free edition

Remote Desktop 遠端桌面

官網:https://www.nomachine.com/download  安裝 下載 3 個安裝檔 nxclient_3.5.0-7_i386.deb nxnode_3.5.0-7_i386.deb nxserver_3.5.0-9_i386.deb sudo dpkg -i nxclient_3.5.0-7_i386.deb sudo dpkg -i nxnode_3.5.0-7_i386.deb sudo dpkg -i nxserver_3.5.0-9_i386.deb Wind...

X2Go

Remote Desktop 遠端桌面

特色 可多人登入 可播放影片 資源耗用較少 登入使用 SSH 帳號 NX-based remote desktop solutions X2Go Server sudo apt-add-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2goserver-xsession sudo apt-get install x2gomatebindings sudo apt-get in...

Guacamole

Remote Desktop 遠端桌面

Apache Guacamole is a clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. Home: https://guacamole.apache.org/  Access your computers from anywhereBecause the Guacamole client is an HTML5 web application, use of your co...

ESXi Bug Fix & Upgrade

Virtualization VMware

升級或更新 ESX 主機步驟 用 SSH 方式 以 SSH Client 登入 vSphere 主機進行軟體修正程序。 NOTE: vSphere 主機必須事先手動啟用 SSH 服務。 上傳更新/升級檔至主機 從官網下載的更新/升級檔 esxi6.5uX-mgmt-bundle-3.4.5-8.zip 上傳到 vSphere 主機的任一個 datastore。 更新檔:修正 Bug,檔名 *-bundle-*.zip 升級檔:ESXi 版本升級,檔名 *-depot.zip NO...

vimrc

vim

vimrc " " minimal vimrc with no (extra) plugins " "regular settings "---------------- " ui set number set ruler set wildmenu set showcmd set showmatch " encoding/format set encoding=utf-8 set fileformats=unix,dos,mac " searching set hlsea...