openresty 1.13.6.2 的编译安装使用,
openresty 1.13.6.2 的编译安装使用,
openresty 1.13.6.2 的编译安装使用
环境:cent os
- 编译
wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
tar xvf openresty-1.13.6.2.tar.gz
cd openresty-1.13.6.2
./configure
make
- 启动
cd /opt/interlive/openresty-1.13.6.2/build/nginx-1.13.6/objs
./nginx
有错误
libluajit-5.1.so.2 => not found
查找库的位置
find / -name libluajit-5.1.so.2
/opt/interlive/openresty-1.13.6.2/build/luajit-root/usr/local/openresty/luajit/lib/libluajit-5.1.so.2
加入链接库查找目录
这个目录
/opt/interlive/openresty-1.13.6.2/build/luajit-root/usr/local/openresty/luajit/lib/
vim /etc/ld.so.conf.d/libc.conf
运行
./ldconfig
评论暂时关闭