参考笔记,openresty在我们的虚拟机中已经安装,并且访问自己的虚拟机IP也能得到如下也页面,但是要实现视频中的缓存,我们需要修改一些配置。
cd /usr/local/server/lua65/
vim update_content.lua
将这个lua脚本中的IP改成自己虚拟机的IP,然后重启nginx
cd /usr/local/openresty/nginx/sbin/
./nginx -s reload
这里推荐一款开源的Redis可视化工具AnotherRedisDesktopManager
重启后的测试结果: