提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
给需要的,,本人刚升级.... 貌似1.0.13的还不是很稳定...
- #!/bin/bash
- #wdcp update script
- #http://www.wdlinux.cn/wdcp
- cd /tmp
- function pcre_ins {
- wget -c http://dl.wdlinux.cn:5180/soft/pcre-8.10.tar.gz
- tar zxvf pcre-8.10.tar.gz
- cd pcre-8.10
- ./configure --prefix=/usr
- make
- make install
- cd ..
- }
- wget -c http://www.nginx.org/download/nginx-1.0.11.tar.gz
- tar zxvf nginx-1.0.11.tar.gz
- cd nginx-1.0.11
- ./configure --user=www --group=www --prefix=/www/wdlinux/nginx-1.0.11 --with-http_stub_status_module --with-http_ssl_module
- if [[ $? != 0 ]];then
- pcre_ins
- ./configure --user=www --group=www --prefix=/www/wdlinux/nginx-1.0.11 --with-http_stub_status_module --with-http_ssl_module
- fi
- make
- [ $? != 0 ] && echo "make err" && exit
- make install
- [ $? != 0 ] && echo "install err" && exit
- cp /www/wdlinux/nginx/conf/wdcp.conf /www/wdlinux/nginx-1.0.11/conf/
- cp /www/wdlinux/nginx/conf/nginx.conf /www/wdlinux/nginx-1.0.11/conf/
- cp /www/wdlinux/nginx/conf/fcgi.conf /www/wdlinux/nginx-1.0.11/conf/
- cp -pR /www/wdlinux/nginx/conf/rewrite /www/wdlinux/nginx-1.0.11/conf/
- cp -pR /www/wdlinux/nginx/conf/vhost /www/wdlinux/nginx-1.0.11/conf/
- service nginxd stop
- rm -f /www/wdlinux/nginx
- ln -s /www/wdlinux/nginx-1.0.11 /www/wdlinux/nginx
- service nginxd start
- echo
- rm -fr nginx*
- echo "Updated successfully";
复制代码 |