当前位置:   article > 正文

-bash: nginx: 未找到命令 (command not found) 解决方案_-bash: nginx: command not found

-bash: nginx: command not found

原因 未定义全局变量
执行 查看是否安装成功 ,如下图为安装成功

ps -ef | grep nginx 
  • 1

在这里插入图片描述
按照配置:

1、进入文件

vim /etc/profile
  • 1

2、修改文件
在这里插入图片描述

3、刷新

source /etc/profile
  • 1

4、重启服务

nginx -s reload
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/264383
推荐阅读
相关标签
  

闽ICP备14008679号