通过源码安装 出现 make[1] leaving 问题,尝试各种办法不行
可以通过openresty官网 预编译rpm包 安装,
Linux 包
Yichun Zhang (agentzh) , 31 Jul 2016 (created 21 Jul 2016)对于下列 Linux 发行版的种类和版本号,OpenResty 提供官方的预编译包。
- RHEL/CentOS
版本号 支持的体系结构
5.x x86_64, i386
6.x x86_64, i386
7.x x86_64
- Fedora
版本号 支持的体系结构
22 x86_64, i386
23 x86_64, i386
24 x86_64, i386
CentOS
你可以在你的 CentOS 系统中添加 openresty 资源库,这样就可以方便的安装我们的包,以后也可以更新(通过 yum update 命令)。添加资源库,你只用创建一个名为 /etc/yum.repos.d/OpenResty.repo 的文件,内容如下:
[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-$releasever-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1
列出 openresty 资源库里面所有的包:
sudo yum --disablerepo="*" --enablerepo="openresty" list available
然后你可以安装一个包,比如安装 openresty, 像这样:
sudo yum install openresty
在 OpenResty RPM 包 页面能看到这些包更多的细节。
RHEL
你可以在你的 RHEL 系统中添加 openresty 资源库,这样就可以方便的安装我们的包,以后也可以更新(通过 yum update 命令)。添加资源库,你只用创建一个名为 /etc/yum.repos.d/OpenResty.repo 的文件,内容如下:
[openresty]
name=Official OpenResty Repository
baseurl=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/epel-RELEASE-$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/openresty/openresty/pubkey.gpg
enabled=1
enabled_metadata=1
你需要将上面内容中的 RELEASE 替换为你的 RHEL 系统实际的大版本号,比如 5 、6 或者 7。
在 OpenResty RPM 包 页面能看到这些包更多的细节。
Fedora
在 Fedora 系统中你可以这样来启用 openresty 资源库:
sudo dnf install 'dnf-command(copr)'
sudo dnf copr enable openresty/openresty
然后你就可以方便的从 openresty-openresty 资源库中安装和以后更新包(通过 dnf update 命令)。 比如我们可以运行下面的命令来安装 openresty:
sudo dnf install openresty
列出在 openresty-openresty 资源库中所有可用的包, 可以这样
sudo dnf repo-pkgs openresty-openresty list available
在 OpenResty RPM 包 页面能看到这些包更多的细节。
对更多 Linux 发行版的支持
我们欢迎社区贡献更多的 Linux 发行版的打包源。请确保新的安装包尽可能地接近我们现有的 RPM 安装包。非常感谢!
非 Linux 系统的安装包
目前 OpenResty 也提供针对 Windows 系统的二进制安装包,可以从下载页面获取。
具体见
http://openresty.org/cn/linux-packages.html
本文介绍如何在CentOS、RHEL及Fedora等Linux发行版上使用预编译的RPM包安装OpenResty。文章提供了详细的步骤说明,包括如何设置资源库、安装及更新OpenResty。
359

被折叠的 条评论
为什么被折叠?



