Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- MST
- 알고리즘
- MVC
- 페이징
- 운영체제
- 자료구조
- 쿼리
- JPA
- SQL
- 코딩
- 디자인 패턴
- Spring
- feign
- Kafka
- Spring Boot
- DP
- PL/SQL
- 클라우드
- Spring Cloud
- aws
- db
- 데이터베이스
- 자바
- 오라클
- golang
- Spring Cloud Feign
- Jenkins
- retry
- Intellj
- 백준
Archives
- Today
- Total
justgo_developer
리눅스 환경에서 Go 설치 본문
#Go 설치
wget https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz
#설치한 Go 버전 확인
cd /usr/local/bin
./go version
-> go version go1.22.5 linux/amd64
#Go 프로젝트 경로 생성
/data01/sw/project/goPATH
#Go 환경변수 설정
vi ~/.bash_profile
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin
#변경 사항 즉시 반영
source ~/.bash_profile
#Go 확인
go version
Go 실행 확인
#Go 파일 생성
vi example.go
#Go 빌드
go build example.go
#Go 실행
go run example.go
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
go env
go env -w GO111MODULE=auto
to this:
go env -w GO111MODULE=off
'IT > Golang' 카테고리의 다른 글
golang ent + sqlite (2) | 2024.11.07 |
---|