general
brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
pip3 install **?
pip install --upgrade tensorflow==2.1.0 -i https://pypi.douban.com/simple
run shell file
iterm2
oh-my-zsh
./***.sh
open -e ~/.bash_profile
source .bash_profile
Python
anoconda
[pyenv多环境管理](https://github.com/pyenv/pyenv](https://github.com/pyenv/pyenv)
virtualenv -p python3 base_env
source base_env/bin/activate
spark
ssh远程连接linux服务器
1 在mac上生成密钥对,默认生成位置是~/.ssh
ssh-keygen
- 用scp上一步生成的公钥发送到服务器上,同时执行
cat id_rsa.pub >> ~/.ssh/authorized_keys
- 连接服务器
3.1 直连
ssh -i ~/.ssh/id_rsa user@yourservername
3.2:修改~/.ssh/config
Host server_alias(你的服务器别名)
HostName test.com/192.168.1.1(域名或IP)
Port 22
User user
Identifier id_rsa
然后就可以ssh server_alias
连接了
网友评论