雑多な技術系メモ

自分用のメモ。内容は保証しません。よろしくお願いします。

apacheのインストールの仕方 centos 0.7以上

    $ yum -y install httpd
    $ systemctl start httpd
    $ systemctl start httpd
    $ systemctl enable httpd
    $ iptables -L --line-numbers  #確認コマンド
    $ iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp --dport http -j ACCEPT  #ipフィルタの80番のポートを開ける
    $ service iptables restart 

以上