1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 新建sqjjg.log文件用来出入日志文件
touch herbPrice.log

sudo chmod -R 777 herbPrice.log

nohup java -jar herb-price-api.jar > herbPrice.log 2>&1 &


server
{
listen 9409;
index index.html;
root /webapp/herbprice/herb-price-eladmin-web/dist/; #dist上传的路径
# 避免访问出现 404 错误
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
}