{"id":227,"date":"2024-11-02T05:23:15","date_gmt":"2024-11-02T05:23:15","guid":{"rendered":"https:\/\/www.yehger.com\/?p=227"},"modified":"2024-11-02T06:08:24","modified_gmt":"2024-11-02T06:08:24","slug":"centos-%e5%ae%89%e8%a3%85go%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/www.yehger.com\/index.php\/2024\/11\/02\/centos-%e5%ae%89%e8%a3%85go%e7%8e%af%e5%a2%83\/","title":{"rendered":"Centos \u5b89\u88c5go\u73af\u5883"},"content":{"rendered":"<h2>\u4e0b\u8f7d<\/h2>\n<p>\u5148\u67e5\u770b\u4e00\u4e0b\u81ea\u5df1\u670d\u52a1\u5668\u7684\u67b6\u6784\uff0cx86_64 \u6216 aarch64<\/p>\n<pre><code class=\"language-c\">uname -m<\/code><\/pre>\n<p>\u6839\u636e\u81ea\u5df1\u5bf9\u5e94\u7684\u67b6\u6784\uff0c\u6765\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305<br \/>\n<a href=\"https:\/\/go.dev\/dl\/\">https:\/\/go.dev\/dl\/<\/a><\/p>\n<p>\u53ef\u4ee5\u5728\/usr\u4e0b\u521b\u5efa\u4e00\u4e2asoftware\u6587\u4ef6\u5939\u6765\u4e13\u95e8\u7ba1\u7406\u624b\u52a8\u5b89\u88c5\u7684\u7a0b\u5e8f<\/p>\n<p>\u4e0b\u8f7d\uff0c\u89e3\u538b<\/p>\n<pre><code class=\"language-c\">wget https:\/\/go.dev\/dl\/go1.23.2.linux-amd64.tar.gz\ntar -zxf go1.23.2.linux-amd64.tar.gz<\/code><\/pre>\n<h2>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/h2>\n<p>\u7f16\u8f91\u73af\u5883\u53d8\u91cf\u6587\u4ef6<\/p>\n<pre><code class=\"language-c\">vim \/etc\/profile<\/code><\/pre>\n<p>\u5728\u6700\u4e0b\u65b9\u52a0\u5165<\/p>\n<pre><code class=\"language-c\">#golang \u73af\u5883\u53d8\u91cf\nexport GO111MODULE=on\nexport GOROOT=\/usr\/software\/go\nexport GOPATH=\/home\/gopath\nexport PATH=$PATH:$GOROOT\/bin:$GOPATH\/bin<\/code><\/pre>\n<p>\u66f4\u65b0\u5e94\u7528\u6587\u4ef6<\/p>\n<pre><code class=\"language-c\">source \/etc\/profile<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u8f7d \u5148\u67e5\u770b\u4e00\u4e0b\u81ea\u5df1\u670d\u52a1\u5668\u7684\u67b6\u6784\uff0cx86_64 \u6216 aarch64 uname -m \u6839\u636e\u81ea\u5df1\u5bf9\u5e94\u7684\u67b6\u6784\uff0c\u6765\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305 https:\/\/go.dev\/dl\/ \u53ef\u4ee5\u5728\/usr\u4e0b\u521b\u5efa\u4e00\u4e2asoftware\u6587\u4ef6\u5939\u6765\u4e13\u95e8\u7ba1\u7406\u624b\u52a8\u5b89\u88c5\u7684\u7a0b\u5e8f \u4e0b\u8f7d\uff0c\u89e3\u538b wget https:\/\/go.dev\/dl\/go1.23.2.linux-amd64.tar.gz tar -zxf go1.23.2.linux-amd64.tar.gz \u6dfb\u52a0\u73af\u5883\u53d8\u91cf \u7f16\u8f91\u73af\u5883\u53d8\u91cf\u6587\u4ef6 vim \/etc\/profile \u5728\u6700\u4e0b\u65b9\u52a0\u5165&#8230; <a class=\"read-more\" href=\"https:\/\/www.yehger.com\/index.php\/2024\/11\/02\/centos-%e5%ae%89%e8%a3%85go%e7%8e%af%e5%a2%83\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-my-nonsence"],"_links":{"self":[{"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":3,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":230,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/posts\/227\/revisions\/230"}],"wp:attachment":[{"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yehger.com\/index.php\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}