zoukankan      html  css  js  c++  java
  • CentOS 安装OpenResty

    【1】环境部署

    [1] 依赖环境安装

    在环境的任意目录执行命令:yum install pcre-devel openssl-devel gcc curl

    一路手动输入y

    直到Complete,安装完成。

    [2] 增加仓库

    在环境的任意目录执行命令:

    (2.1)yum install yum-utils

    一路手动输入y

    直到Complete,安装完成。

    (2.2)yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo

    增加openresty官网仓库,以便后期更新openresty版本

    [3] 安装命令

    在环境的任意目录执行命令:

    yum install openresty

    一路手动输入y

    直到Complete,安装完成。

    [4] 环境变量

    # vim /etc/profile

    最末添加一行:export PATH=/usr/local/openresty/nginx/sbin:$PATH

    如下图:

    使环境变量立即生效命令:source /etc/profile

    [5] 关闭服务的自启动

    chkconfig openresty off

    [6] 查看版本号

    openresty -v

    备注:openresty默认会安装在目录:/usr/local/openresty

    Good Good Study,Day Day Up.

    顺序 选择 循环 总结

  • 相关阅读:
    Sublime Text3 包管理器、插件安装
    Sublime text3 安装
    VS中的波浪线
    VS的启动方式
    VS常用快捷键
    C#基础性问题
    nginx前端项目发布
    vue父子组件实现数据双向绑定
    常用在线echarts图表
    使用echarts地图踩坑记
  • 原文地址:https://www.cnblogs.com/Braveliu/p/11344903.html
Copyright © 2011-2022 走看看