python2.7 - 如何把python代码放到某个服务器上运行?阿里云,新浪云?有免费的吗?
PHP中文网
PHP中文网 2017-04-18 09:27:51
0
8
448

如何把python代码放到某个服务器上运行?阿里云,新浪云?有免费的吗?
代码有用到redis数据库

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(8)
黄舟

If the poster is a student, you can apply for student certification from Alibaba Cloud or Tencent Cloud. Tencent Cloud student certification costs one yuan per month, domain name costs one yuan per year, and Alibaba costs 9.9 yuan per year. If you are not a student, you can apply to try out Amazon cloud services. , one year free period. As for redis, you can build it yourself on a cloud server, or you can buy it, but the cost is higher

伊谢尔伦

Amazon’s aws is free for one year.

After you get the server, choose a Linux operating system, then install the python and redis environments, and finally upload your python code to the server, configure the environment, and you can run it.

阿神

PaaS platform uses SVN or GIT to upload code. Please refer to the product documentation for details.

Redis should be paid in China. For domestic PaaS platforms, BAE and SAE are recommended. The lowest version of BAE is very cheap, and SAE comes with free beans.

左手右手慢动作

Heroku
has free PostgreSQL
CI and more

伊谢尔伦

Putting the Python code to run on the server actually means putting the code on a machine that has already installed Python and some other components used.
If you want to choose a public cloud, Amazon's AWS is actually relatively good, but it seems that AWS China is only open to enterprise-level users now. There are many processes for personal application, including various phone calls, and you can apply for the United States. Personally, I recommend using Alibaba Cloud or UCloud. If you are unwilling to set up an environment manually, you can directly purchase N-in-one images including python, redis, mysql, nginx, etc. in the cloud market (it is said to be purchased, but in fact many are free, but You need to pay to create an instance). Alibaba Cloud previously had a 1 yuan trial for half a year, and there were other account recommendation activities, but I don’t know if they are available now. If it all costs money, I thought the tariff would be relatively lower when I used UCloud for the first time.
Hope it helps you :)

洪涛

In fact, you can try to deploy it with docker. Several domestic sites seem to have free resources.

Peter_Zhu

openshift

Peter_Zhu

There’s quite a lot of useful stuff

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!