#author("2018-08-03T00:25:13+09:00","","")
[[コマンド]]
#author("2018-08-05T11:17:18+09:00","","")
[[CentOS7]]

*SELinuxの無効化しないとポートの変更ができない! [#od809e01]

*SELinuxを無効化しないとポート変更後にsshdが起動できない! [#od809e01]
**SELinuxの無効化 [#gdc10e29]
|BGCOLOR(black):COLOR(white):|c
|[root@centos ~]# getenforce ← SELinux状態確認|
|Enforcing ← SELinux有効|
|[root@centos ~]# setenforce 0 ← SELinux無効化|
|[root@centos ~]# getenforce ← SELinux状態確認|
|Permissive ← SELinux無効|
|[root@centos ~]# vi /etc/sysconfig/selinux ← SELinux設定ファイル編集|
|[root@centos ~]# getenforce &color(lime){← SELinux状態確認};|
|Enforcing &color(lime){← SELinux有効};|
|[root@centos ~]# setenforce 0 &color(lime){← SELinux無効化};|
|[root@centos ~]# getenforce &color(lime){← SELinux状態確認};|
|Permissive &color(lime){← SELinux無効};|
|[root@centos ~]# vi /etc/sysconfig/selinux &color(lime){← SELinux設定ファイル編集};|
|SELINUX=enforcing|
|↓|
|SELINUX=disabled ← システム起動時にSELinuxを無効化|
|SELINUX=disabled &color(lime){← システム起動時にSELinuxを無効化};|


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS