0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Amazon Linux 初期設定(使い捨てプログラミング)

Last updated at Posted at 2025-02-09

Amazon Linux 初期設定

プログラミング勉強などでちょっとLinux触りたい際などに
AWS EC2 で Amazon Linux 起動した際の初期設定。

yum upadte

$ sudo yum update

C言語(gcc)インストール

$ sudo yum -y install gcc

python インストール

$ sudo yum -y install python
$ sudo yum -y install pip

git インストール

$ sudo yum -y git

docker インストール

$ sudo yum -y install docker
$ sudo systemctl start docker
$ sudo systemctl enable docker
$ sudo gpasswd -a $(whoami) docker
$ sudo chgrp docker /var/run/docker.sock
$ sudo service docker restart
$ sudo curl -L "https://github.com/docker/compose/releases/download/v2.33.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/
bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ 
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?