None of them respond after `dfx sub_command`

I’m trying my first Motoko project on dfinity/examples/motoko /counter following Readme. I started by running dfx start --background, which executes normally. Then I run dfx deploy, but it gives no response at all.

I’ve also tried dfx build and dfx canister commands — none of them respond either.

I tried changing the port, and it immediately throws a 502 status code error, which suggests that the port configuration is correct. How can I resolve this issue?