Ubuntu Server: Netzwerk kann nicht neu gestartet werden.service: Einheit netzwerk.- Dienst nicht gefunden
Ich füge eine Zeile dns-nameservers 8.8.8.8
in meinem /etc/network/interfaces
hinzu.
Ich möchte diese Konfiguration ohne Neustart neu laden.
Als ich es jedoch versuchte:
sudo service networking restart
Ich habe einen Unit networking.service not found
Fehler
sudo /etc/init.d/networking restart
Ich habe /etc/init.d/networking: command not found
Wie kann ich das beheben? Ich benutze Ubuntu Server 18.04.2 LTS -
3
2 answers
Die Dinge haben sich im Laufe der Zeit verändert. Abhängig von Ihrer Installation möchten Sie die Dienstnamen mit
systemctl list-unit-files | grep -i network
Und, höchstwahrscheinlich in Ihrem Fall ist es
systemctl restart NetworkManager
5
Author: YaguraStation,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-11-16 01:46:03
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-11-16 01:46:03
Seit Version 15.04 wird Ubuntu standardmäßig mit systemd anstelle von initd geliefert. systemd-networkd genau
Benutze systemctl restart networking
-1
Author: Aroly7,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-04-10 21:45:19
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-04-10 21:45:19