-
-
Save yoshiya54/053d6dc487380ceb96e4bf89bb08fd00 to your computer and use it in GitHub Desktop.
新人インフラエンジニアに伝えたい商用環境手順書作成指南書 ref: http://qiita.com/yoshiya64/items/33b14e39d64dd1a2ba72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id -ユーザ確認 | |
pwd -現在地確認 | |
date -作業実施日確認 | |
uname -n -ログインサーバ確認 | |
mkdir -p /work/os -作業ディレクトリ作成 | |
cp -p /etc/sysctl.conf /work/os/sysctl.conf_${date +"%Y%m%d"} -バックアップ取得 | |
ls -l /work/os/sysctl.conf_${date +"%Y%m%d"} -バックアップ確認 | |
cat /etc/sysctl.conf -作業対象ファイルの中身確認 | |
ls -l /etc/sysctl.conf -作業対象ファイルの権限回りの確認 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/sysctl.conf -作業実施後ファイルの中身確認 | |
ls -l /etc/sysctl.conf -作業実施によるファイルの権限回りの変更がないか確認 | |
diff /etc/sysctl.conf /work/os/sysctl.conf_${date +"%Y%m%d"} -変更点の確認 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sysctl -a | grep net.ipv6.conf.all.disable_ipv6 -現行の設定を確認 | |
→net.ipv6.conf.all.disable_ipv6 = 0と出力されていること | |
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf -ファイル編集 | |
sysctl -p -カーネルパラメータの反映 | |
sysctl -a | grep net.ipv6.conf.all.disable_ipv6 -変更した設定が反映されているかを確認 | |
→net.ipv6.conf.all.disable_ipv6 = 1と出力されていること |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipv6を無効にするために、 | |
カーネルパラメータで設定を無効にする。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootユーザで実行すること。 | |
webap01サーバで実施すること。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment