Last active
January 29, 2018 13:31
-
-
Save lightondust/d1c38cff8a3178ded4715ca1623d5b48 to your computer and use it in GitHub Desktop.
about_aws.ipynb
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
{ | |
"cells": [ | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "d1c38cff8a3178ded4715ca1623d5b48" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "# iptables" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "- 設定を見る: \n`iptables -L --line-numbers`\n - テーブル指定: \n `iptables -L -t nat`" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "- 削除: \n `iptables -t nat -D PREROUTING 1`" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "変更後再起動\n\n`service iptables restart`" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "# swap領域" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "https://qiita.com/na0AaooQ/items/278a11ed905995bd16af" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "## 作成" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "1. スワップファイルをつくる: \n```dd if=/dev/zero of=/swapfile1 bs=1M count=512```\n\n2. スワップファイルの権限: \n`chmod 600 /swapfile1`\n\n3. スワップファイルをフォーマット:\n`mkswap /swapfile1`\n\n4. スワップファイルを有効か:\n`swapon /swapfile1` \n\n\n- スワップファイル一覧をみる:`swapon -s`\n- メモリー状態を確認:`free`\n- システム稼働状況:`top`(トップ画面で'h':help、'>'と'<'でソートを変える)" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "## 削除" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "1. swapoff /swapfile1\n2. rm -f /swapfile1" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "# Apache" | |
}, | |
{ | |
"metadata": {}, | |
"cell_type": "markdown", | |
"source": "Cookie値取得 \nhttps://serverfault.com/questions/48971/how-can-i-log-information-about-cookies\n\nconfに`%{cookiename}C`と記述" | |
}, | |
{ | |
"metadata": { | |
"trusted": false | |
}, | |
"cell_type": "code", | |
"source": "", | |
"execution_count": null, | |
"outputs": [] | |
} | |
], | |
"metadata": { | |
"_draft": { | |
"nbviewer_url": "https://gist.github.com/d1c38cff8a3178ded4715ca1623d5b48" | |
}, | |
"gist": { | |
"id": "d1c38cff8a3178ded4715ca1623d5b48", | |
"data": { | |
"description": "about_aws.ipynb", | |
"public": true | |
} | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3", | |
"language": "python" | |
}, | |
"language_info": { | |
"name": "python", | |
"version": "3.6.2", | |
"mimetype": "text/x-python", | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"pygments_lexer": "ipython3", | |
"nbconvert_exporter": "python", | |
"file_extension": ".py" | |
}, | |
"toc": { | |
"nav_menu": {}, | |
"number_sections": true, | |
"sideBar": true, | |
"skip_h1_title": false, | |
"toc_cell": false, | |
"toc_position": {}, | |
"toc_section_display": "block", | |
"toc_window_display": false | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment