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

Linux 常用命令(备忘) #30

Open
weekeight opened this issue Sep 9, 2015 · 0 comments
Open

Linux 常用命令(备忘) #30

weekeight opened this issue Sep 9, 2015 · 0 comments

Comments

@weekeight
Copy link
Owner

weekeight commented Sep 9, 2015

  1. 查看端口占用情况 lsof -i:8080netstat -an | grep 8000
  2. 查看进程 ps aux | grep google
  3. 查看系统进度占用内存 top -pid xxx
  4. 查看正在改变的日志文件 tail -f Filename
  5. 多个文件中查找字符串 grep -rin teststring Filename
  6. pm2 启动应用时指定 node 解析器 NODE_ENV=prod PORT=3333 pm2 start bin/server.js --name alife --interpreter=./node_modules/.bin/node
  7. 查看命令绝对路径 which xx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant