nginx + lua +redis环境搭建

环境搭建,其实主要是lua的环境,这个环境够麻烦的,在网上找了很多前辈的文章,终于完成了

,安装redis
wget http://download.redis.io/releases/redis-3.2.5.tar.gz
tar xzf redis-3.2..tar.gz
cd redis-3.2.
make && make install
mkdir /etc/redis
cp redis.conf /etc/redis/
cp utils/redis_init_script /etc/init.d/redisd ,安装lua
yum install readline-devel
curl -R -O http://www.lua.org/ftp/lua-5.3.3.tar.gz
make linux
报错:readline/readline.h: No such file or directory
解决办法:yum install readline-devel -y
make linux
make install ,安装luajit wget http://luajit.org/download/LuaJIT-2.0.4.tar.gz
makemake install

4,安装openresty
wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
./configure --prefix=/var/openresty/ --with-http_stub_status_module --with-http_perl_module --without-http_map_module  --with-http_ssl_module --with-ld-opt="-Wl,-E" --with-luajit make && make install

修正版...

上一篇:UML 小结(5)- 图解 Rational Rose 的详细安装过程


下一篇:Git 常用命令大全