CentOS7下-bash:nginx:未找到命令(comman
2020-11-10 本文已影响0人
刘禹锡_c886
操作系统: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