美文网首页
mac environment

mac environment

作者: YueTan | 来源:发表于2020-02-23 08:05 被阅读0次

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

  1. 用scp上一步生成的公钥发送到服务器上,同时执行
    cat id_rsa.pub >> ~/.ssh/authorized_keys
  2. 连接服务器
    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连接了

相关文章

网友评论

      本文标题:mac environment

      本文链接:https://www.haomeiwen.com/subject/dxybfctx.html