centos6.5 安装openresty

【1】centos6.5 安装openresty步骤nginx

(1)基础依赖库安装vim

1.1 yum install pcre-devel openssl-devel gcc curlcentos

(2)openResty安装curl

2.1 安装yum-utilsurl

yum install yum-utilsspa

2.2 增长openresty官网仓库rest

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

2.3 安装openrestyopenssl

yum install openresty基础

(3)配置环境变量

将nginx的可执行程序目录添加至环境变量PATH中:

3.1 vim /etc/profile

在文章的末尾,添加一行:

export PATH=/usr/local/openresty/nginx/sbin:$PATH

3.2 使配置生效

source /etc/profile

(4)关闭自启动

4.1 将全部级别下该服务的自启动关闭

chkconfig openresty off

备注:

(1)全部命令没有特殊说明的,一路选择Y便可。

(2)全部命令没有特殊强调的,在任意目录下执行都可。

 

Good Good Study, Day Day Up.

顺序 选择 循环 总结

相关文章
相关标签/搜索