{"id":864,"date":"2015-06-07T07:38:43","date_gmt":"2015-06-07T07:38:43","guid":{"rendered":"http:\/\/pingtool.org\/?p=864"},"modified":"2015-07-06T21:33:58","modified_gmt":"2015-07-06T21:33:58","slug":"centos-7-systemctl-tips-and-tricks","status":"publish","type":"post","link":"https:\/\/pingtool.org\/ru\/centos-7-systemctl-tips-and-tricks\/","title":{"rendered":"Centos 7 systemctl \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u044b"},"content":{"rendered":"<p>1. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0441\u0435\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 (\u0430\u043d\u0430\u043b\u043e\u0433 chkconfig &#8212;list)<\/p>\n<p><code>systemctl list-unit-files<\/code><\/p>\n<p>2. \u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 HTTPD + Mysql \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b:<\/p>\n<p><code><br \/>\nsystemctl enable httpd<br \/>\nsystemctl enable mariadb<br \/>\n<\/code><\/p>\n<p>3. \u0417\u0430\u043c\u0435\u043d\u0430 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0430 firewalld \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0439 iptables:<\/p>\n<p><code><br \/>\nsystemctl stop firewalld<br \/>\nsystemctl mask firewalld<\/p>\n<p>yum install iptables-services<\/p>\n<p>systemctl enable iptables<br \/>\nsystemctl start iptables<\/p>\n<p># to save iptables rules use<br \/>\nservice iptables save<\/p>\n<p><\/code><\/p>","protected":false},"excerpt":{"rendered":"<p>1. \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u0432\u0441\u0435\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 (\u0430\u043d\u0430\u043b\u043e\u0433 chkconfig &#8212;list) systemctl list-unit-files 2. \u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 HTTPD + Mysql \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b: systemctl enable httpd systemctl enable mariadb 3. \u0417\u0430\u043c\u0435\u043d\u0430 \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440\u0430 firewalld \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0439 iptables: systemctl stop firewalld systemctl mask firewalld yum install &hellip; <a href=\"https:\/\/pingtool.org\/ru\/centos-7-systemctl-tips-and-tricks\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[26,52,55],"class_list":["post-864","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-mysql","tag-systemd"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/864","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/comments?post=864"}],"version-history":[{"count":6,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/864\/revisions"}],"predecessor-version":[{"id":877,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/864\/revisions\/877"}],"wp:attachment":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/media?parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/categories?post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/tags?post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}