{"id":855,"date":"2020-04-22T21:23:45","date_gmt":"2020-04-22T13:23:45","guid":{"rendered":"http:\/\/www.mrtblog.cn\/?p=855"},"modified":"2023-03-12T15:01:02","modified_gmt":"2023-03-12T07:01:02","slug":"%e5%be%ae%e6%9c%8d%e5%8a%a1%e6%9e%b6%e6%9e%84%e5%ad%a6%e4%b9%a0","status":"publish","type":"post","link":"http:\/\/www.mrtblog.cn\/?p=855","title":{"rendered":"\u5fae\u670d\u52a1\u67b6\u6784\u5b66\u4e60"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 2,370<\/span><span class='epvc-label'> Views<\/span><\/div><h4><a href=\"https:\/\/www.jianshu.com\/p\/8e4bbe7e276c\">\u5171\u8bc6\u7b97\u6cd5\uff1aRaft<\/a>&nbsp; &nbsp; &nbsp;\u5206\u5e03\u5f0f\u670d\u52a1\u5668\u6570\u636e\u540c\u6b65\u65b9\u6848<\/h4>\n<h4><a href=\"http:\/\/www.ruanyifeng.com\/blog\/2011\/09\/restful.html\">RESTful\u67b6\u6784<\/a>&nbsp; &nbsp;&nbsp;\u4f7f\u7528HTTP\u534f\u8bae\u548cURI\u5bf9C\/S\u8d44\u6e90\u8fdb\u884cCRUD<\/h4>\n<h4><a href=\"https:\/\/blog.csdn.net\/mzpmzk\/article\/details\/80824839\">Protocol Buffer<\/a>&nbsp; &nbsp;\u6570\u636e\u5e8f\u5217\u5316\u534f\u8bae<\/h4>\n<h4><a href=\"https:\/\/blog.csdn.net\/ios_xumin\/article\/details\/78125913\">JenKins<\/a>&nbsp; &nbsp; \u81ea\u52a8\u5316\u6d41\u6c34\u7ebf\u5e73\u53f0<\/h4>\n<h4><a href=\"https:\/\/www.cnblogs.com\/vikings-blog\/p\/11101159.html\">Kubernetes<\/a>&nbsp; &nbsp; \u96c6\u7fa4\u5bb9\u5668<\/h4>\n<h4><a href=\"https:\/\/www.cnblogs.com\/bluestorm\/p\/10571989.html\">SSL\u5355\u5411\u8ba4\u8bc1\u548c\u53cc\u5411\u8ba4\u8bc1<\/a>&nbsp; &nbsp; \u4f20\u8f93\u5c42\u5b89\u5168\u52a0\u5bc6<\/h4>\n<h4><a href=\"https:\/\/blog.csdn.net\/yue_2018\/article\/details\/89305275\">\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528\u6d88\u606f\u961f\u5217<\/a><\/h4>\n<h3><\/h3>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<hr>\n<p>\u6b63\u6587\u5f00\u59cb\uff0c<a href=\"https:\/\/ewanvalentine.io\/microservices-in-golang-part-1\/\">\u7528GoLang\u5b9e\u73b0\u5fae\u670d\u52a1<\/a><\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">#\u4e0b\u8f7dgolang\nwget https:\/\/dl.google.com\/go\/go1.14.2.linux-amd64.tar.gz\n#\u89e3\u538b\ntar -C \/usr\/local -xzf go$VERSION.$OS-$ARCH.tar.gz\n#\u4fee\u6539\/etc\/profile\nexport GOPATH=your_go_install_path\nexport PATH=$PATH:$GOPATH\/bin\n#\u751f\u6548\nsource \/etc\/profile\n#\u5b89\u88c5gRPC\ngo get -u google.golang.org\/grpc\n#\u5b89\u88c5Protocol Buffers V3\ngo get -u github.com\/golang\/protobuf\/protoc-gen-go\n#\u5b89\u88c5\u4f9d\u8d56\u5305\nsudo apt-get install autoconf automake libtool\n#\u5b89\u88c5protobuf-compiler\ncd &amp;&amp; git clone https:\/\/github.com\/protocolbuffers\/protobuf.git\nchmod 777 protobuf &amp;&amp; cd protobuf\n.\/autogen.sh\n.\/configure\nmake\nmake check\nsudo make install\nsudo ldconfig  # refresh shared library cache.\n#\u5982\u679c\u5b89\u88c5\u51fa\u73b0\u95ee\u9898\u7684\u8bdd\u624b\u52a8\u4e0b\u8f7dgoogletest\n#\u653e\u5728protobuf\/third_party\/\u76ee\u5f55\u4e0b\u5e76\u547d\u540d\u4e3agoogletest\n#make clean\u540e\u91cd\u65b0\u4ece.\/autogen.sh\u5f00\u59cb\u6267\u884c\n<\/code><\/pre>\n<p>\u7cfb\u5217\u5b66\u4e60\u5730\u5740\uff1a<br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015135650\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u4e00\uff09<\/a><br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015135749\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u4e8c\uff09<\/a><br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015209109\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u4e09\uff09<\/a><br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015209182\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u56db\uff09<\/a><br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015209259\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u4e94\uff09<\/a><br \/>\n<a class=\"text-body\" href=\"https:\/\/segmentfault.com\/a\/1190000015209341\">Golang \u5fae\u670d\u52a1\u6559\u7a0b\uff08\u516d\uff09<\/a><\/p>\n<p>\u4e00\u4e9b\u95ee\u9898\u8bb0\u5f55\uff1a<\/p>\n<p><span style=\"color: #ff0000;\">protoc-gen-go: program not found or is not executable<\/span><br \/>\n\u4f7f\u7528go get\u4e0b\u8f7d\u540e\u5e76\u6ca1\u6709\u81ea\u52a8\u5b89\u88c5,\u5982\u679c\u5728makefile\u4e2d\u4f7f\u7528\u4e86$gopath\uff0c\u8981\u786e\u4fdd$gopath\/bin\u91cc\u9762\u6709protoc-gen-go\uff0c\u64cd\u4f5c\u6d41\u7a0b\u4e3a\uff1a<br \/>\n\u6253\u5f00protoc-gen-go\u7684\u4e0b\u8f7d\u76ee\u5f55\uff0c\u6267\u884c<\/p>\n<pre class=\"highlight\"><code class=\"language-shell line-numbers\">go build\ngo install<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>2,370 Views\u5171\u8bc6\u7b97\u6cd5\uff1aRaft&nbsp; &nbsp; &nbsp;\u5206\u5e03\u5f0f\u670d\u52a1\u5668\u6570\u636e\u540c\u6b65\u65b9\u6848 RE [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[100],"tags":[],"class_list":["post-855","post","type-post","status-publish","format-standard","hentry","category-100"],"_links":{"self":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=855"}],"version-history":[{"count":12,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/855\/revisions"}],"predecessor-version":[{"id":949,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=\/wp\/v2\/posts\/855\/revisions\/949"}],"wp:attachment":[{"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=855"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrtblog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}