xinre / accumulate

All the things I've accumulated in my career
1 stars 0 forks source link

常用npm git命令 #3

Open xinre opened 3 years ago

xinre commented 3 years ago

1. 常用git命令

2. 常用npm命令

3. 常用yarn命令

4. linux 命令

ps aux |grep nginx

ps:要对进程进行监测和控制,首先必须要了解当前进程的情况,也就是需要查看当前进程,而ps命令就是最基本同时也是非常强大的进程查看命令.使用该命令可以确定有哪些进程正在运行和运行的状态、进程是否结束、进程有没有僵尸、哪些进程占用了过多的资源等等.总之大部分信息都是可以通过执行该命令得到的.

ps 后面的值

-e 显示所有进程。 -f 全格式。 -h 不显示标题。 -l 长格式。 -w 宽输出。 a 显示终端上的所有进程,包括其他用户的进程。 r 只显示正在运行的进程。 u  以用户为主的格式来显示程序状况。 x 显示所有程序,不以终端机来区分。

grep 命令是一种强大的文本搜索工具,它能[使用正则表达式]搜索文本,并把匹 配的行打印出来。grep全称是Global Regular Expression Print,表示全局正则表达式版本,它的使用权限是所有用户

xinre commented 3 years ago

git 报 SSL_ERROR_SYSCALL in connection to github.com:443 push 不上代码问题

重置本机git设置 git config --global credential.helper store 或 git config --global --unset http.proxy git config --global --unset https.proxy git config --global --unset http.https://github.com.proxy git config --global --unset https.https://github.com.proxy git config --global --unset http.proxy git config --global --unset https.proxy

xinre commented 1 year ago

git 超时解决 在cmd下执行 ipconfig/flushdns,清理DNS缓存