美文网首页
CentOS7下-bash:nginx:未找到命令(comman

CentOS7下-bash:nginx:未找到命令(comman

作者: 刘禹锡_c886 | 来源:发表于2020-11-10 10:14 被阅读0次

操作系统:CentOS7

nginx版本:1.18
1)-bash:nginx:未找到命令(command not found)说明nginx还没有配置到环境变量里

vi /etc/profile

2)在文件最后加入一行代码(根据自己的安装目录填写)

export PATH=$PATH:/usr/local/nginx/sbin

3)刷新配置文件/etc/profile

source /etc/profile

相关文章

网友评论

      本文标题:CentOS7下-bash:nginx:未找到命令(comman

      本文链接:https://www.haomeiwen.com/subject/nhlrbktx.html