( ! ) Deprecated: Return type of GeoIp2\Model\AbstractModel::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Model/AbstractModel.php on line 58
Call Stack
#TimeMemoryFunctionLocation
10.0001440040{main}( ).../index.php:0
20.0054578744GeoIp2\Database\Reader->country( $ipAddress = '34.229.151.93' ).../index.php:7
30.0054578744GeoIp2\Database\Reader->modelFor( $class = 'Country', $type = 'Country', $ipAddress = '34.229.151.93' ).../Reader.php:87
40.0126584120Composer\Autoload\ClassLoader->loadClass( $class = 'GeoIp2\\Model\\Country' ).../Reader.php:198
50.0126584072Composer\Autoload\includeFile( $file = 'phar:///www/lnmpp.aite.xyz/geoip.xqd/vendor/composer/../../src/Model/Country.php' ).../ClassLoader.php:301
60.0126584352include( 'phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Model/Country.php ).../ClassLoader.php:412
70.0126584352Composer\Autoload\ClassLoader->loadClass( $class = 'GeoIp2\\Model\\AbstractModel' ).../Country.php:35
80.0126584464Composer\Autoload\includeFile( $file = 'phar:///www/lnmpp.aite.xyz/geoip.xqd/vendor/composer/../../src/Model/AbstractModel.php' ).../ClassLoader.php:301
90.0126584736include( 'phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Model/AbstractModel.php ).../ClassLoader.php:412

( ! ) Deprecated: Return type of GeoIp2\Record\AbstractRecord::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Record/AbstractRecord.php on line 56
Call Stack
#TimeMemoryFunctionLocation
10.0001440040{main}( ).../index.php:0
20.0054578744GeoIp2\Database\Reader->country( $ipAddress = '34.229.151.93' ).../index.php:7
30.0054578744GeoIp2\Database\Reader->modelFor( $class = 'Country', $type = 'Country', $ipAddress = '34.229.151.93' ).../Reader.php:87
40.0128584720GeoIp2\Model\Country->__construct( $raw = ['continent' => ['code' => 'NA', 'geoname_id' => 6255149, 'names' => [...]], 'country' => ['geoname_id' => 6252001, 'iso_code' => 'US', 'names' => [...]], 'registered_country' => ['geoname_id' => 6252001, 'iso_code' => 'US', 'names' => [...]], 'traits' => ['ip_address' => '34.229.151.93']], $locales = [0 => 'en'] ).../Reader.php:198
50.0128584720Composer\Autoload\ClassLoader->loadClass( $class = 'GeoIp2\\Record\\Continent' ).../Country.php:52
60.0128584704Composer\Autoload\includeFile( $file = 'phar:///www/lnmpp.aite.xyz/geoip.xqd/vendor/composer/../../src/Record/Continent.php' ).../ClassLoader.php:301
70.0128585624include( 'phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Record/Continent.php ).../ClassLoader.php:412
80.0128585624Composer\Autoload\ClassLoader->loadClass( $class = 'GeoIp2\\Record\\AbstractPlaceRecord' ).../Continent.php:25
90.0128585752Composer\Autoload\includeFile( $file = 'phar:///www/lnmpp.aite.xyz/geoip.xqd/vendor/composer/../../src/Record/AbstractPlaceRecord.php' ).../ClassLoader.php:301
100.0128586032include( 'phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Record/AbstractPlaceRecord.php ).../ClassLoader.php:412
110.0128586032Composer\Autoload\ClassLoader->loadClass( $class = 'GeoIp2\\Record\\AbstractRecord' ).../AbstractPlaceRecord.php:5
120.0128586160Composer\Autoload\includeFile( $file = 'phar:///www/lnmpp.aite.xyz/geoip.xqd/vendor/composer/../../src/Record/AbstractRecord.php' ).../ClassLoader.php:301
130.0128586432include( 'phar:///www/lnmpp.aite.xyz/geoip.xqd/src/Record/AbstractRecord.php ).../ClassLoader.php:412
Linux nginx mysql  pgsql php-fpm
一键部署LNMPP环境方法
wget http://lnmpp.aite.xyz/lnmpp_x86 -O lnmpp && chmod +x lnmpp && ./lnmpp
wget http://lnmpp.aite.xyz/lnmpp_x86 -O lnmpp && chmod +x lnmpp && ./lnmpp binary
wget http://lnmpp.aite.xyz/lnmpp_x86 -O lnmpp && chmod +x lnmpp && ./lnmpp --disablemysql
wget http://lnmpp.aite.xyz/lnmpp_x86 -O lnmpp && chmod +x lnmpp && ./lnmpp --disablepostgresql
使用离线资源包对LNMPP进行快速部署
资源包重命名为xiaoqidun.tar.bz2且保持lnmpp二进制在资源包同一目录然后执行chmod +x lnmpp && ./lnmpp
部署LNMPP的主机的系统yumapt可用
lnmpp需要借助你系统的yum或apt来安装gcc等编译工具及依赖,如果没有网络你可以使用centos或debian的dvd本地源实现lnmpp环境安装。
小技巧避免在安装环境过程中SSH断线问题
避免断线我们需要一个工具,叫做screen。首先我们需要安装它,如果你是centos系统那么请执行yum -y install screen,当然你是debian用户的话就请你执行apt-get -y install screen来完成对screen的安装。安装screen之后请在终端执行screen -SU lnmpp,执行过后将进入screen界面,此时请你执行lnmpp部署命令。在screen中部署环境时如果需要离开请按ctrl+a+d,此时screen将在后台运行,你可以大胆断开ssh去喝茶。喝茶回来了,想看看安装进度?没问题,ssh重新连接上主机,在终端执行screen -rU lnmpp既可进入当时挂在后台安装lnmpp的界面,如果没成功进去,那么可以试看screen -xU lnmpp,如果还想喝茶,请重复刚才的步骤,如果这二种方法都进不去说明screen进程挂了,用screen --wipe清除死去的screen会话吧。