Centos使用过程中的笔记

Posted by Xiaosa's Blog on June 21, 2020

centOS 安装 git

centOS 源里的git版本太老 所以需要手动添加别的源

安装源

yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm

安装git

yum install git

更新git

yum update git


linux 使用 ssh公钥免密登录

在本地生成公钥

ssh-keygen

把公钥放到服务区

ssh-copy-id -i ~/.ssh/id_rsa.pub yourAccount@yourHost


macOS 实用 alias

alias code=”/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code” alias proxy=’export all_proxy=socks5://127.0.0.1:1080 # 配合梯子使用 需配置 alias whereAmI=’curl cip.cc’ alias newWechat=’open -n /Applications/WeChat.app/Contents/MacOS/WeChat’ alias noCorsChrome=’open -a Google\ Chrome –args –disable-web-security –user-data-dir=/Users/didi’ alias unproxy=’unset all_proxy’