{"id":425,"date":"2013-07-20T15:28:13","date_gmt":"2013-07-20T15:28:13","guid":{"rendered":"https:\/\/shan.info\/new\/sed%e5%9c%a8%e5%8c%b9%e9%85%8d%e8%a1%8c%e5%89%8d%e5%90%8e%e5%8a%a0%e5%85%a5%e4%b8%80%e8%a1%8c\/"},"modified":"2013-07-20T15:28:13","modified_gmt":"2013-07-20T15:28:13","slug":"sed%e5%9c%a8%e5%8c%b9%e9%85%8d%e8%a1%8c%e5%89%8d%e5%90%8e%e5%8a%a0%e5%85%a5%e4%b8%80%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/sed%e5%9c%a8%e5%8c%b9%e9%85%8d%e8%a1%8c%e5%89%8d%e5%90%8e%e5%8a%a0%e5%85%a5%e4%b8%80%e8%a1%8c\/","title":{"rendered":"Sed\u5728\u5339\u914d\u884c\u524d\u540e\u52a0\u5165\u4e00\u884c"},"content":{"rendered":"<p style=\"margin-top: 1.2em; margin-bottom: 1.2em; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; font-family: 'lucida grande', 'liberation sans', verdana, arial, helvetica, sans-serif; line-height: normal;\">a \u8ffd\u52a0\u5185\u5bb9 sed \u2018\/\u5339\u914d\u8bcd\/a\u8981\u52a0\u5165\u7684\u5185\u5bb9\u2019 example.file\uff08\u5c06\u5185\u5bb9\u8ffd\u52a0\u5230\u5339\u914d\u7684\u76ee\u6807\u884c\u7684\u4e0b\u4e00\u884c\u4f4d\u7f6e\uff09<br \/>i \u63d2\u5165\u5185\u5bb9 sed \u2018\/\u5339\u914d\u8bcd\/i\u8981\u52a0\u5165\u7684\u5185\u5bb9\u2019 example.file \u5c06\u5185\u5bb9\u63d2\u5165\u5230\u5339\u914d\u7684\u884c\u76ee\u6807\u7684\u4e0a\u4e00\u884c\u4f4d\u7f6e\uff09<br \/>\u793a\u4f8b\uff1a<br \/>#\u6211\u8981\u628a\u6587\u4ef6\u7684\u5305\u542b\u201cchengyongxu.com\u201d\u8fd9\u4e2a\u5173\u952e\u8bcd\u7684\u884c\u524d\u6216\u884c\u540e\u52a0\u5165\u4e00\u884c\uff0c\u5185\u5bb9\u4e3a\u201callow chengyongxu.cn\u201d<\/p>\n<div id=\"highlighter_669457\" class=\"syntaxhighlighter  \" style=\"font-size: 12px; width: 655.375px;\">\n<div class=\"lines\">\n<div class=\"line alt1\">\n<table style=\"border-spacing: 0px;\">\n<tbody>\n<tr>\n<td class=\"number\"><code>1<\/code><\/td>\n<td class=\"content\"><code class=\"comments\">#\u884c\u524d\u52a0<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt2\">\n<table style=\"border-spacing: 0px;\">\n<tbody>\n<tr>\n<td class=\"number\"><code>2<\/code><\/td>\n<td class=\"content\"><code class=\"functions\">sed<\/code>&nbsp;<code class=\"plain\">-i&nbsp;<\/code><code class=\"string\">'\/allow chengyongxu.com\/iallow chengyongxu.cn'<\/code>&nbsp;<code class=\"plain\">the.conf.<\/code><code class=\"functions\">file<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt1\">\n<table style=\"border-spacing: 0px;\">\n<tbody>\n<tr>\n<td class=\"number\"><code>3<\/code><\/td>\n<td class=\"content\"><code class=\"comments\">#\u884c\u524d\u540e<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div class=\"line alt2\">\n<table style=\"border-spacing: 0px;\">\n<tbody>\n<tr>\n<td class=\"number\"><code>4<\/code><\/td>\n<td class=\"content\"><code class=\"functions\">sed<\/code>&nbsp;<code class=\"plain\">-i&nbsp;<\/code><code class=\"string\">'\/allow chengyongxu.com\/aallow chengyongxu.cn'<\/code>&nbsp;<code class=\"plain\">the.conf.<\/code><code class=\"functions\">file<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>a \u8ffd\u52a0\u5185\u5bb9 sed \u2018\/\u5339\u914d\u8bcd\/a\u8981\u52a0\u5165\u7684\u5185\u5bb9\u2019 example.file\uff08\u5c06\u5185\u5bb9\u8ffd\u52a0\u5230\u5339\u914d\u7684\u76ee\u6807\u884c\u7684\u4e0b\u4e00\u884c\u4f4d\u7f6e\uff09i \u63d2\u5165\u5185\u5bb9 sed \u2018\/\u5339\u914d\u8bcd\/i\u8981\u52a0\u5165\u7684\u5185\u5bb9\u2019 example.file \u5c06\u5185\u5bb9\u63d2\u5165\u5230\u5339\u914d\u7684\u884c\u76ee\u6807\u7684\u4e0a\u4e00\u884c\u4f4d\u7f6e\uff09\u793a\u4f8b\uff1a#\u6211\u8981\u628a\u6587\u4ef6\u7684\u5305\u542b\u201cchengyongxu.com\u201d\u8fd9\u4e2a\u5173\u952e\u8bcd\u7684\u884c\u524d\u6216\u884c\u540e\u52a0\u5165\u4e00\u884c\uff0c\u5185\u5bb9\u4e3a\u201callow chengyongxu.cn\u201d 1 #\u884c\u524d\u52a0 2 sed&nbsp;-i&nbsp;&#8216;\/allow chengyongxu.com\/iallow chengyongxu.cn&#8217;&nbsp;the.conf.file 3 #\u884c\u524d\u540e 4 sed&nbsp;-i&nbsp;&#8216;\/allow chengyongxu.com\/aallow chengyongxu.cn&#8217;&nbsp;the.conf.file<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}