linux 安装nginx 集成emq

1:下载nginx-1.12.2.tar.gz

http://nginx.org/en/download.html

2:解压

tar -zxvf  nginx-1.12.2.tar.gz

3:进行configure配置

 进入解压后的路径

执行

./configure --prefix=/usr/local/nginx/nginx  --with-stream

其中--with-stream是给nginx增加tcp代理

可能会遇到问题./configure: error: the HTTP rewrite module requires the PCRE library.

执行 sudo apt-get update

apt install yum

yum -y install zlib zlib-devel openssl openss

 yum repolist all

 

posted @ 2018-08-15 18:02  小鹏713  阅读(547)  评论(0编辑  收藏  举报