LoginSignup
1
1

More than 5 years have passed since last update.

CentOS 7 @さくらのVPS 環境設定備忘録

Last updated at Posted at 2016-03-17

インストールOS

  • CentOS 7
  • yum update

ひとまずのツール

  • vim (入ってないんだね!)
  • screen

セキュリティまわり1

VPS 借りたら、せめてこれくらいはやっとけというセキュリティ設定
を参考に

  • rootログインの禁止
  • 作業用ユーザの作成
  • sudoersの設定
  • 鍵の配置
  • パスワードログインの禁止

そのほか

これは CentOS 6 だけど、 はじめてでも爆速でCentOS6.6(さくらのVPS)をセキュアにセットアップする方法まとめ
も参考に

  • etckeeper 無い!!
  • yum install epel-release
  • etckeeperのインストール

ネットワークまわり

iptables がなくなったので、 firewalld を確認。


[root@**** ~]# firewall-cmd --list-all
public (default, active)
  interfaces: eth0
  sources:
  services: dhcpv6-client ssh
  ports:
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:

この、ポートに名前つける習慣やめてほしいんだけど、それはそれとしてこれでいいや。

保守系統

  • yum-cron のインストール、勝手にオンになる
  • mailx のインストール
  • logwatch
  • yum remove cronie-anacron
  • yum install cronie-noanacron
1
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
1
1