Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

Linux下安装OpenResty

OpenResty安装前准备

  • Centos:
yum install -y readline-devel pcre-devel openssl-devel gcc GeoIP-devel

  • Debian|Ubuntu
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential libgeoip-dev

geoip-api-c

Home:https://github.com/maxmind/geoip-api-c

wget -c https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz
tar -zxf GeoIP-1.6.12.tar.gz
cd GeoIP-1.6.12/
./configure
make && make install

OpenResty安装

wget https://openresty.org/download/openresty-1.15.8.1.tar.gz
tar -zxf openresty-1.15.8.1.tar.gz
cd openresty-1.15.8.1
./configure --prefix=/usr/local/openresty --with-luajit --with-pcre --with-http_gzip_static_module --with-http_realip_module --with-http_geoip_module --with-http_ssl_module --with-http_stub_status_module
make && make install
# /usr/local/openresty/bin/resty -V
resty 0.23
nginx version: openresty/1.15.8.1
上一篇 CentOS下源码安装OpenSSL
下一篇 CentOS下安装Tomcat