Problem Description
The same service, the port was not released when the service shut down due to an abnormal exit. When re-enabling the service, it fails to start
Error message: ListenAndServe: listen tcp :8006: bind: address already in use
2022/03/28 16:58:43 ASDK [ERR] Load xxx plugin .so Failed. error:plugin.Open("./_tmp/output/xx/xx"): plugin was built with a different version of package xx/xx
2022/03/28 16:58:43.062 [N] Get xx success
2022/03/28 16:58:43.062 [I] http server Running on http://:8006
2022/03/28 16:58:43.063 [C] ListenAndServe: listen tcp :8006: bind: address already in use
problem solved
1. Use netstat -tulpn to view port usage
netstat -tulpn
2. Find the occupied port (confirm that the service corresponding to the port is the service to be enabled soon)
# 以8006端口为例
netstat -tulpn | grep 8006
return field
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
3. Release the corresponding port
# 6012为对应的PID
kill -9 6012
4. Restart the service successfully