-1
Ich verwende diese sh file, um Nginx zu installieren. aber wenn ich die nginx.conf ändere und versuchte, Nginx neu zu laden oder neu zu starten, wurde es nicht neu gestartet. dieser BefehlStarten Sie Nginx in Ubuntu
sudo systemctl restart nginx
gab mir
sudo: unable to resolve host localhost.localdomain sudo: systemctl: command not found
und dieses
sudo service nginx restart
sudo: unable to resolve host localhost.localdomain nginx: unrecognized service
und dieses
sudo /etc/init.d/nginx restart
sudo: unable to resolve host localhost.localdomain sudo:
/etc/init.d/nginx: command not found