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.

    顺序 选择 循环 总结

  • 相关阅读:
    HDU5120
    POJ 1062
    POJ 1086
    BestCoder 1st Anniversary (HDU 5311)
    HDU 5284
    Dylans loves sequence(hdu5273)
    day65 作业
    第三次小组分享 猴子补丁
    day59 csrf auth
    day58 cookie session 中间件
  • 原文地址:https://www.cnblogs.com/Braveliu/p/11344903.html
Copyright © 2011-2022 走看看