如何重新编译已安装的nginx
导读
修改nginx为全局命令
修改文件:
[root@localhost ~]# vim /etc/profile 最后面追加: export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH:/opt/nginx_fdfs/sbin 然后生效配置 [root@localhost ~]# source /etc/profile

获取参数:

复制configure arguments到文本编辑器

找到安装包里面的安装配置命令

执行

停止 nginx ,然后在当前目录下执行
make && make install
然后重启nginx即可
[root@localhost nginx_fdfs]# nginx -c /opt/nginx_fdfs/conf/nginx.conf
测试是否生效

猜你喜欢
  评论(0)
  
 
