Skip to content

Instantly share code, notes, and snippets.

@blackstuend
Last active February 27, 2019 03:57
Show Gist options
  • Save blackstuend/bf8576b6d903a313ec182eb1c7609136 to your computer and use it in GitHub Desktop.
Save blackstuend/bf8576b6d903a313ec182eb1c7609136 to your computer and use it in GitHub Desktop.

Load Balancing(LB)

  • 常使用方式
  1. LVS
  2. haproxy
  3. nginx (easy to use)
  4. keepalived (health check)

Docker

  1. Docker-compose
  2. Docker-SWAM

監控系統

  1. Zabbix
  2. Nagious

自動管理系統

  1. saltstack
  2. ansible
  3. puppet

遠端桌面(VNC)

  1. 設定值 > 顯示 > 遠端顯示 //遠端桌面Port 3389
  2. 在電腦裡用netstat -an |find 3389 //檢查3389是否被占用
  3. 在windows下打mstsc(遠端桌面) 輸入 ip :3389

google ssh authenticator(用google認證centos 7)

參考

  1. git clone https://github.com/google/google-authenticator-libpam
  2. yum install pam-devel
  • installation 1../bootstrap.sh
  1. ./configure
  2. make
  3. make install
  4. mv /usr/local/lib/security/pam_google_authenticator.* /usr/lib64/security/
  5. vim /etc/ssh/sshd_config //ChallengeResponseAuthentication yes
  6. systemctl restart sshd
  7. google-authenticator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment