操作系统: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
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
网友评论