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

lsof “command not found" problem in "services start" period #25

Open
BigHoney15 opened this issue Apr 21, 2021 · 1 comment
Open

lsof “command not found" problem in "services start" period #25

BigHoney15 opened this issue Apr 21, 2021 · 1 comment

Comments

@BigHoney15
Copy link

In centos7 system, lsof has been installed in root using yum. But in the services start section, there is still a problem that lsof "command not found". How to solve this problem?
0281f6a02d9f507856a76d686cea849
centos7系统,在运行services start部分,已在root中用yum安装了lsof,但还是会出现lsof未找到命令的问题,应该怎么解决?

@sagewe
Copy link
Collaborator

sagewe commented Apr 25, 2021

try exec:
lsof -i:8080
directly from shell to check if lsof correctly installed.

and try exec:
ssh localhost "lsof -i:8080"
again to check if losf is in search path when exec by ssh

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

2 participants