![Ubuntu 16.04 上的网络问题](https://linux22.com/image/1172988/Ubuntu%2016.04%20%E4%B8%8A%E7%9A%84%E7%BD%91%E7%BB%9C%E9%97%AE%E9%A2%98.png)
我上周通过 Contabo 租用了一项 VPS 服务,以便可以在上面运行 Minecraft 服务器。
起初我安装了 Ubuntu 18.04,一切都运行正常,直到大约 2 天后,系统似乎更新了某些内容,导致我的网络出现故障。我尝试解决它,但没有找到问题,我再次重新安装了系统,但 2/3 天后又发生了同样的情况。所以我决定安装 Ubuntu 16.04,认为这可能是操作系统问题。安装后,它发生了完全相同的情况...
如果我尝试从我的电脑发送 ping,我会看到数据包的时间加倍,而且很多数据包都丢失了。FTP、SSH 和其他网络服务都无法正常工作。但幸运的是,我可以提取系统日志日文件。18:48 是一切开始崩溃的时刻,我会尽可能简短地粘贴在这里:
May 17 18:42:01 vmi387350 CRON[13955]: (root) CMD (/etc/cron.hourly/gcc.sh)
May 17 18:45:01 vmi387350 CRON[14554]: (root) CMD (/etc/cron.hourly/gcc.sh)
May 17 18:48:01 vmi387350 CRON[15155]: (root) CMD (/etc/cron.hourly/gcc.sh)
May 17 18:48:23 vmi387350 kernel: [184072.049670] psmouse serio1: VMMouse at isa0060/serio1/input0 lost synchronization, throwing 1 bytes away.
May 17 18:48:27 vmi387350 systemd[1]: Stopped target Graphical Interface.
May 17 18:48:27 vmi387350 systemd[1]: Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
May 17 18:48:27 vmi387350 systemd[1]: Stopping ACPI event daemon...
May 17 18:48:27 vmi387350 systemd[1]: Stopped target Timers.
May 17 18:48:27 vmi387350 systemd[1]: Stopped Daily apt upgrade and clean activities.
May 17 18:48:27 vmi387350 systemd[1]: Stopped Daily Cleanup of Temporary Directories.
May 17 18:48:27 vmi387350 systemd[1]: Stopped Daily apt download activities.
May 17 18:48:27 vmi387350 systemd[1]: Stopped Message of the Day.
May 17 18:48:27 vmi387350 systemd[1]: Stopped target System Time Synchronized.
May 17 18:48:27 vmi387350 systemd[1]: Stopping Accounts Service...
May 17 18:48:27 vmi387350 systemd[1]: Stopped target Multi-User System.
May 17 18:48:27 vmi387350 systemd[1]: Stopping OpenBSD Secure Shell server...
May 17 18:48:27 vmi387350 systemd[1]: Stopping LSB: Record successful boot for GRUB...
May 17 18:48:27 vmi387350 systemd[1]: Stopping LSB: Apache2 web server...
May 17 18:48:27 vmi387350 systemd[1]: Stopping Regular background program processing daemon...
May 17 06:25:01 vmi387350 rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="493" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
May 17 18:48:27 vmi387350 rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="493" x-info="http://www.rsyslog.com"] exiting on signal 15.
May 17 18:48:53 vmi387350 rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="542" x-info="http://www.rsyslog.com"] start
...
May 17 18:48:53 vmi387350 acpid: starting up with netlink and the input layer
May 17 18:48:53 vmi387350 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
May 17 18:48:53 vmi387350 systemd[1]: Failed to start Raise network interfaces.
May 17 18:48:53 vmi387350 acpid: 1 rule loaded
May 17 18:48:53 vmi387350 acpid: waiting for events: event logging is off
May 17 18:48:53 vmi387350 systemd[1]: networking.service: Unit entered failed state.
May 17 18:48:53 vmi387350 systemd[1]: networking.service: Failed with result 'exit-code'.
May 17 18:48:53 vmi387350 systemd[1]: Reached target Network.
May 17 18:48:53 vmi387350 systemd[1]: Starting Multicraft Daemon...
May 17 18:48:53 vmi387350 systemd[1]: Starting OpenBSD Secure Shell server...
May 17 18:48:53 vmi387350 systemd[1]: Reached target Network is Online.
May 17 18:48:53 vmi387350 systemd[1]: Starting /etc/rc.local Compatibility...
May 17 18:48:53 vmi387350 systemd[1]: Starting LSB: Apache2 web server...
May 17 18:48:53 vmi387350 systemd[1]: Started LSB: Record successful boot for GRUB.
May 17 18:48:53 vmi387350 systemd[1]: Started /etc/rc.local Compatibility.
May 17 18:48:53 vmi387350 systemd[1]: Started Getty on tty1.
May 17 18:48:53 vmi387350 systemd[1]: Reached target Login Prompts.
May 17 18:48:53 vmi387350 apache2[636]: * Starting Apache httpd web server apache2
May 17 18:48:53 vmi387350 accounts-daemon[532]: started daemon version 0.6.40
May 17 18:48:53 vmi387350 systemd[1]: Started Accounts Service.
May 17 18:48:53 vmi387350 systemd[1]: Started OpenBSD Secure Shell server.
May 17 18:48:53 vmi387350 systemd[1]: Reloading.
May 17 18:48:53 vmi387350 systemd[1]: Started ACPI event daemon.
May 17 18:48:54 vmi387350 systemd[1]: multicraft.service: Can't open PID file /home/minecraft/multicraft/multicraft.pid (yet?) after start: No such file or directory
May 17 18:48:54 vmi387350 systemd[1]: Started Multicraft Daemon.
May 17 18:48:54 vmi387350 apache2[636]: *
May 17 18:48:54 vmi387350 systemd[1]: Started LSB: Apache2 web server.
May 17 18:48:54 vmi387350 systemd[1]: Reached target Multi-User System.
May 17 18:48:54 vmi387350 systemd[1]: Reached target Graphical Interface.
May 17 18:48:54 vmi387350 systemd[1]: Starting Update UTMP about System Runlevel Changes...
May 17 18:48:54 vmi387350 systemd[1]: Started Update UTMP about System Runlevel Changes.
May 17 18:48:54 vmi387350 systemd[1]: Startup finished in 6.856s (kernel) + 2.374s (userspace) = 9.231s.
这是 /etc/network/interfaces 文件:
您可能会看到不同文件的主机名不同,这是因为我认为更改它可能是解决方案之一。
提前感谢你的帮助。我真的很想找到问题所在……
此致!