helloworld

目前分類:系統管理 (416)

瀏覽方式: 標題列表 簡短摘要

exchange online 的通訊群組清單,類似 postfix, sendmail 的 aliases
寄信時不用一個一個增加收件者
該收件者帳號收到信時,可以自動轉寄給特定或多位使用者
常用於部門群組信箱,或專案用信箱

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

假設你要寄信給 it部門
其成員有: bill , john , peter , mary
除了收件者欄位一個一個慢慢選
還可以設定一個部門信箱,如 it@xxx.com.tw

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

在cmd 下指令
net user loginname /domain
即可顯示密碼到期日

helloworld 發表在 痞客邦 留言(0) 人氣()

image
設定 > 時間與語言

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

登入後點擊右上角帳號圖示 > Configuration > Backup

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

Fortigate 的 SPAN (Switch Port Analyzer) 也就是常聽到的 port mirror

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

下載 livecd 開機

mount /dev/sda1 /mnt

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

指令: 
# docker-compose rm -s -v service_name

或是參數合在一起也可以
# docker-compose rm -sv service_name

Options:
  -f, --force     Don't ask to confirm removal
  -s, --stop      Stop the containers, if required, before removing
  -v, --volumes   Remove any anonymous volumes attached to containers

 

舉例

docker-compose.yml 內容

  web_lab:
    container_name: container_web_lab
    image: myweb:5.5.5
    depends_on:
      - mysqldb


root@srv:/helloworld# docker-compose rm -sv web_lab
[+] Running 1/1
 ⠿ Container container_web_lab  Stopped                                                                                                                                                   1.5s
? Going to remove container_web_lab Yes
[+] Running 1/1
 ⠿ Container container_web_lab  Removed                                                                                                                                                   0.6s


root@srv:/helloworld# docker-compose up -d web_lab
[+] Running 2/2
 ⠿ Container web_db       Running                                                                                                                                                   0.0s
 ⠿ Container container_web_lab  Started

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

以前如果想讓linux 系統在重啟後,自動執行某些程式的話
習慣會把要執行的 scripts 加入 /etc/rc.local
其實crontab 也有相同的功能

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()


修改 ./wp-includes/functions.php

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

如果nagios 發現異常要發送警告信給管理者
本機必須要有postfix或sendmail 之類的MTA

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

# apt-add-repository contrib
-bash: apt-add-repository: command not found

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

apt-get -y install 套件名
只會幫你一次安裝好套件
但如果中間出現對話框,還是會卡住

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

相關 OID
1.3.6.1.4.1.12356.101.4.1.3 : CPU使用率,單位 %
1.3.6.1.4.1.12356.101.4.1.4 : 記憶體使用率,單位 %

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

網路上文章通常只跟你講到第一個步驟
如果還是無法抓到 snmp 資料的話,請試試第二個步驟是否有設定

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

系統運作一陣子後
如果發現swap 空間不足,但沒有空的 partition 或是沒有新增硬碟的打算
可以新增一個 swap file 來增加 swap空間

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

有些人的解法是修改 docker 的iptables 設定,但可能會衍生出其他問題
所以建議以下作法

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

1. 把現有的images 存成 tar 格式
# docker save -o hello_world_nginx.tar hello_world_nginx

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

1. 建立 container

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

$ sudo apt-get update
Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
Err:1 http://dl.google.com/linux/chrome/deb stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B

文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼