Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【统一回答】强行释放被占用的端口,以80端口为例! #2

Open
dylanbai8 opened this issue Oct 25, 2018 · 0 comments

Comments

@dylanbai8
Copy link
Owner

dylanbai8 commented Oct 25, 2018

以80端口为例,执行以下命令:

CMD=`lsof -i:"80" | awk '{print $1}' | grep -v "COMMAND" | sort -u` && systemctl disable ${CMD} && systemctl stop ${CMD} && killall -9 ${CMD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant