LoginSignup
0
0

More than 1 year has passed since last update.

【自分用】Amazon Lightsailの起動スクリプト

Last updated at Posted at 2021-01-23

image.png

image.png

yum update -y
yum install -y docker
service docker start
usermod -a -G docker ec2-user
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
yum install -y git
yum install -y jq
dd if=/dev/zero of=/tmpswap bs=1024 count=1M
chmod 600 /tmpswap
mkswap /tmpswap
swapon /tmpswap

corret 8

amazon-linux-extras enable corretto8
yum install -y java-1.8.0-amazon-corretto-devel

correto 16

sudo rpm --import https://yum.corretto.aws/corretto.key 
sudo curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
sudo yum install -y java-16-amazon-corretto-devel

nvmはログインしてからでないとできなかた

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install 14
nvm use 14
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