miller
发布于

nginx|openresty 安装

https://openresty.org/en/linux-packages.html#centos

物理机部署,能上网这个更简洁。 nginx切换到openresrty 0成本

# add the yum repo:
wget https://openresty.org/package/centos/openresty.repo
sudo mv openresty.repo /etc/yum.repos.d/openresty.repo

# update the yum index:
sudo yum check-update

 yum install openresty

systemctl status openresty
systemctl start openresty

安装位置 /usr/local/openresty/nginx/conf


sudo systemctl enable openresty  # 开机自动启动

nginx docker的部署

https://www.cnblogs.com/msjhw/p/17420830.html

浏览 (14)
点赞
收藏
评论