{"id":1282,"date":"2014-12-23T00:56:20","date_gmt":"2014-12-22T15:56:20","guid":{"rendered":"http:\/\/www.nightmare-yk.com\/?p=1282"},"modified":"2016-02-23T12:57:18","modified_gmt":"2016-02-23T03:57:18","slug":"centos7-%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e7%b7%a8","status":"publish","type":"post","link":"http:\/\/www.nightmare-yk.com\/?p=1282","title":{"rendered":"CentOS7 -\u57fa\u672c\u64cd\u4f5c\u7de8-"},"content":{"rendered":"<p>web\u306e\u30dd\u30fc\u30bf\u30eb\u30b5\u30a4\u30c8\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u304b\u30891\u5e74\u4ee5\u4e0a\u7d4c\u3063\u3066\u3044\u308b\u306e\u306b\u6700\u8fd1\u6c17\u304c\u3064\u304d\u3001\u9a5a\u3044\u3066\u3044\u307e\u3059\u3002\u65e5\u3005\u6642\u9593\u306f\u9032\u3080\u3057\u3001\u6280\u8853\u306f\u9032\u6b69\u3059\u308b\u3057\u3001\u3064\u3044\u3066\u3044\u304f\u306e\u3082\u5927\u5909\u3067\u3059\u306d\u3002\u3002\u3002<\/p>\n<p>\u524d\u7f6e\u304d\u306f\u3055\u3066\u304a\u304d\u3001CentOS7\u306f\u3060\u3044\u3076\u524d\u306b\u516c\u958b\u3055\u308c\u307e\u3057\u305f\uff57\uff57\uff57<br \/>\n\u4eca\u66f4\u306a\u304c\u3089\u306e\u60c5\u5831\u3067\u3059\u304c\u3001\u305f\u307e\u306b\u306f\u6280\u8853\u30d6\u30ed\u30b0\u7684\u306a\u4e8b\u3082\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>CnetOS7\u306b\u306a\u3063\u3066\u3001\u3044\u308d\u3044\u308d\u3068\u5909\u308f\u308a\u307e\u3057\u305f\u3002\u7ba1\u7406\u306e\u30b3\u30de\u30f3\u30c9\u306f\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3057\u305f\u3057\u3001FirewallD\u304c\u5c0e\u5165\u3055\u308c\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306fsystemd\u306b\u306a\u308a\u307e\u3057\u305f\u2606<br \/>\n\u6700\u521d\u306f\u3001\u3044\u308d\u3044\u308d\u3068\u5206\u304b\u3089\u305a\u3001\u56f0\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u6163\u308c\u3066\u3057\u307e\u3048\u3070\u7d50\u69cb\u3044\u3051\u308b\u3082\u3093\u3067\u3059\u306d\uff01\u305f\u3060\u3001\u307e\u3060\u899a\u3048\u3066\u3044\u306a\u3044\u90e8\u5206\u3082\u3042\u308b\u306e\u3067\u3001\u4eca\u5f8c\u306e\u305f\u3081\u306b\u3082\u3001\u30b3\u30de\u30f3\u30c9\u7b49\u3092\u30e1\u30e2\u30e1\u30e2\u3006(.. )<\/p>\n<p>\u81ea\u5206\u304c\u904b\u7528\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306f\u3001CentOS6\u306a\u306e\u3067\u3059\u304c\u3001CentOS7\u306b\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u306e\u304b\u306a\u3068\u601d\u3063\u305f\u308a\u3002<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 \u30b5\u30fc\u30d3\u30b9\u7ba1\u7406\u7cfb\u30b3\u30de\u30f3\u30c9<\/span><br \/>\n\u4f8b\u3068\u3057\u3066\u3001httpd\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table id=\"yk-table\">\n<thead>\n<tr>\n<th>\u7528\u9014<\/th>\n<th>SysV Init<\/th>\n<th>Systemd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u6709\u52b9\u5316<\/td>\n<td>chkconfig httpd on<\/td>\n<td>systemctl enable httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u7121\u52b9\u5316<\/td>\n<td>chkconfig httpd off<\/td>\n<td>systemctl disable httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u505c\u6b62<\/td>\n<td>service stop httpd<\/td>\n<td>systemctl stop httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5<\/td>\n<td>service start httpd<\/td>\n<td>systemctl start httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5<\/td>\n<td>service restart httpd<\/td>\n<td>systemctl restart httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u518d\u8aad\u307f\u8fbc\u307f<\/td>\n<td>service reload httpd<\/td>\n<td>systemctl reload httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u72b6\u614b\u78ba\u8a8d<\/td>\n<td>service status httpd<\/td>\n<td>systemctl status httpd<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30b5\u30fc\u30d3\u30b9\u4e00\u89a7<\/td>\n<td>chkconfig &#8211;list<\/td>\n<td>systemctl list-unit-files<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u7cfb\u30b3\u30de\u30f3\u30c9<\/span><\/p>\n<table id=\"yk-table\">\n<thead>\n<tr>\n<th>\u7528\u9014<\/td>\n<th><strong>net-tools<\/th>\n<th><strong>iproute2<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">IP\u30a2\u30c9\u30ec\u30b9\u3068\u72b6\u614b\u3092\u78ba\u8a8d<\/td>\n<td>ifconfig<\/td>\n<td>ip addr show<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">TCP\u30bd\u30b1\u30c3\u30c8\u306e\u72b6\u614b\u78ba\u8a8d<\/td>\n<td>netstat -ant<\/td>\n<td>ss -ant<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u78ba\u8a8d<\/td>\n<td>route -n<\/td>\n<td>ip route<\/td>\n<\/tr>\n<tr>\n<th scope=\"row\">ARP\u30c6\u30fc\u30d6\u30eb\u78ba\u8a8d<\/td>\n<td>arp -n<\/td>\n<td>ip n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #7b68ee;\">\u25a0 NTP\u30b5\u30fc\u30d0\u30b3\u30de\u30f3\u30c9<\/span><br \/>\nCentOS7\u306fNTP\u306e\u4ee3\u66ff\u3068\u3057\u3066Chrony\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<table id=\"yk-table\">\n<thead>\n<tr>\n<th>\u7528\u9014<\/td>\n<th>NTP<\/td>\n<th>Chrony<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th scope=\"row\">\u72b6\u614b\u78ba\u8a8d<\/td>\n<td>ntpq -p<\/td>\n<td>chronyc sources<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u4ee5\u524d\u3001FirewallD\u306b\u3064\u3044\u3066\u306e\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u305d\u306e\u3068\u304d\u306f\u3001\u5185\u90e8\u304b\u3089\u5916\u90e8\u3078\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u6c38\u7d9a\u7684\u306a\u5236\u5fa1\u304c\u3067\u304d\u306a\u3044\u3068\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001xml\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u3048\u308b\u3053\u3068\u3067\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3064\u3044\u3066\u3082\u3001\u4eca\u5f8c\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u5f8c\u4e5e\u3046\u3054\u671f\u5f85\uff01\u3068\u8a00\u3046\u3053\u3068\u3067\u3002<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"http:\/\/www.nightmare-yk.com\/?p=1282\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"http:\/\/www.nightmare-yk.com\/?p=1282\" ><\/g:plusone><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>web\u306e\u30dd\u30fc\u30bf\u30eb\u30b5\u30a4\u30c8\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u304b\u30891\u5e74\u4ee5\u4e0a\u7d4c\u3063\u3066\u3044\u308b\u306e\u306b\u6700\u8fd1\u6c17\u304c\u3064\u304d\u3001\u9a5a\u3044\u3066\u3044\u307e\u3059\u3002\u65e5\u3005\u6642\u9593\u306f\u9032\u3080\u3057\u3001\u6280\u8853\u306f\u9032\u6b69\u3059\u308b\u3057\u3001\u3064\u3044\u3066\u3044\u304f\u306e\u3082\u5927\u5909\u3067\u3059\u306d\u3002\u3002\u3002 \u524d\u7f6e\u304d\u306f\u3055\u3066\u304a\u304d\u3001CentOS7\u306f\u3060\u3044\u3076\u524d\u306b\u516c\u958b\u3055\u308c\u307e\u3057\u305f\uff57\uff57\uff57 \u4eca\u66f4\u306a\u304c\u3089\u306e\u60c5\u5831\u3067\u3059\u304c\u3001\u305f\u307e\u306b\u306f\u6280\u8853\u30d6\u30ed\u30b0\u7684\u306a\u4e8b\u3082\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 Cne [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":998,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[3],"tags":[210,211,213,212,214,174],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.nightmare-yk.com\/wp-content\/uploads\/2013\/12\/\u6280\u8853\u30a2\u30a4\u30b3\u30f32.png?fit=270%2C240","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1282"}],"collection":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1282"}],"version-history":[{"count":20,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions"}],"predecessor-version":[{"id":1860,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/posts\/1282\/revisions\/1860"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=\/wp\/v2\/media\/998"}],"wp:attachment":[{"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1282"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nightmare-yk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}