我用这个sh file来安装Nginx.但是当我修改nginx时.conf并试图重新加载或重新启动Nginx,但没有重新启动.
sudo systemctl restart nginx
给我
sudo: unable to resolve host localhost.localdomain sudo: systemctl: command not found
这个呢
sudo service nginx restart
sudo: unable to resolve host localhost.localdomain nginx: unrecognized service
这个呢
sudo /etc/init.d/nginx restart
sudo: unable to resolve host localhost.localdomain sudo:
/etc/init.d/nginx: command not found