LoginSignup
0
0

More than 5 years have passed since last update.

Python Django 環境セットアップ 3. Cloud Server (Azure IaaS編)

Last updated at Posted at 2018-12-13

はじめに

この記事では、Python Djangoのセットアップを書いてます

手順メモ(サーバーIaaS編)

クラウド環境を作る(アカウントを作る) *PaaSですでにアカウントを作っている人はこの手順をスキップ

以下の手順で作ると、無料で12ヶ月使えます。(2018年12月時点)

  • マイクロソフトアカウントがなければ、作成する
  • Visual Studio Subscriptionを作成する (Optional)
    • https://visualstudio.microsoft.com/ja/dev-essentials/
    • Azureだけ使う場合は不要だが、Azure以外にもいろいろ使えるのであとで便利
      • Azure 無料アカウント (1 年間の無料サービスを含む、最初の月は $200)
      • ユーザー 5 人まで使える、クラウド開発サービス 「Azure DevOps」の アカウント
        • タスク管理、リポジトリ、Pipeline、Build管理 などが作れます
      • Visual Studio App Center
        • モバイルアプリ向けのCI/CD環境、
  • Azure を作る(Main)

無料の仮想マシンを作る

以下のサイトから、無料の仮想マシンが作れます
https://azuremarketplace.microsoft.com/en-us/marketplace/apps/microsoft.freeaccountvirtualmachine?tab=Overview
Azure free account users get up to 1500 free virtual machine hours each month.
Azure free account includes:

  • 750 hours of B1 Standard Linux virtual machine
  • 750 hours of B1 Standard Windows virtual machine
  • 2 P6 (64GiB) managed disks

In order to create a free virtual machine with managed disk, you have to choose the correct parameters such as image, vm size and disk size. This offer helps you select these parameters. Virtual machines created through this offer are free only for users with free account benefits.

image.png

各項目を入れて、作成。HTTP/HTTPS/SSHを有効化

image.png

しばらくすると仮想マシンが完成します。あとはSSHでログインして、Pythonをセットアップするだけ。
image.png

仮想マシンの概要タブから、SSHの接続情報が見れます
image.png

UbuntuのPythonのバージョンが古いので注意

$ python3 --version
Python 3.5.2
$ python2 --version
Python 2.7.12
daisuke@FreeVM:~$ 

関連記事

Python Django 環境セットアップ 1. Local PC
https://qiita.com/dms/items/61fade6b73fdc058703c

Python Django 環境セットアップ 2. Cloud Server (Azure PaaS編)
https://qiita.com/dms/items/042b2cebeb3b21f7121c

Python Django 環境セットアップ 3. Cloud Server (Azure IaaS編)
https://qiita.com/dms/items/6ff9ee4e7158810ee485

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0