今天,我们的Linux服务器流7.6出现了奇怪的行为。
因为某种原因服务器崩溃了
从消息文件中我们可以看到服务器停止在Oct 16 18:17:22上可用
过了一段时间,我们在- Oct 18 04:42:46启动服务器(打开电源)
Oct 16 18:17:22 linux avahi-daemon[1140]: Invalid response packet from host 45.52.7.60.
Oct 16 18:17:22 linux avahi-daemon[1140]: Invalid response packet from host 45.52.91.79.
Oct 16
uname -a
Linux nas 3.5.0-41-generic #64~precise1-Ubuntu SMP Thu Sep 12 16:50:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
,你能帮我做这个吗?
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
avahi-da
我注意到这一点与iftop:
# Host name (port/service if enabled) last 2s last 10s last 40s cumulative
--------------------------------------------------------------------------------------------
1 192.168.0.1:41144 => 61B 61B 61B 2.86KB
当构建openwrt包时,avahi:它显示如下: configure.ac:298: the top level
autoreconf: Leaving directory `.'
(cd /home/r3d/Desktop/QSDK/qsdk/build_dir/target-arm_v7-a_uClibc-1.0.14_eabi/avahi/dbus/avahi-0.6.31/./; if [ -x ./configure ];
then /usr/bin/find /home/r3d/Desktop/QSDK/qsdk/build_dir/targe
脚本的名称是InstallmDNS.sh
脚本内容如下:
#!/bin/bash
sethostname() {
if [ $# -eq 1 ]
then
hostnamectl set-hostname "$1"
sed -i "/127.0.1.1/d" /etc/hosts
sed -i "/127.0.0.1/a\127.0.1.1 $1" /etc/hosts
reboot
else
echo "The exapmle of execute the script: b