centos nginx 环境变量

vim /etc/profile

 

最后添加

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

 

使其生效

source /etc/profile

posted @ 2020-11-30 17:01  AresYM  阅读(424)  评论(0编辑  收藏  举报