今天在以SSH免密方式,拉取git代码(git pull)时,报错:
WARNING:Your password has expired
今天在以SSH免密方式,拉取git代码(git pull)时,报错:
WARNING:Your password has expired
添加 远程仓库 (如:git remote add origin gogs@106.15.180.999:wenjianbao/git_study.git)
删除 远程仓库 (如:git remote rm origin)
在服务器站点执行 git pull
时,报错:
Your local changes to the following files would be overwritten by merge error: Your local changes to the following files would be overwritten by merge: protected/config/main.php Please, commit your changes or stash them before you can merge.
执行 添加私钥命令时
ssh-add ~/.ssh/id_rsa_wenjianbao
报错:
Could not open a connection to your authentication agent.
执行如下命令,生成 密钥对:id_rsa 和 id_rsa.pub,我想 改名不行吗?
ssh-keygen -t rsa -C "phpgo8642@163.com"
如果在本地需要有多个 ssh key (指私钥), 可以通过如下方法进行管理:
pstree -p 26693 | wc -l ps -ef | wc -l ps -ef | grep httpd | wc -l netstat -ant | grep "ESTABLISHED" | wc -l ps -e|wc -l
Linux下显示系统进程的命令ps,最常用的有ps -ef
和ps aux
。这两个到底有什么区别呢?两者没太大差别,讨论这个问题,要追溯到Unix系统中的两种风格,System V风格和BSD 风格,ps aux
最初用到Unix Style中,而ps -ef
被用在System V Style中,两者输出略有不同。现在的大部分Linux系统都是可以同时使用这两种方式的。
1、Linux容器技术 和 Docker的生态体系,如:Kubernetes、Mesos;
2、服务网格(Service mesh),如:Linkerd、Istio;
跨服务器拷贝需要用到的命令是 scp
把当前文件夹 tempA 拷贝到 目标服务器 10.127.40.25 服务器的 /tmp/wang/ 文件夹下
scp -r /tmp/tempA/ wasadmin@10.127.40.25:/tmp/wang/
其中 wasadmin 是目标服务器的 用户名,执行命令提示输入密码,然后输入密码即可
把当前文件夹 tempA.txt 拷贝到 目标服务器 10.127.40.25 服务器的 /tmp/wang/ 文件夹下
scp /tmp/tempA.txt wasadmin@10.127.40.25:/tmp/wang/
其中 wasadmin 是目标服务器的用户名,执行命令提示输入密码,然后输入密码即可