LINUX安装OPENRESTY

1 安装OPENRESTY

1.1添加仓库执行命令

yum install yum-utils
yum-config-manager --add-repo https://openresty/package/centos/openresty.repo

1.2.执行安装

 yum install openresty

1.3.安装成功后 会在默认的目录如下

 /usr/local/openresty

2.1. 启动OPENRESTY

 openresty 

2.2. 重启OPENRESTY

 openresty -s reload

2.3. 停止OPENRESTY

 openresty -s stop

更多推荐

linux安装openresty