1.下载nginx安装包, 并且安装https模块
nginx需要依赖pcre, zlib, openssl模块,请去相关网站下载
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre= /home/nginx/pcre-8.12
使用make命令编译,不要使用make install,会重新安装,我只使用了make命令就可以了
执行/usr/local/nginx/sbin/nginx -V 查看https模块是否安装,如果出现:configure arguments: --with-http_ssl_module,则说明已经安装
2.要保证IP确实可以正常通信
telnet ip port, 例如:telnet 119.147.42.82 17066
如果出现如下图所示,则说明可以成功;或者ping ip,如果可以通也可以
3.修改hosts
修改linux系统中/etc/