无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[分享] nginx升级到1.0.11版脚本

给需要的,,本人刚升级.... 貌似1.0.13的还不是很稳定...

  1. #!/bin/bash
  2. #wdcp update script
  3. #http://www.wdlinux.cn/wdcp
  4. cd /tmp
  5. function pcre_ins {
  6. wget -c http://dl.wdlinux.cn:5180/soft/pcre-8.10.tar.gz
  7. tar zxvf pcre-8.10.tar.gz
  8. cd pcre-8.10
  9. ./configure --prefix=/usr
  10. make
  11. make install
  12. cd ..
  13. }

  14. wget -c http://www.nginx.org/download/nginx-1.0.11.tar.gz
  15. tar zxvf nginx-1.0.11.tar.gz
  16. cd nginx-1.0.11
  17. ./configure --user=www --group=www --prefix=/www/wdlinux/nginx-1.0.11 --with-http_stub_status_module --with-http_ssl_module
  18. if [[ $? != 0 ]];then
  19. pcre_ins
  20. ./configure --user=www --group=www --prefix=/www/wdlinux/nginx-1.0.11 --with-http_stub_status_module --with-http_ssl_module
  21. fi
  22. make
  23. [ $? != 0 ] && echo "make err" && exit
  24. make install
  25. [ $? != 0 ] && echo "install err" && exit
  26. cp /www/wdlinux/nginx/conf/wdcp.conf /www/wdlinux/nginx-1.0.11/conf/
  27. cp /www/wdlinux/nginx/conf/nginx.conf /www/wdlinux/nginx-1.0.11/conf/
  28. cp /www/wdlinux/nginx/conf/fcgi.conf /www/wdlinux/nginx-1.0.11/conf/
  29. cp -pR /www/wdlinux/nginx/conf/rewrite /www/wdlinux/nginx-1.0.11/conf/
  30. cp -pR /www/wdlinux/nginx/conf/vhost /www/wdlinux/nginx-1.0.11/conf/
  31. service nginxd stop
  32. rm -f /www/wdlinux/nginx
  33. ln -s /www/wdlinux/nginx-1.0.11 /www/wdlinux/nginx
  34. service nginxd start
  35. echo
  36. rm -fr nginx*
  37. echo "Updated successfully";
复制代码

是1.1.13 。。。。。。。。。。。
www.taorenti.com

TOP

谢谢

TOP

返回列表