Starting ActiveMQ again succeeded.
Note: netsh wlan start hostednetwork is often used to start virtual wifi in dormitories, which may be the reason. However, after starting the virtual wifi, the attempt to start ActiveMQ succeeded, and it is uncertain what program caused the port 6 16 16 to be occupied.