PS1='[\\t \\u@\\H:\\w]\\'\r\nPATH=PATH:~\/bin:~\/go\/bin:~\/gopkg\/bin\r\nLANG=zh_CN.UTF-8\r\nGOROOT=~\/go\r\nGOPATH=~\/gopkg\r\nGO111MODULE=on\r\nGOPROXY=https:\/\/goproxy.cn,direct\r\nGOCACHE=~\/gocache\r\nGOBIN=~\/bin\r\n\r\nexport PATH\r\nexport LD_LIBRARY_PATH\r\nexport LANG\r\nexport GOROOT\r\nexport GOPATH\r\nexport GOPROXY\r\nexport GO111MODULE\r\nexport GOCACHE\r\nexport GOBIN\r\n<\/code><\/pre>\nPS1\u8bbe\u7f6e\u7684\u662fbash\u547d\u4ee4\u63d0\u793a\u7b26\u7684\u683c\u5f0f\uff0c\u53ef\u4ee5\u6309\u7167\u81ea\u5df1\u7684\u559c\u597d\u8bbe\u7f6e\u6210\u4e0d\u540c\u7684\u6837\u5f0f\uff0c\u5177\u4f53\u7ec6\u8282\u53ef\u4ee5\u81ea\u884c\u67e5\u9605\u3002<\/p>\n
PATH\u8bbe\u7f6e\u7684\u662f\u53ef\u6267\u884c\u547d\u4ee4\u5b58\u653e\u7684\u76ee\u5f55\u3002<\/p>\n
LANG\u8bbe\u7f6e\u7684\u662f\u8bed\u8a00\u7f16\u7801\u683c\u5f0f\u3002<\/p>\n
\u4e0b\u97626\u4e2a\u8bbe\u7f6e\u7684\u90fd\u662fGo\u76f8\u5173\u7684\u4e00\u4e9b\u53d8\u91cf\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u597d\u4e86\uff0c\u540e\u9762\u5b89\u88c5Go\u7684\u65f6\u5019\u5c31\u4e0d\u7528\u8bbe\u7f6e\u4e86\u3002<\/p>\n
\u8bbe\u7f6e\u5b8c\u4e4b\u540e\uff0c\u901a\u8fc7export\u5bfc\u51fa\u3002<\/p>\n
\u7136\u540e\u4fdd\u5b58\u3002<\/p>\n
\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\u540e\u624d\u80fd\u751f\u6548:<\/p>\n
source .bashrc\r\n<\/code><\/pre>\n 6.\u5b89\u88c5Go <\/strong><\/span><\/div>\n\u5230 https:\/\/golang.google.cn\/ \u4e0b\u8f7d\u6700\u65b0\u7684Go\u5b89\u88c5\u5305\uff0c\u76ee\u524d\u662f go1.15.2.linux-amd64.tar\u3002<\/p>\n
\u4e0b\u8f7d\u5b8c\u901a\u8fc7rz\u5de5\u5177\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u3002<\/p>\n
\u8fd0\u884c\uff1a<\/p>\n
tar xvf go1.15.2.linux-amd64.tar -C .\r\n<\/code><\/pre>\n\u56e0\u4e3a\u6211\u4eec\u4e4b\u524d\u5df2\u7ecf\u914d\u7f6e\u8fc7\u73af\u5883\u53d8\u91cf\uff0c\u6240\u4ee5\u8fd9\u91cc\u53ea\u8981\u89e3\u538b\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n
\u8fd0\u884c\u5982\u4e0b\u547d\u4ee4\uff0c\u5982\u679c\u8f93\u51fago\u7684\u7248\u672c\u53f7\u5c31\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n
go version\r\n<\/code><\/pre>\n 7.vim\u5b89\u88c5Go\u63d2\u4ef6 <\/strong><\/span><\/div>\n\u4e3a\u4e86\u66f4\u65b9\u4fbf\u7684\u4f7f\u7528vim\u6765\u8fdb\u884cGo\u7f16\u7a0b\uff0c\u53ef\u4ee5\u5b89\u88c5vim-go\u63d2\u4ef6\uff0c\u5b83\u96c6\u6210\u4e86\u5f88\u591aGo\u5de5\u5177\u3002<\/p>\n
\u8fd0\u884c\u4e00\u4e0b\u547d\u4ee4\uff1a<\/p>\n
yum install git\r\ngit clone https:\/\/github.com\/fatih\/vim-go.git ~\/.vim\/pack\/plugins\/start\/vim-go\r\nvim:\r\n\r\nGoInstallBinaries\r\n\u7b49\u5f85\u5b89\u88c5\r\n<\/code><\/pre>\n\u5b89\u88c5\u5b8c\u4e4b\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u5199\u4ee3\u7801\u5566\u3002<\/p>\n
8.\u5c0f\u7ed3 <\/strong><\/span><\/div>\n\u8fd9\u662f\u4e00\u7bc7\u5165\u95e8\u7ea7\u7684\u6559\u7a0b\uff0c\u4e3b\u8981\u9762\u5411Linux\u670d\u52a1\u5668\u65b0\u7528\u6237\uff0c\u4ee5\u53ca\u60f3\u4f7f\u7528Linux\u6765\u5f00\u53d1Go\u7684\u7a0b\u5e8f\u5458\u3002
\n\u6309\u7167\u8fd9\u4e2a\u6559\u7a0b\u505a\u4e0b\u6765\uff0c\u57fa\u672c\u4e0a\u53ef\u4ee5\u8ba9\u4f60\u5165\u4e2a\u95e8\u3002\u91cc\u9762\u6bcf\u4e2a\u6761\u76ee\u90fd\u6709\u66f4\u6df1\u5165\u7684\u77e5\u8bc6\uff0c\u8bfb\u8005\u53ef\u4ee5\u81ea\u884c\u5b66\u4e60\u3002
\n\u6709\u4efb\u4f55\u95ee\u9898\u90fd\u53ef\u4ee5\u6765\u95ee\u6211\u54e6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u8fd8\u8bb0\u5f97\u6211\u4e0a\u5927\u5b66\u90a3\u4f1a\u513f\uff0c\u88c5\u4e00\u4e2aLinux\u7cfb\u7edf\u8fd8\u662f\u4e00\u4ef6\u6bd4\u8f83\u590d\u6742\u7684\u4e8b\u8bf7\u3002 \u5148\u8981\u4e0b\u8f7d\u955c\u50cf\uff0c\u7136\u540e\u523b\u5230\u5149\u76d8\u91cc\u9762\uff0c\u7136\u540e\u518d\u7528\u5149 […]<\/p>\n","protected":false},"author":643,"featured_media":206731,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-206727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/206727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=206727"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/206727\/revisions"}],"predecessor-version":[{"id":206730,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/206727\/revisions\/206730"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/206731"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=206727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=206727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=206727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}