Ubuntu 16.04上的网络问题

上周我通过Contabo雇用了VPS服务,因此可以在其上运行Minecraft服务器。

最初,我安装了Ubuntu 18.04,一切正常,直到两天后,似乎系统更新了某些内容,使我的网络出现了故障。我尝试解决此问题,但未找到问题,我再次重新安装了系统,但在2/3天后又发生了同样的情况。 因此,我决定安装Ubuntu 16.04,可能是操作系统问题。 一旦安装,它发生的完全相同...

如果尝试从计算机发送ping命令,我会看到数据包的时间增加了一倍,而且很多数据包丢失了。 FTP,SSH和其他网络服务不起作用。但幸运的是,我可以提取syslog日文件。在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文件:

/etc/network/interfaces

您可能会看到主机名从一个文件到另一个文件是不同的,这是因为我认为更改它可能是解决方案之一。

预先感谢您的帮助。我真的很想找到问题...

最好的祝福!

评论