怎么自己创建一个网站代码,学做网站论坛全部视频,网站建设 阿里云,遵义专业建站一、为什么要用Pycharm链接Docker中的ubuntu
因为在进行深度学习的时候#xff0c;基于windows系统在开发的过程中#xff0c;老是出现很多问题#xff0c;大多数是环境问题。
尽管安装了Conda#xff0c;也不能很好的解决问题#xff0c;使用ubuntu是最好的选择。
二、…一、为什么要用Pycharm链接Docker中的ubuntu
因为在进行深度学习的时候基于windows系统在开发的过程中老是出现很多问题大多数是环境问题。
尽管安装了Conda也不能很好的解决问题使用ubuntu是最好的选择。
二、需要有一个运行了ubuntu的容器 进入这个容器
docker exec -it ubuntu22 /bin/bash 进行一下系统升级并且安装openssh-server
apt update
apt install -y openssh-server启动SSH服务
service ssh start三、开放ubuntu的远程连接
1.设置root密码
root2a1584c779af:/# passwd root
New password:
Retype new password:
passwd: password updated successfully
root2a1584c779af:/# 2.安装VIM
apt install vim
3.编辑配置文件
vim /etc/ssh/sshd_config
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
PasswordAuthentication yes
PubkeyAuthentication yes
4.重启服务
root2a1584c779af:/# service ssh restart* Restarting OpenBSD Secure Shell server sshd [ OK ]
root2a1584c779af:/#
四、PyCharm进行连接 1.这样就属于连接成功了。 五、可能在远程连接的时候会报下面的错误
env: /usr/bin/which: this version of which\ is deprecated; use command -v\ in scripts instead. 需要修改/usr/bin/which脚本文件将echo 2 $0: this version of \which is deprecated; use \command -v in scripts instead.注释掉。 测试运行成功。