美文网首页
OpenResty安装

OpenResty安装

作者: LiKite | 来源:发表于2018-11-02 11:23 被阅读0次

CentOS

你可以在你的 CentOS 系统中添加 openresty 仓库,这样就可以便于未来安装或更新我们的软件包(通过 yum update 命令)。运行下面的命令就可以添加我们的仓库:

    sudo yum install yum-utils

    sudo yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo

然后就可以像下面这样安装软件包,比如 openresty:

    sudo yum install openresty

如果你想安装命令行工具 resty,那么可以像下面这样安装 openresty-resty 包:

    sudo yum install openresty-resty

命令行工具 opm 在 openresty-opm 包里,而 restydoc 工具在 openresty-doc 包里头。

列出所有 openresty 仓库里头的软件包:

    sudo yum --disablerepo="*" --enablerepo="openresty" list available

进入:/usr/local/openresty 目录下,就是nginx目录,进入bin目录,启动    

cd /usr/local/openresty/bin

./openresty (启动)

openresty -> /usr/local/openresty/nginx/sbin/nginx

我的安装在/usr/local/openresty/nginx/sbin/nginx目录

--启动

/usr/local/openresty/nginx/sbin/nginx

--停止

/usr/local/openresty/nginx/sbin/nginx -s stop

--重启

/usr/local/openresty/nginx/sbin/nginx -s reload

--检验nginx配置是否正确

/usr/local/openresty/nginx/sbin/nginx -t

相关文章

  • openresty起步

    openresty 安装openresty 1、源码安装 安装前准备: 源码下载地址:openresty 解压、安...

  • 运维之OpenResty

    运维之OpenResty 目录 OpenResty简单介绍 在win上安装OpenResty 在linux上安装O...

  • Ansible Role WEB 之【openresty】

    Ansible Role: openresty 安装openresty 介绍 OpenResty® 是一个基于 N...

  • lapis 框架安装试用

    备注: 此次安装使用的是openresty 的openresty-1.11.2.1(openresty-1.11....

  • Openresty-1.11.2.2安装

    Openresty-1.11.2.2安装 OpenResty简介 ​ OpenResty 是一个基于 Ngin...

  • OpenResty 基于 lua-resty-cookie 实现

    openresty 安装 openresty lua-resty-cookie 实现灰度功能

  • 一、安装教程

    安装 添加官方软件包到yum中 安装OpenResty 安装OpenResty 的 CLI工具 检验image.p...

  • openresty

    1、openResty安装 centos 安装 2、openresty配置 nginx匹配规则 服务端获得客户端...

  • Ubuntu 源码安装Kong

    安装openresty 1.下载openssl-1.0.2h 2.下载openresty 官方安装指引:https...

  • nginx openresty

    openResty安装 centos 添加yum仓库,安装 openresty配置 服务端获得客户端的真实ip ...

网友评论

      本文标题:OpenResty安装

      本文链接:https://www.haomeiwen.com/subject/umvqxqtx.html