Nginx
Fu一白芒
新人
展开
-
Nginx的启动、重启、停止
启动 方式一: 1、nginx安装目录地址 -c nginx配置文件地址 /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf 方式二: 1、在sbin目录下使用 ./nginx 2、使用ps -ef|grep nginx查看是否启动成功 停止 1、使用ps -ef|grep nginx查看进程号 2、从容停止:kill -...原创 2019-09-06 01:32:45 · 99 阅读 · 0 评论 -
Nginx负载均衡配置
1、修改Nginx配置文件nginx.conf http{ upstream tomcatserver{ #集群有几台服务器即可配置几台,weight表示权重,权重越大被访问到的几率越大 #这里添加的是启动好的Tomcat服务器 server ip:port weight=1; server ip:port weight=1; } #nginx基本配置 server{ listen 8088; ...转载 2019-09-06 01:41:14 · 69 阅读 · 0 评论 -
Nginx+Tomcat实现动静分离
原文链接:https://blog.csdn.net/u010028869/article/details/50522033转载 2019-09-06 01:45:10 · 76 阅读 · 0 评论 -
nginx的session共享
原文链接:https://blog.csdn.net/xluren/article/details/16951247 原文链接:https://blog.csdn.net/tuesdayma/article/details/81387862 原文链接:https://blog.csdn.net/weixin_30662109/article/details/97738981 ...转载 2019-09-23 13:26:57 · 111 阅读 · 0 评论