Linux系统使配置文件/etc/profile立刻生效 //让/etc/profile文件修改后立即生效 ,可以使用如下命令: source /etc/profile [root@localhost conf]# source /etc/profile 下图可见执行完命令后,nginx命令就有效.(这里我的nginx.conf配置有点问题