{"id":818,"date":"2017-12-14T17:35:47","date_gmt":"2017-12-14T09:35:47","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=818"},"modified":"2017-12-14T17:35:47","modified_gmt":"2017-12-14T09:35:47","slug":"linux%e5%b9%b3%e5%8f%b0%e4%b8%8b%e7%9a%84%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bc%96%e8%af%91%e5%85%a5%e5%8f%a3%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/818","title":{"rendered":"linux\u5e73\u53f0\u4e0b\u7684\u670d\u52a1\u5668\u7f16\u8bd1\u5165\u53e3\u811a\u672c"},"content":{"rendered":"<p>#!\/bin\/sh<\/p>\n<p>if [ $# -lt 1 ]; then<br \/>\necho &#8220;bad args!!!&#8221;<br \/>\necho &#8220;usage: .\/make [all|serverName]&#8221;<br \/>\nexit 1<br \/>\nfi<\/p>\n<p>arg=$1<br \/>\npwd=`pwd`<br \/>\nif [ $arg = &#8220;all&#8221; ]; then<br \/>\necho &#8220;============start make AccSvr ===============&#8221;<br \/>\ncd AccSvr<br \/>\nmake clean<br \/>\nmake<br \/>\necho &#8220;============start make testclient============&#8221;<br \/>\ncd ..\/testclient<br \/>\nmake clean<br \/>\nmake<br \/>\necho &#8220;============start make dbserver==============&#8221;<br \/>\ncd ..\/DBSvr<br \/>\nmake clean<br \/>\nmake<br \/>\necho &#8220;============start make dbserver==============&#8221;<br \/>\ncd ..\/GatewaySvr<br \/>\nmake clean<br \/>\nmake<br \/>\necho &#8220;============start make dbserver==============&#8221;<br \/>\ncd ..\/LogicSvr<br \/>\nmake clean<br \/>\nmake<\/p>\n<p>elif [ $arg = &#8220;clean&#8221; ]; then<br \/>\ncd $pwd<br \/>\ncd AccSvr<br \/>\nmake clean<br \/>\ncd $pwd<br \/>\ncd testclient<br \/>\nmake clean<br \/>\nelif [ $arg = &#8220;accsvr&#8221; ]; then<br \/>\ncd $pwd<br \/>\ncd AccSvr<br \/>\nmake clean<br \/>\nmake<br \/>\nelif [ $arg = &#8220;tc&#8221; ]; then<br \/>\ncd $pwd<br \/>\ncd testclient<br \/>\nmake clean<br \/>\nmake<br \/>\nelse<br \/>\necho &#8220;unknow args:&#8221;{$arg}<br \/>\nfi<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/sh if [ $# -l<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[118],"class_list":["post-818","post","type-post","status-publish","format-standard","hentry","tag-02-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=818"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/818\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}