linux服务器出现502错误的解决方法

服务器运维2017-03-13

我们发现有些客户自己的linux服务器,有时候会出现502 Bad Gateway 的错误信息

现将处理方法整理如下

第一个crm要升级到最新版本

第二个服务器环境编译一下,编译的脚本如下

cd lnmp0.7-full/ php-5.2.17/

./buildconf –force

./configure –prefix=/usr/local/php –with-config-file-path=/usr/local/php/etc –with-mysql=/usr/local/mysql –with-mysqli=/usr/local/mysql/bin/mysql_config –with-iconv-dir –with-freetype-dir –with-jpeg-dir –with-png-dir –with-zlib –with-libxml-dir=/usr –enable-xml –disable-rpath –enable-discard-path –enable-magic-quotes –enable-safe-mode –enable-bcmath –enable-shmop –enable-sysvsem –enable-inline-optimization –with-curl –with-curlwrappers –enable-mbregex –enable-fastcgi –enable-fpm –enable-force-cgi-redirect –enable-mbstring –with-mcrypt –enable-ftp –with-gd –enable-gd-native-ttf –with-openssl –with-mhash –enable-pcntl –enable-sockets –with-xmlrpc –enable-zip –enable-soap –without-pear –with-gettext –with-mime-magic –without-sqlite –without-pdo-sqlite

make ZEND_EXTRA_LIBS=‘-liconv’

make install

← 返回帮助中心