【问题标题】:Failed to start ngnix.service: Unit ngnix.service not foundnginx.service启动失败:未找到单元nginx.service
【发布时间】:2021-06-24 08:59:12
【问题描述】:

我已经在 ubuntu 20.04 上安装了 ngnix。但是当我发出命令时sudo systemctl start ngnix。我遇到了一个错误

Failed to start ngnix.service: Unit ngnix.service not found.

请帮我解决这个问题。

【问题讨论】:

    标签: linux ubuntu nginx terminal ubuntu-20.04


    【解决方案1】:

    它叫做nginx,而不是ngnix。所以你需要以sudo systemctl start nginx 开头(注意拼写)。

    【讨论】:

    • 谢谢您,先生!我的问题解决了......这是我的愚蠢错误
    猜你喜欢
    • 2019-10-24
    • 1970-01-01
    • 2016-06-22
    • 2018-03-25
    • 1970-01-01
    • 2023-04-10
    • 2016-06-19
    • 2018-08-10
    相关资源
    最近更新 更多