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?

More than 5 years have passed since last update.

CentOS7で最初にやるコマンド

Last updated at Posted at 2019-10-08

YUM

network

/etc/sysconfig/network-scripts/ifcfg-ens192
/etc/sysconfig/network-scripts/route-ens192

DNS

/etc/resolv.conf

nameserver 8.8.8.8
yum install -y epel-release
yum install -y dstat telnet git rpmdevtools gcc jq java-1.8.0-openjdk-devel bind-utils net-tools wget tcpdump vim traceroute tmux
yum update

hostname

/etc/hostname

hostname <<name.domain>>

hosts

/etc/hosts

NOPASSWDのuser

useradd genuser
usermod -aG wheel genuser

visudoでwheelユーザのNOPASSWD設定を施す

ssh

ssh-keygen -t rsa -b 2048
cat .ssh/id_rsa.pub > .ssh/authorized_keys
chmod 600 .ssh/*
chmod 700 .ssh
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?