windows上安装Linux虚拟机
参考:VMware虚拟机安装
nginx安装
参考:http://www.runoob.com/linux/nginx-install-setup.html
启动nginx
在上面我们将nginx安装在/usr/local/nginx。
通过下面的命令启动:
./sbin/nginx
启动后,在主机浏览器输入虚拟机的IP测试,如图:
说明测试Ok了。
nginx负载均衡、多域名配置
参考:nginx反向代理配置
nginx缓存静态文件
参考:https://linux.cn/article-7726-1.html
nginx session共享
参考:https://cloud.tencent.com/developer/article/1041678