Last active
December 16, 2015 10:19
-
-
Save abarth500/5418875 to your computer and use it in GitHub Desktop.
[情報科学科実験I] ネットワークの設定
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
#ファイアウォールで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エディタでの作業になります。 | |
#下の手順を読んで作業してください。 | |
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
#viの使い方は検索エンジン等で各自調べてください。 | |
#次の行を見つける | |
SELINUX=enforcing | |
#以下の様に書きかえる | |
SELINUX=disabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment