3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

メモ: Oracle Cloud

Last updated at Posted at 2020-03-23
  • Ubuntu 20.04 にて確認。

oci-cliを使うには

成功した方法

apt install -y python3-pip
pip3 install oci
pip3 install oci-cli
~/.local/bin/oci -v

2.9.8

oci setup config

  • oci setup config
    • ap-tokyo-1 を選択
  • ~/.oci/config に鍵やパスフレーズが(yを押していたら)保存される。

oci コマンド

oci os ns get
oci resource-manager job list

Terraformを使う

スクリーンショット_2020-03-24_05-52-54.png

Out of host capacity..

スクリーンショット_2020-03-24_05-47-00.png

ubuntu 20.04

swapの作成
dd if=/dev/zero of=/swapfile bs=1M count=1024
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile

echo "/swapfile swap swap  defaults,nofail 0 0" >> /etc/fstab
iptablesのルールを削除
systemctl disable iptables
dockerのインストール
apt update

apt install -y \
 docker.io \

sudo systemctl enable docker
その他
apt install -y \
 cron \
 ranger \
 screen \
 vim \
 zip

port を開ける方法

  • 8000番を開ける例

スクリーンショット_2020-04-03_13-41-45.png

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?