サーバ設定
提供:kuhalaboWiki
(版間での差分)
(ページの作成:「#CentOSインストール *Apacheのインストール <pre> yum -y install httpd </pre>」) |
|||
| 1行: | 1行: | ||
| − | #CentOSインストール | + | # CentOSインストール |
| − | + | # Apacheのインストール | |
| − | + | ||
<pre> | <pre> | ||
yum -y install httpd | yum -y install httpd | ||
| + | </pre> | ||
| + | # iptablesの設定 | ||
| + | #* 設定確認 | ||
| + | <pre> | ||
| + | iptables -L | ||
| + | </pre> | ||
| + | #* 設定 | ||
| + | <pre> | ||
| + | vi /etc/sysconfig//iptables | ||
| + | </pre> | ||
| + | |||
| + | <pre> | ||
| + | -A INPUT -p tcp --dport 80 -j ACCEPT | ||
</pre> | </pre> | ||
2015年8月28日 (金) 08:30時点における版
- CentOSインストール
- Apacheのインストール
yum -y install httpd
- iptablesの設定
- 設定確認
iptables -L
- 設定
vi /etc/sysconfig//iptables
-A INPUT -p tcp --dport 80 -j ACCEPT