新浪 腾讯 同步登录 出错 回调 出现 502 Bad Gateway
[font=Verdana][color=#444444]新浪 腾讯 同步登录 出错 回调 出现 502 Bad Gateway[/color][/font][p=30, 2, left]环境:nginx/1.0.15[/p]
[p=30, 2, left]查看日志出现以下结果:[/p]
2012/11/09 01:50:48 [error] 3670#0: *58 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 27.106.142.143, server: ickeep.com, request: "GET /weibo/callback.php?code=3a2539bfc73967b0f113740a6a0f43b2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "ickeep.com", referrer: "[url=http://ickeep.com/weibo/]http://ickeep.com/weibo/[/url]"
刚把PHP 升到 5.3 数据库升到 5.5 问题还是没解决。。
[table=96%,rgb(227,230,235)]
[tr][td=2,1][b]web引擎切换[/b][/td][/tr]
[tr=#ffffff][td=1,1,11%]当前使用引擎[/td][td=1,1,89%] nginx [/td][/tr]
[tr=#ffffff][td][/td][td][/td][/tr]
[/table]
[table=98%,rgb(227,230,235)]
[tr][td]系统名称:WDlinux Control Panel (简称wdcp)[/td][/tr]
[tr][td]当前版本: wdcp_v2.5.2(20121108) 最新
[size=12px]wdcp_v2.5.2(20121108)[/size] [url=http://www.toliving.cn:8066/default.php?act=update]更新[/url][/td][/tr]
[tr][td]操作系统:Linux 2.6.18-238.el5[/td][/tr]
[tr][td]主机 名:localhost[/td][/tr]
[tr][td]CPU参数:1个1核 64位[/td][/tr]
[tr][td]CPU型号: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz[/td][/tr]
[tr][td]系统时间:2012-11-09 01:59[/td][/tr]
[tr][td]运行时间:0天0小时19分[/td][/tr]
[tr][td]服务器IP:118.244.161.40[/td][/tr]
[tr][td]系统负载:0.00 0.02 0.07[/td][/tr]
[tr][td]内存使用:总:498M 已用: 362M 剩余:136M[/td][/tr]
[/table] yum install -y openssl-devel
看下什么结果
如果提示已安装,就手动下载新版本的
openssl-1.0.1c
编译安装
再编译下PHP试试 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=15513&ptid=4033]2#[/url] [i]admin[/i] [/b]
对LINUX不熟悉,麻烦老大告诉下,怎么重新编译PHP? 看一健包里的脚本 [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=15526&ptid=4033]4#[/url] [i]admin[/i] [/b]
安装成功
[size=12px][root@localhost ~]# openssl version -a[/size]OpenSSL 1.0.1c 10 May 2012
built on: Fri Nov 9 21:09:17 CST 2012
platform: linux-x86_64
options: bn(64,64) rc4(16x,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/local/ssl"
[color=#099cc][font=Monaco, Consolas,]openssl编译 ./config --prefix=[/font][/color]/usr/local/ssl
make[1]: Entering directory `/root/openssl-1.0.1c/test'
make[1]: Nothing to be done for `generate'.
make[1]: Leaving directory `/root/openssl-1.0.1c/test'
Configured for linux-x86_64.
[root@localhost openssl-1.0.1c]#
[font=Monaco, Consolas,]PHP 编译 ./[/font][font=Monaco, Consolas, "Lucida Console", "Courier New", serif][size=12px]configure [/size][/font][font=Monaco, Consolas,]--with-openssl=[/font][size=12px]/usr/local/ssl[/size]
[size=12px]main/php_config.h is unchanged[/size]
[size=12px]creating main/internal_functions.c[/size]
[size=12px]creating main/internal_functions_cli.c[/size]
[size=12px]+--------------------------------------------------------------------+[/size]
[size=12px]| License: |[/size]
[size=12px]| This software is subject to the PHP License, available in this |[/size]
[size=12px]| distribution in the file LICENSE. By continuing this installation |[/size]
[size=12px]| process, you are bound by the terms of this license agreement. |[/size]
[size=12px]| If you do not agree with the terms of this license, you must abort |[/size]
[size=12px]| the installation process at this point. |[/size]
[size=12px]+--------------------------------------------------------------------+[/size]
[size=12px]Thank you for using PHP.[/size]
[size=12px][root@localhost php-5.3.17]#[/size]
[size=12px]老大这些都完成了,也重新启动了服务器。。。[/size]
[size=12px]结果,还是一样,还是报一样的错。。[/size]
[size=12px]而且,用phpinfo()[/size]
[size=12px]查看,openssl 的版本 还是 0.98[/size]
[size=12px]在SSH下面是:[/size]
[size=12px]root@localhost ~]# openssl version -a[size=14px]OpenSSL 1.0.1c 10 May 2012[/size]
[size=14px]built on: Fri Nov 9 21:09:17 CST 2012[/size]
[size=14px]platform: linux-x86_64[/size]
[size=14px]我哪里做错?或者是做差了吗??[/size]
[/size] 你参考下一键包里的相关参数 我也是 腾讯 同步登录 出错 回调 出现 502 Bad Gateway
不知道怎么解决!~ 我按 yum install -y openssl-devel 了
OpenSSL 1.0.0-fips 29 Mar 2010
但是还是
腾讯 同步登录 出错 回调 出现 502 Bad Gateway DZ系统,我发现我的也是502。这样的原因。发帖也是跳转502.发现这个很大的BUG问题 502 Bad Gateway 一样的问题。。杯惧 [quote]502 Bad Gateway 一样的问题。。杯惧
[size=2][color=#999999]ufwapscep 发表于 2013-1-5 22:12[/color] [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=17756&ptid=4033][img]http://www.wdlinux.cn/bbs/images/common/back.gif[/img][/url][/size][/quote]
[url]http://www.wdlinux.cn/bbs/thread-3657-1-1.html[/url] [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=17758&ptid=4033]11#[/url] [i]wulali[/i] [/b]
问题解决了,不过网站运行速度慢了很多? 运行 这个 yum install -y openssl-devel
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* base: centos.sonn.com
* extras: centos.sonn.com
* rpmforge: mirror.webnx.com
* updates: centos.sonn.com
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 2.7 MB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 817 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5 will be updated
---> Package openssl-devel.x86_64 0:1.0.1e-16.el6_5.1 will be an update
--> Processing Dependency: openssl = 1.0.1e-16.el6_5.1 for package: openssl-devel-1.0.1e-16.el6_5.1.x86_64
--> Running transaction check
---> Package openssl.x86_64 0:1.0.1e-16.el6_5 will be updated
---> Package openssl.x86_64 0:1.0.1e-16.el6_5.1 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
openssl-devel x86_64 1.0.1e-16.el6_5.1 updates 1.2 M
Updating for dependencies:
openssl x86_64 1.0.1e-16.el6_5.1 updates 1.5 M
Transaction Summary
================================================================================
Upgrade 2 Package(s)
Total download size: 2.7 M
Downloading Packages:
(1/2): openssl-1.0.1e-16.el6_5.1.x86_64.rpm | 1.5 MB 00:00
(2/2): openssl-devel-1.0.1e-16.el6_5.1.x86_64.rpm | 1.2 MB 00:00
--------------------------------------------------------------------------------
Total 8.9 MB/s | 2.7 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : openssl-1.0.1e-16.el6_5.1.x86_64 1/4
Updating : openssl-devel-1.0.1e-16.el6_5.1.x86_64 2/4
Cleanup : openssl-devel-1.0.1e-16.el6_5.x86_64 3/4
Cleanup : openssl-1.0.1e-16.el6_5.x86_64 4/4
Verifying : openssl-devel-1.0.1e-16.el6_5.1.x86_64 1/4
Verifying : openssl-1.0.1e-16.el6_5.1.x86_64 2/4
Verifying : openssl-devel-1.0.1e-16.el6_5.x86_64 3/4
Verifying : openssl-1.0.1e-16.el6_5.x86_64 4/4
Updated:
openssl-devel.x86_64 0:1.0.1e-16.el6_5.1
Dependency Updated:
openssl.x86_64 0:1.0.1e-16.el6_5.1
Complete!
老大看看是否正常
页:
[1]