Skip to content

Instantly share code, notes, and snippets.

@abarth500
Last active December 16, 2015 10:19
Show Gist options
  • Save abarth500/5418875 to your computer and use it in GitHub Desktop.
Save abarth500/5418875 to your computer and use it in GitHub Desktop.
[情報科学科実験I] ネットワークの設定
#ファイアウォールでWebサーバへの接続を許可する
sudo firewall-cmd --add-service=http
sudo firewall-cmd --permanent --add-service=http
#SELinuxを無効にする
sudo setenforce 0
#次回立ち上げ時もSELinuxを無効にする
sudo vi /etc/sysconfig/selinux
#ここからはviエディタでの作業になります。
#下の手順を読んで作業してください。
#viの使い方は検索エンジン等で各自調べてください。
#次の行を見つける
SELINUX=enforcing
#以下の様に書きかえる
SELINUX=disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment