阿里云创建实例与购买服务器和公网IP

随笔11小时前发布 秦雨
5 0 0

 写好的项目,在本地跑,别人访问不到,没有公网ip所以需要购买

阿里云创建实例与购买服务器和公网IP

# 购买阿里云服务器
# 短期或是测试使用,创建 按量收费 服务器,可以随时删除,删除后不再计费,但要保证账户余额100元以上

阿里云创建实例与购买服务器和公网IP

 

阿里云创建实例与购买服务器和公网IP

 

 

 

 

 阿里云服务器是ECS      亚马逊服务器是aws

阿里云创建实例与购买服务器和公网IP

阿里云创建实例与购买服务器和公网IP

 

 

 

选择7.5版本以上,高效云盘(机械硬盘)SSD云盘(闪存)

阿里云创建实例与购买服务器和公网IP

 

 

 

 下一步服务器弄完还有公网IP:

阿里云创建实例与购买服务器和公网IP

 

 

下一步:系统配置 ,要写实例名:例如zs

阿里云创建实例与购买服务器和公网IP

阿里云创建实例与购买服务器和公网IP

 

 创建好 后点击这里

阿里云创建实例与购买服务器和公网IP

   大家都能访问到

找到公网IP 远程能访问到

阿里云创建实例与购买服务器和公网IP

 

 

远程连接阿里云的服务器(按照刚刚的公网IP连接)

xshell下载安装:

https://blog.csdn.net/weixin_47230291/article/details/126905158

 

 

 

远程连接阿里云的服务器47.103.156.13(xshell,finalShell)

阿里云创建实例与购买服务器和公网IP

 

阿里云创建实例与购买服务器和公网IP

 接受并保存

 成功进入以后

阿里云创建实例与购买服务器和公网IP

也可以用桌面右键使用以下连接(不能用cmd他不支持用SSH)

阿里云创建实例与购买服务器和公网IP

 

阿里云创建实例与购买服务器和公网IP

 

跟finalShell一样的使用,访问网站都是80端口

pycharm—–setting—–pro

阿里云创建实例与购买服务器和公网IP

 时区要大写:

阿里云创建实例与购买服务器和公网IP

阿里云创建实例与购买服务器和公网IP

 

阿里云创建实例与购买服务器和公网IP

 

 生成requirements.txt:

 pip install -r requirements.txt

 

阿里云创建实例与购买服务器和公网IP

 

 最后pull上去即可

 

 

 

安全组(0.0.0.0 表示外面所有都可以访问到这个) 不设置否则访问不到

阿里云创建实例与购买服务器和公网IP

 

阿里云创建实例与购买服务器和公网IP

 

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...