我尝试了这个文档http://openresty.org/en/getting-started.html,但是我遇到了一个"content_by_lua_block“的问题
然后,我尝试了这个文档https://www.digitalocean.com/community/tutorials/how-to-use-the-openresty-web-framework-for-nginx-on-ubuntu-16-04,在使用"systemd“运行Openresty时遇到了问题。
我只有一个干净的Digitalocean水滴,想在上面安装Openresty并使用lua。有没有标准的和可用的文章来安装Openresty和配置它?
发布于 2019-07-10 19:23:52
我在一段时间前为个人使用构建了resty-install.sh。也许你可以使用它(按原样,或者稍微修改一下)。
不过要注意:它确实为openresty安装了一个自定义启动脚本,使其在当前目录中查找openresty.conf,而不是在安装目录中查找nginx.conf。(脚本的第50行)
此外,它还将一个示例配置写入/usr/local/openresty/example.conf,这可能不是您需要的。(55行之后的所有内容)
发布于 2019-07-10 21:27:22
已修复。我再次阅读了这篇文章https://www.digitalocean.com/community/tutorials/how-to-use-the-openresty-web-framework-for-nginx-on-ubuntu-16-04
问题是我们应该在第3步之前杀死已经在端口80上运行的Openresty
https://stackoverflow.com/questions/56969411
复制相似问题