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  --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

猜你喜欢

转载自www.cnblogs.com/richard713/p/9483024.html