后端开发|php教程
openresty,http,ngx,nginx,1.7
后端开发-php教程
企业网站开源源码,ubuntu怎么获得权限,爬虫抢票教程,花都php,ssm和seolzw
Ubuntu 安装
招商源码系统,vscode里面插件样式,如何删除ubuntu,tomcat如何升级,sqlite 代码,网页设计有设计提成吗,dedecms数据库 kkk,域名服务器不包括,手机端懒加载插件,前端图表展示类框架怎么做,爬虫领养,php 匹配中文,咸阳seo优化,springboot常用模式,灵动标签调用图片,拍卖网站源码,淘宝客网页源码,php smarty模板下载,网站 后台 回车不了,java 页面打印,基于swing的管理系统代码,matlab均值滤波程序lzw
安装依赖包
mfc托盘程序源码,vscode的背景图片,ubuntu 全球领先,tomcat粘包半包,影视爬虫接口,php程序员的发展前景,seo搜索工具完整官方版lzw
$ sudo apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
软连接
$ sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/lib/liblua.so
下载安装包
$ http --download /download/ngx_openresty-1.7.10.1.tar.gz$tar -zxvf ...
编译安装
$ ./configure --prefix=/usr/local/openresty --with-pcre-jit--with-ipv6--without-http_redis2_module--with-http_iconv_module-j2$ sudo make$ sudo make install
安装完成之后就可以在
/usr/local/openresty/nginx/conf/nginx.conf 写nginx lua程序了
centos 上的安装
# yum install readline-devel pcre-devel openssl-devel# wget /download/ngx_openresty-1.7.10.1.tar.gz# tar zxvf ngx_openresty-1.7.10.1.tar.gz# cd ngx_openresty-1.7.10.1# ./configure --with-luajit# gmake# gmake install
中间报错
/root/softwares/ngx_openresty-1.7.10.1/build/nginx-1.7.10/../ngx_lua-0.9.15/src/ngx_http_lua_regex.c:1948: undefined reference to `pcre_free_studyobjs/addon/src/ngx_http_lua_regex.o: In function `ngx_http_lua_ffi_destroy_regex:/root/softwares/ngx_openresty-1.7.10.1/build/nginx-1.7.10/../ngx_lua-0.9.15/src/ngx_http_lua_regex.c:2335: undefined reference to `pcre_free_study
参考:/shuaixf/archive//11/16/2773357.html
参考:
/openresty/lua-nginx-module#installation
也可以参考涛哥代码
/blog/2190344
$(function () {$(‘pre.prettyprint code’).each(function () { var lines = $(this).text().split(‘\n’).length; var $numbering = $(”).addClass(‘pre-numbering’).hide(); $(this).addClass(‘has-numbering’).parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(\).text(i)); }; $numbering.fadeIn(1700);}); });
以上就介绍了[openresty]安装nginx_lua,包括了方面的内容,希望对PHP教学有兴趣的朋友有所帮助。