LoginSignup
5
5

More than 5 years have passed since last update.

CentOS7インストール覚え書き

Last updated at Posted at 2015-08-06

SELINUX無効化

  • /etc/selinux/config
SELINUX=enforcing

を以下のようにする

SELINUX=disabled

disabledのスペルを間違えるとシステムが起動できなくなるので注意

コンソールの解像度を変更する

vmlinuz vga=773参照

kickstartでepelリポジトリを参照する

repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/7/x86_64/

参照

ntp

# systemctl start ntpd
# systemctl enable ntpd

bind

# systemctl stop named
# systemctl disable named
# systemctl start named-chroot
# systemctl enable named-chroot

# /usr/libexec/setup-named-chroot.sh /var/named/chroot on
systemctl start named-chrootの中で呼ばれているらしい。参照

DNSSEC確認

# dig +dnssec @localhost [domain]
 (省略)
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48625
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

flagsにrdがあること

古いカーネルの削除

# yum -y install yum-utils
# package-cleanup --oldkernels --count=1 -y

uidとgidを500からにしたい

/etc/login.defsを編集する

UID_MIN 1000
GID_MIN 1000

となっているのでそれぞれ500に書き換える

yum updateした後再起動が必要なサービスを調べる

$ sudo yum -y install yum-utils
$ sudo needs-restaring
5
5
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
5
5