開源 log 系統 — Graylog 有提供 OVA 的虛擬映像環境供使用,預設的網卡設置會以 DHCP 為初始設定,因此開起來後如果沒配發到 IP,會有部份錯誤訊息,如要改成固定 IP,可依照下列步驟進行:
1. Disable network interface
sudo ifdown eth0
2. Edit the interfaces file using vi。
sudo vi /etc/network/interfaces
【vi 指令】
a 進入編輯模式
esc 離開編輯模式
:w Save
:q Exit
3. Modify the content to match the example format below and save。
auto eth0 iface eth0 inet static address 192.168.0.1 netmask 255.255.255.0 gateway 192.168.0.254 dns-nameserver 1.1.1.1 dns-nameserver 8.8.8.8 pre-up sleep 2
4. Enable network interface,And reconfigure Graylog
sudo ifup eth0 sudo graylog-ctl reconfigure
【參考連結】
- The graylog-ctl script — Graylog 2.5.0 Documentation
- vi command instructions(Simplified version)
- Virtual Machine Appliances — Graylog 2.5.0 Documentation
- How do I configure my static DNS in interfaces? – Ask Ubuntu








Leave a Reply