• 打包源文件并在服务器把压缩包下载下来
  • 登录数据库把对应的数据导出
  • 重点是需要配置nginx配置php环境
server {
        listen       80;
        root /www/web/app_bzing_cn/public_html;
        server_name app.bzing.cn app.bzing.cn;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
 #以下内容为配置马甲后台访问的主要环节 要不然访问不了后台
location / 
		{	 
			if (!-e $request_filename){  
				rewrite ^/(.*)$  /index.php?s=$1 last;	  
			}
		}
        location ~ \.php(.*)$ {
                fastcgi_pass  unix:/tmp/php-56-cgi.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
                fastcgi_param PATH_INFO $2;
                include fastcgi.conf;
        }
        location ~ /\.ht {
                deny  all;
        }
}




server {
        listen       443;
        root /www/web/app_bzing_cn/public_html;
        ssl                  on;
        ssl_certificate      cert/app.bzing.cn.crt;
        ssl_certificate_key  cert/app.bzing.cn.key;
        ssl_prefer_server_ciphers on;
        ssl_session_timeout 10m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
        server_name app.bzing.cn app.bzing.cn;
        index  index.html index.php index.htm;
        error_page  400 /errpage/400.html;
        error_page  403 /errpage/403.html;
        error_page  404 /errpage/404.html;
        error_page  503 /errpage/503.html;
				location / 
		{	 
			if (!-e $request_filename){  
				rewrite ^/(.*)$  /index.php?s=$1 last;	  
			}
		}
        location ~ \.php(.*)$ {
                fastcgi_pass  unix:/tmp/php-56-cgi.sock;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
                fastcgi_param PATH_INFO $2;
                include fcgi.conf;
        }
        location ~ /\.ht {
	            deny  all;
	    }
}
  • php环境安装Redis 支持才可以
  • dz论坛需要安装马甲APP的插件 打通用户登录 要不然会提示网络有问题