1. Vue中的代理配置
2. Nginx代理配置
# 把/api路径下的请求转发给真正的后端服务器
location /api {
rewrite ^.+api/?(.*)$ /$1 break;
proxy_pass http://127.0.0.1:8081;
}
# 把/ws路径下的请求转发给真正的后端服务器
location /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://127.0.0.1:8081;
}
3. 部署命令
mkdir /home/temp/heapdump
java -Xms128M -Xmx128M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/temp/heapdump/yeb-server.hprof -jar yeb-server.jar > yeb-server.log
java -Xms128M -Xmx128M -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/temp/heapdump/yeb-mail.hprof -jar yeb-mail.jar > yeb-mail.log