linux命令

记录一些有用 经常使用的操作命令,源码编译或部署命令等

🚢 Deployment

When you deploy to staging or production, run the following on the deployment server:

acme deploy --staging 

Replace --staging with --prod if deploying production.

🚚 Run Locally

Linux常用命令:

查看某一端口被哪个进程占用

lsof -i:端口号

lsof -i:9000

类似如下输出:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/aa98356c-b56c-4228-a4bb-8cd85b1fbbd0/Untitled.png

netstat命令 netstat -tunpl | grep 端口号

netstat -tunpl | grep 9000

类似如下输出:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6f4f3739-d95e-4023-92e9-1e28a56ba123/Untitled.png

acme typecheck

查找目录及子目录下的某个关键字

find . -name "*.文件扩展名" | xargs grep "关键字"

find . -name "*.php" | xargs grep "[<http://d>](<http://d/>)"

Mac 10.15 系统解决,系统打不开程序app,提示已损坏问题

打开terminal输入以下命令xattr -cr /Applications/XXX.appXXX.app是打开报错的app,可以直接拖入terminal就自动显示该自app路径。

输入之后,再打开你的app就可以了

posted @ 2021-05-13 14:04  yuan_bao_er  阅读(61)  评论(0编辑  收藏  举报