Pycharm 远程连接Linux服务器


1. File -> Settings -> Project ->Project Interpreter -> Add(设置)

进入Add Pyth Interpreter界面

2. 点击SSH Interpreter

a. Host(IP地址)

b. Username(用户名)

c. Password(密码)

d. Interpreter(默认连接的是Linux系统中的python2版本,所以将其改为usr/bin/python3可连接python2版本)

3. File -> Settings -> Build,Execution, Deployment -> Deployment(右侧界面)

a. 设置Root path (本地代码上传到服务器的路径)

b. 填写user name, password

c. 点击Mappings 设置Local path(本地代码路径)

4. 通过SmarTTY SSH进入服务器

sudo chmod -R 777 your_server_file_name_of_upload_code


参考资料:

https://www.cnblogs.com/junxun/p/8287998.html

猜你喜欢

转载自blog.csdn.net/attitude_yu/article/details/80943669