linux:
- 查询某个应用的安装路径:
- ps -ef|grep redis 查询redis进程号
- ls -l /proc/端口号/cwd 得到安装目录git
git:
- 项目clone:git clone http://用户名:密码@IP:端口/项目路径+名称
- 查询git用户名:git config user.name
- 修改git用户名:git config --global user.name "xxxx",
- 查询git邮箱:git config user.email
- 修改git邮箱:git --global user.email "[email protected]"
macOS:
- 远程连接服务器:ssh -p端口号 用户名@服务器地址