▼ 下記の環境下でフルスクラッチの技術ブログ(本技術ブログ)を構築することが目的。
OS:CentOS
言語:Python
WEBサーバー:Apache
FW:Django
DB:PostgresSQL
※「次ページ」以降の下記ページは、この環境を作ることを目的とした関連記事。
・[2] CentOS7にApacheインストール + アクセス周りの設定
・[3] Let's EncryptのSSL/TLS導入と定期更新
・[4] Python、Djangoインストール + Django起動確認
・[5] Apache + Django + PostgreSQLで本番環境を構築 (インストール編)
・[6] Apache + Django + PostgreSQLで本番環境を構築 (設定編))
$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
$ nslookup example.com
Server: 210.188.224.10
Address: 210.188.224.10#53
Non-authoritative answer:
Name: example.com
Address: 93.184.216.34
$ adduser vpsuser
$ passwd *******
$ yum update
$ cd /etc/ssh
$ cp sshd_config sshd_config.old
$ vim /etc/ssh/sshd_config
PermitRootLogin no ←コメントアウトを解除する
$ vim /etc/ssh/sshd_config
PasswordAuthentication no ←コメントアウトを解除する