-CentOS7からサービスの管理ががらりと変わった。

*主要サービスの再起動 [#b12ffe30]

|SSHD|systemctl restart sshd.service|
|httpd|systemctl restart httpd.service|
|postgres|systemctl start  postgresql.service|

*サービスの確認 [#zeb0637e]

|systemctl status httpd|

*サービスの有効化 [#x49292d5]

|systemctl enable sshd.service|

*firewall [#p33d3942]

 firewall-cmd --permanent --add-port=任意のポート/tcp

**設定の確認 [#d9b3951e]

 firewall-cmd --list-all

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