美文网首页vue
centos下nginx添加到系统变量中

centos下nginx添加到系统变量中

作者: 柯柯熙 | 来源:发表于2018-01-18 14:20 被阅读14次

查询nginx的安装路径

find /|grep nginx.conf

在profile中添加配置

vim /etc/profile
PATH=$PATH:/usr/local/nginx/sbin
export PATH

重新载入新的系统变量

source /etc/profile

相关文章

网友评论

    本文标题:centos下nginx添加到系统变量中

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