Quantcast
Channel: プログラム の個人的なメモ
Viewing all articles
Browse latest Browse all 860

【Apache】【Linux】 Apache の設定 ~ CentOS編 ~

$
0
0

設定環境

[1] OS     : CentOS

■ Apache をインストールする

# 念のため更新
sudo yum update

# Apacheとヘッダファイルのインストール
sudo yum -y install httpd httpd-devel

# バージョン確認 
httpd -v

■ Apacheの起動/停止

# 起動
systemctl start httpd.service
# 停止
systemctl stop httpd.service

■ Apacheの自動起動

systemctl enable httpd.service
# enabledで表示されたら自動起動が有効になっている
systemctl is-enabled httpd.service

■ Firewallの設定

# firewalldでHTTP/HTTPSを許可
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
# 設定を反映
firewall-cmd --reload
# 確認「http」があればOK
firewall-cmd --zone=public --list-services

動作確認

# 環境のIPアドレスを確認
ip addr

# ブラウザで「http://【IPアドレス】」にアクセスできるか確認

関連記事

Tomcat と Apache を連携させる ~設定 / Linux 編~

http://blogs.yahoo.co.jp/dk521123/36072244.html

Redmine (プロジェクト管理ツール)

http://blogs.yahoo.co.jp/dk521123/36276495.html

Viewing all articles
Browse latest Browse all 860

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>