當時的部署步驟以下:java
安裝部署了tomcat應用nginx
開了應用端口號,保存web
在nginx服務器配置文件$nginx/conf/nginx.conf上添加了新增的應用服務器spring
重啓nginx:../sbin/nginx -s reloadtomcat
查看新增的tomcat應用日誌,發現有如下警告:服務器
2019-08-22 16:56:35,491 [localhost-startStop-1] WARN org.springframework.aop.framework.CglibAopProxy - Unable to proxy method [public final java.lang.Object com.tmri.app.web.ctrl.AppLshpCtrl.uploadPhoto(org.springframework.web.multipart.MultipartHttpServletRequest,com.tmri.bus.bean.sys.NetSysLog) throws java.io.IOException] because it is final: All calls to this method via a proxy will NOT be routed to the target instance.app
經檢查,原來是在第3步修改配置文件的新增的應用服務器的端口號寫錯了,本來是7116,複製粘貼別處配置內容時,只改了IP,大意沒改端口號ide
upstream app_server{this
#舊spa
server 192.168.1.99 : 7116 max_fails=1 fail_timeout = 30s;
#新增
server 192.168.1.100 : 7226 max_fails=1 fail_timeout = 30s;
server 192.168.1.101 : 7226 max_fails=1 fail_timeout = 30s
}
修改配置端口號後,重啓nginx服務,檢查新部署應用log,無以上警告,正常工做了