gin-vue-admin cannot be deployed locally, but published to the server

gin-vue-admin cannot be deployed locally, but published to the server

This is because port 8888 is occupied

Enter in the command window: netstat -ano or netstat -aon|findstr "8888"

Find the pid is 16316, then tasklist|findstr 16316, as follows:

 

 

 

Just close python.exe

 

If it does not work, change the port:

1. In config.yaml under gin-vue-admin\server, change 

addr: 8888 改成 其他端口,如 addr: 9999

2. In vue.config.js under H:\GoPro\gin-vue-admin\web, set

 target: `http://127.0.0.1:8888`, change to another port, such as target: `http://127.0.0.1:9999`, 

 

Guess you like

Origin blog.csdn.net/orangapple/article/details/109228107