# Week 17 (2021/06/17) - Book mode https://hackmd.io/@ncnu-opensource/book ### Live Demo 的 debug 過程 * 看服務執行狀態,和 log * `service nginx status` * `service keepalived status` * 看設定檔有沒設錯 * 阿 network interface 指定錯了 * `ip a` * 改完設定檔記得重啟服務 * `service keepalived restart` * 看 script 能不能正常被執行 * `/etc/keepalived/master.sh` * 發現 .sh 前面 shebang 打成 `#!bin/bash`,`#!/bin/bash` 才對 * `vim /etc/keepalived/master.sh` * 發現需要 Python 和其 requests module 才能跑 * 找 apt 有沒有套件可以裝 * `apt search python-requests` 期末 project 報告時間 15 ~ 25 min
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up