-bash: nginx: command not found

    xiaoxiao2022-07-04  181

    问题:-bash: nginx: command not found

    原因:nginx的路径不对

    解决方案1:

    ./ sbin/nginx -t

    解决方案2:

    vim /etc/profile

    增加以下红框的两行

    再source /etc/profile,让配置文件生效

    然后 nginx -t

    最新回复(0)