10.34.59.230
防火墙
放行端口
// RabbitMQ
15672 1883
// Nacos
8848
// Redis
6379
// 一体机项目
18089 18082 18085
Hosts
修改 /etc/hosts
10.34.59.230 rabbitmq.server
10.34.59.224 proxy.server //原来的服务器,走政务网的代理
10.34.59.230 nacos.server
10.34.59.230 redis.server
10.34.59.230 mysql.server
10.34.59.230 auth.server
RabbitMQ
安装位置:/home/jacklu/rabbitmq_server-3.9.7
安装教程:CentOS7下RabbitMQ安装
登录地址:http://10.34.59.230:15672
登录账号:admin
登录密码:StrongPassword
Nacos
安装位置:/home/jacklu/nacos
安装教程:CentOS7下Nacos安装
登录地址:http://10.34.59.230:8848
登录账号:nacos
登录密码:nacos
Redis
安装位置:/www/server/redis
配置文件:/www/server/redis/redis.conf
密码:Unicom@123
修改bind为0.0.0.0
MySQL
安装位置:/www/server/mysql
名称:lyb_terminal
账号:lyb_terminal
密码:WMNTbiE3zSEB2DL4
便民终端前端
客户端
项目地址:https://gitee.com/yc_china_unicom/vue-auto-service-machine-yc
打包命令:npm run build,打包成功后,会在dist目录下生成index.html和static文件夹,将dist下所有文件复制到你需要的目录下/www/wwwroot/c-web.unicom.com。
宝塔下网站-Nginx配置,第一行 listen 18089
location / {
root /www/wwwroot/c-web.unicom.com;
add_header Cache-Control no-cache;
add_header Pragma no-cache;
add_header Expires 0;
#root /usr/local/p-manager/web/v-web;
#root /usr/local/nginx/html;
index index.html index.htm;
}
location /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:18085;
}
location /devicePic/ {
root /usr/local/nginx/html;
}
location /ad/ {
root /usr/local/nginx/html;
}
location /backSrc {
proxy_pass http://127.0.0.1:18089;
rewrite /backSrc/(.*)$ /$1 break;
}
location /service/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8010;
}
管理端
项目地址:https://gitee.com/yc_china_unicom/v-web
打包命令:npm run build
拷贝dist下面文件
Nginx配置,第一行 listen 18082
location / {
root /www/wwwroot/v-web.unicom.com;
index index.html;
}
location /api/ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-Port $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:18085;
}
location /backSrc {
proxy_pass http://127.0.0.1:18089;
rewrite /backSrc/(.*)$ /$1 break;
}
location /api/v1/device/webSocket {
proxy_pass http://127.0.0.1:18085; # 后台 API 地址
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_read_timeout 120s;
proxy_set_header Upgrade websocket;
proxy_set_header Connection Upgrade;
}
便民终端后端
Auth
位置:/home/jacklu/p-manager/auth-0.0.1-SNAPSHOT.jar
执行:./run-auth-1.sh
Account
位置:/home/jacklu/p-manager/account-0.0.1-SNAPSHOT.jar
执行:./run-account-2.sh
Gateway
位置:/home/jacklu/p-manager/gateway-0.0.1-SNAPSHOT.jar
执行:./run-gateway-3.sh
Device
位置:/home/jacklu/p-manager/device-0.0.1-SNAPSHOT.jar
执行:./run-device-4.sh
Trade
位置:/home/jacklu/p-manager/p-trade-0.0.1-SNAPSHOT.jar
执行:./run-trade-5.sh