当前位置:网站首页>pycharm connect to remote server
pycharm connect to remote server
2022-08-08 00:23:00 【Wei Gongcun Ouyang Nana】
Implementation:
Win10 local project and linux server are updated synchronously (only synchronous upload); run code with local pycharm+ server python environment
Tools:
MobaXterm, pycharm2020 (Pro)
1. Configure the interpreter for the project after creating a new project
2. Select add→SSH interpreter
3. Create a new one, fill in the server account username and password, and test whether the connection is successful. Note that the port number is filled in port
4. After the connection is completed, next→interpreter select the server interpreter environment→sync folders select the folder after the local project is mapped in the past (create a new folder on the server in advance)
The configuration is complete, and another project directly selects exiting→configured interpreterJust do it.
5. Set, upload and download here.Automatic update can be set

After iinterpreter is configured, a corresponding connection will be generated in deployment →configuration, mapping is local andRemote folder mapping.
If you don't need a remote interpreter, configure the connection directly in the configuration.The main thing that needs to be set is the folder mapping.If multiple projects are running at the same time, they should be added at the same time.
6. The lower left corner shows that the automatic upload is complete. If the file is very large, there may be insufficient running memory. You can modify the Xmx size according to the prompts

Debug the project in pycharm. After the debugging is completed, ctrl+s, the file will be automatically updated to the server.If not, check that the file mapping is correct.Run can use MobaXterm can also use cmd.
The command for cmd to connect to the server is as follows
(-o ServerAliveInterval=30 solves the problem of total disconnection)
#ServerAliveInterval=30 to ensure the connection is stable and not disconnected ssh -o ServerAliveInterval=30 [email protected]*.* -p (port)边栏推荐
猜你喜欢

Stack SQL injection, rounding

High performance cloud storage MinIO combat - native data object

继承关系下构造方法的访问特点

梅科尔工作室-钟伊帆-小熊派学习笔记(网络应用开发)

结合实际聊聊防反接电路(防反接电路总结)

分布式一致性协议 之 Lease机制

【2022牛客多校第六场 Z题 Game on grid】dp

2021 RoboCom 世界机器人开发者大赛-本科组(决赛)7-1绿色围栏(模拟)

Flexible and easy-to-use sql monitoring script part6

MYSQL高级篇-----索引优化分析
随机推荐
北汽版“坦克300”,安全、舒适一个不落
存储系统架构演变
设计循环队列
合并两个有序数组
5、基于EasyExcel的导入导出
Antdv+Asp.net WebApi Development of Student Information Management System (1)
2021 RoboCom 世界机器人开发者大赛-本科组(决赛)7-1绿色围栏(模拟)
Stream did not contain valid UTF-8 ——vs code 中 rust在debug时报错,中文乱码问题
【数据挖掘】滴滴公司数据挖掘工程师笔试题
DataNode Disk Detection Service
Rest风格操作
故障:不能打开 Office 应用程序,并指示有账户正在登录
TP5 怎么随机查询8条数据?order(‘rand()‘)报错
记一个Thinkphp3老项目 设置模板多重继承
MySQL笔记-05 数据表操作
solidworls view and model and drawing operation shortcuts
阿包的夜宵
程序后台运行并实时输出日志
在 SAPGUI 里使用 ABAP 报表上传 SAP UI5 应用到 ABAP 服务器试读版
【目标检测】------xml操作