Open source log system - Graylog have provided OVA virtual imaging environment for use,The default network card settings to the initial setting DHCP,So if you do not open up after the allotment to IP,Will be part of the error message,To change the fixed IP,The following steps may be performed:
1. Disable Network Interface
sudo ifdown eth0
2. Modify the interfaces file through vi。
sudo vi /etc/network/interfaces
【vi 指令】
a 進入編輯模式
esc 離開編輯模式
:w Archive
:q leave
3. Modify the content and format to the following examples archive。
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 reset Graylog
sudo ifup eth0 sudo graylog-ctl reconfigure
【參考連結】
- The graylog-ctl script — Graylog 2.5.0 documentation
- vi Instructions(Lite)
- Virtual Machine Appliances — Graylog 2.5.0 documentation
- How do I configure my static DNS in interfaces? – Ask Ubuntu