查询nginx的安装路径
find /|grep nginx.conf
在profile中添加配置
vim /etc/profile
PATH=$PATH:/usr/local/nginx/sbin
export PATH
重新载入新的系统变量
source /etc/profile
find /|grep nginx.conf
vim /etc/profile
PATH=$PATH:/usr/local/nginx/sbin
export PATH
重新载入新的系统变量
source /etc/profile
本文标题:centos下nginx添加到系统变量中
本文链接:https://www.haomeiwen.com/subject/upcwoxtx.html
网友评论