LoginSignup
0
1

More than 5 years have passed since last update.

CentOS7初期設定

Last updated at Posted at 2018-02-20

EC2でCentOS7を立てる時のメモ書き

ホスト名

sudo hostnamectl set-hostname ホスト名

タイムゾーン

sudo timedatectl set-timezone Asia/Tokyo

パッケージ更新

sudo yum update -y

Locale設定

sudo localectl set-locale LANG=ja_JP.utf8

gitインストール

sudo yum install -y git

dockerインストール

sudo yum remove docker \
     docker-common \
     docker-selinux \
     docker-engine
    
sudo yum install -y yum-utils \
     device-mapper-persistent-data \
     lvm2

sudo yum-config-manager \
     --add-repo \
     https://download.docker.com/linux/centos/docker-ce.repo

sudo yum install docker-ce

seliunx 停止

sudo setenforce 0
sudo sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
0
1
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
1